-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server: Transition to "pyproject.toml"
- Loading branch information
Showing
7 changed files
with
97 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,3 +1,80 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
# Required to support dynmamic version | ||
"girder==3.1.20", | ||
'tomli; python_version<"3.11"', | ||
"versioneer", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "slicer-package-manager" | ||
description = "Manage Slicer application and extension packages." | ||
authors = [ | ||
{name = "Pierre Assemat", email = "[email protected]"}, | ||
{name = "Jean-Christophe Fillion-Robin", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Jean-Christophe Fillion-Robin", email = "[email protected]"}, | ||
] | ||
readme = "README.rst" | ||
keywords = ["girder-plugin", "slicer_package_manager"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
] | ||
requires-python = ">=3.7" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"girder==3.1.20", | ||
"girder-hashsum-download==3.1.20", | ||
] | ||
|
||
[project.entry-points."girder.plugin"] | ||
slicer_package_manager = "slicer_package_manager:GirderPlugin" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest~=7.4.0", # See https://github.com/TvoroG/pytest-lazy-fixture/issues/63 | ||
"pytest-lazy-fixture", | ||
"tox", | ||
"virtualenv", | ||
# lint | ||
"ruff", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://slicer-package-manager.readthedocs.io" | ||
Source = "https://github.com/girder/slicer_package_manager" | ||
|
||
[tool.setuptools] | ||
packages = [ | ||
"slicer_package_manager", | ||
"slicer_package_manager.api", | ||
"slicer_package_manager.models", | ||
"tests", | ||
] | ||
py-modules = [ | ||
"slicer_package_manager._version", | ||
] | ||
zip-safe = false | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "slicer_package_manager.__version__"} | ||
|
||
[tool.versioneer] | ||
VCS = "git" | ||
versionfile_source = "slicer_package_manager/_version.py" | ||
versionfile_build = "slicer_package_manager/_version.py" | ||
style = "pep440-post" | ||
tag_prefix = "" | ||
|
||
[tool.ruff] | ||
select = [ | ||
"A", # flake8-builtins | ||
|
@@ -27,7 +104,6 @@ select = [ | |
"YTT", # flake8-2020 | ||
] | ||
extend-exclude = [ | ||
"versioneer.py", | ||
"*/_vendor/bson/*.py", | ||
"slicer_package_manager/_version.py", | ||
] | ||
|
@@ -71,4 +147,4 @@ fixture-parentheses = false | |
ignore-variadic-names = true | ||
|
||
[tool.ruff.per-file-ignores] | ||
"python_client/slicer_package_manager_client/__init__.py" = ["A002"] # Argument `all` is shadowing a python builtin | ||
"python_client/slicer_package_manager_client/__init__.py" = ["A002"] # Argument `all` is shadowing a python builtin |
This file contains 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,45 +1,13 @@ | ||
import versioneer | ||
# -*- coding: utf-8 -*- | ||
|
||
from setuptools import setup, find_packages | ||
import versioneer | ||
|
||
with open('README.rst') as readme_file: | ||
readme = readme_file.read() | ||
from setuptools import setup | ||
|
||
requirements = [ | ||
'girder==3.1.20', | ||
'girder-hashsum-download==3.1.20', | ||
] | ||
# This file is required to support editable install | ||
# See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
|
||
setup( | ||
author='Jean-Christophe Fillion-Robin', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
], | ||
description='Manage Slicer application and extension packages.', | ||
install_requires=requirements, | ||
license='Apache Software License 2.0', | ||
long_description=readme, | ||
long_description_content_type='text/x-rst', | ||
include_package_data=True, | ||
keywords='girder-plugin, slicer_package_manager', | ||
name='slicer_package_manager', | ||
packages=find_packages(exclude=['test', 'test.*']), | ||
python_requires='>=3.6', | ||
url='https://github.com/girder/slicer_package_manager', | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
zip_safe=False, | ||
entry_points={ | ||
'girder.plugin': [ | ||
'slicer_package_manager = slicer_package_manager:GirderPlugin', | ||
], | ||
}, | ||
) |
This file contains 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
Oops, something went wrong.