-
Notifications
You must be signed in to change notification settings - Fork 27
Migrate to pyproject.toml (PEP 518/621) #165
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
58426f0
Minimal pyproject.toml migration: add project metadata and setuptools…
C-Achard cb5cdb0
Bump setuptools and normalize license metadata
C-Achard 2c9b153
Add LGPLv3 classifier and update comment
C-Achard 8e1dd77
Add pyproject-fmt & validate hooks; configure fmt
C-Achard ca984b9
Delete setup.cfg
C-Achard 87d39c9
Remove LGPLv3 license classifier
C-Achard ea64aab
Remove setup-cfg-fmt hook and fix author casing
C-Achard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,97 @@ | ||
| [build-system] | ||
| requires = ["setuptools", "wheel", "setuptools_scm"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = [ "setuptools>=77", "setuptools-scm[toml]>=7", "wheel" ] | ||
|
|
||
| [tool.ruff] | ||
| lint.select = ["E", "F", "B", "I", "UP"] | ||
| lint.ignore = ["E741"] | ||
| target-version = "py310" | ||
| fix = true | ||
| line-length = 120 | ||
| [project] | ||
| name = "napari-deeplabcut" | ||
| description = "napari + DeepLabCut annotation tool" | ||
| readme = { file = "README.md", content-type = "text/markdown" } | ||
| license = "LGPL-3.0-only" | ||
| license-files = [ "LICENSE" ] | ||
|
C-Achard marked this conversation as resolved.
|
||
| requires-python = ">=3.10" | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Framework :: napari", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
| "Topic :: Scientific/Engineering :: Image Processing", | ||
| "Topic :: Scientific/Engineering :: Visualization", | ||
| ] | ||
| # Using setuptools-scm -> version is derived from git tags | ||
| dynamic = [ "version" ] | ||
| dependencies = [ | ||
| "dask-image", | ||
| "matplotlib>=3.3", | ||
| "napari==0.6.6", | ||
| "natsort", | ||
| "numpy>=1.18.5,<2", | ||
| "opencv-python-headless", | ||
| "pandas", | ||
| "pyside6>=6.4.2", | ||
| "pyyaml", | ||
| "qtpy>=2.4", | ||
| "scikit-image", | ||
| "scipy", | ||
| "tables", | ||
| ] | ||
| [[project.authors]] | ||
| name = "Team DeepLabCut, led by Jessy Lauer" | ||
| email = "admin@deeplabcut.org" | ||
| [project.entry-points."napari.manifest"] | ||
| napari-deeplabcut = "napari_deeplabcut:napari.yaml" | ||
| [project.optional-dependencies] | ||
| testing = [ | ||
| "pillow", | ||
| "pytest", | ||
| "pytest-cov", | ||
| "pytest-qt", | ||
| "tox", | ||
| ] | ||
| [project.urls] | ||
| "Bug Tracker" = "https://github.com/DeepLabCut/napari-deeplabcut/issues" | ||
| Documentation = "https://github.com/DeepLabCut/napari-deeplabcut#README.md" | ||
| "Source Code" = "https://github.com/DeepLabCut/napari-deeplabcut" | ||
| "User Support" = "https://github.com/DeepLabCut/napari-deeplabcut/issues" | ||
|
|
||
| [tool.uv] | ||
| package = true | ||
| # ---------------------------- | ||
| # setuptools configuration | ||
| # ---------------------------- | ||
| [tool.setuptools] | ||
| include-package-data = true | ||
| [tool.setuptools.package-data] | ||
| napari_deeplabcut = [ "napari.yaml" ] | ||
| [tool.setuptools.package-dir] | ||
| "" = "src" | ||
| [tool.setuptools.packages.find] | ||
| where = [ "src" ] | ||
|
|
||
| [tool.setuptools_scm] | ||
| write_to = "src/napari_deeplabcut/_version.py" | ||
|
|
||
| [tool.uv] | ||
| package = true | ||
|
|
||
| # ---------------------------- | ||
| # existing tool configuration | ||
| # ---------------------------- | ||
| [tool.ruff] | ||
| target-version = "py310" | ||
| line-length = 120 | ||
| fix = true | ||
| [tool.ruff.lint] | ||
| select = [ "E", "F", "B", "I", "UP" ] | ||
| ignore = [ "E741" ] | ||
|
|
||
| [tool.pyproject-fmt] | ||
| max_supported_python = "3.12" | ||
| generate_python_version_classifiers = true | ||
| # Avoid collapsing tables to field.key = value format (less readable) | ||
| table_format = "long" | ||
|
|
||
| [tool.pytest.ini_options] | ||
| qt_api = "pyside6" | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.