-
Notifications
You must be signed in to change notification settings - Fork 1
Adopt modern pyproject packaging and uv workflows #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=77"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For Python 3.6–3.8, which remain in both CI matrices, a source installation cannot create its isolated build environment because Setuptools 77 and newer require Python 3.9+. Published wheels may hide this, but Useful? React with 👍 / 👎. |
||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "popthings" | ||
| dynamic = ["version"] | ||
| description = "Import TaskPaper templates with placeholders into Things" | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| license = "MIT" | ||
| license-files = ["LICENSE"] | ||
| authors = [ | ||
| { name = "Alexandre Chabot-Leclerc", email = "github@alexchabot.net" }, | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Natural Language :: English", | ||
| "Operating System :: MacOS :: MacOS X", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| ] | ||
|
|
||
| [project.scripts] | ||
| popthings = "popthings:cli" | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/achabotl/popthings" | ||
|
|
||
| [tool.setuptools] | ||
| py-modules = ["popthings"] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "popthings.__version__" } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Project name: | ||
| Note under project | ||
| Header: | ||
| Note under header | ||
| - Task | ||
| Header 2: | ||
| Note under header 2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| - task 1 | ||
| - task 2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| Project 1: | ||
| $due $start $location | ||
| Note under project 1 | ||
| - Task 1 @due($start + 1w) | ||
| A note under task 1 | ||
| - Task 2 @start($start) | ||
| - Checklist item under task 2 | ||
| - A checklist under a checklist | ||
| Heading 1, to $location: | ||
| - Task under heading 1 | ||
|
|
||
| Project 2: | ||
| - Task under project 2 | ||
| Heading 2, under project 2: | ||
| - Task under heading 2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Project: | ||
| Note two levels in | ||
| - Task | ||
| - checklist item | ||
| Note |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| Project name: @start($start) @email | ||
| $start $due | ||
| Comment under project | ||
| More comments under project | ||
| - Task 0.1 @due($due) @email | ||
| Note 0.1 | ||
| Note 0.1 has two lines of comment | ||
| - Task 0.12 @start($start) | ||
| Heading 1: | ||
| Note 1. Where should it go? | ||
| - Task 1.1 | ||
| Note 1.1 | ||
| - Task 1.2 | ||
| HEading 2: | ||
| - Task 2.1 | ||
| Note 2.1 | ||
| - Checklist Item 2.1.1 | ||
| Note 2.1.1 | ||
| Project 2: | ||
| - Task under project 2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Project name: | ||
| - Task 1 | ||
|
|
||
| - Task 2 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On every release, both
actions/setup-python@v2steps in.github/workflows/publish.ymlstill usecache-dependency-path: '**/setup.py'. The pip-cache setup errors when that pattern matches no files, so replacingsetup.pywith this file causes the release workflow to stop before its tests or build run; point those entries atpyproject.tomlas part of the migration.Useful? React with 👍 / 👎.