forked from openslide/openslide-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openslide#237 from bgilbert/setuptools
Switch to PEP 621 project metadata; build sdist and all wheels in CI
- Loading branch information
Showing
10 changed files
with
133 additions
and
73 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 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 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,5 +1,4 @@ | ||
/build | ||
/dist | ||
/MANIFEST | ||
/*.egg-info | ||
*.pyc |
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
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,4 +1,4 @@ | ||
include *.md pytest.ini | ||
include *.md | ||
recursive-include doc *.py *.rst | ||
recursive-include examples *.html *.js *.png *.py | ||
recursive-include tests *.dcm *.png *.py *.svs *.tiff |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[project] | ||
name = "openslide-python" | ||
maintainers = [ | ||
{name = "OpenSlide project", email = "[email protected]"} | ||
] | ||
description = "Python interface to OpenSlide" | ||
readme = "README.md" | ||
license = {text = "GNU Lesser General Public License, version 2.1"} | ||
keywords = ["OpenSlide", "whole-slide image", "virtual slide", "library"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Healthcare Industry", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
] | ||
requires-python = ">= 3.8" | ||
dependencies = ["Pillow"] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://openslide.org/" | ||
Documentation = "https://openslide.org/api/python/" | ||
Repository = "https://github.com/openslide/openslide-python" | ||
|
||
[tool.setuptools] | ||
packages = ["openslide"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "openslide._version.__version__"} | ||
|
||
[tool.isort] | ||
profile = "black" | ||
force_sort_within_sections = true | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "7.0" | ||
# don't try to import openslide from the source directory, since it doesn't | ||
# have the compiled extension module | ||
addopts = "--import-mode importlib" | ||
# allow tests to import common module | ||
pythonpath = "tests" | ||
|
||
[tool.rstcheck] | ||
ignore_messages = "(Hyperlink target \".*\" is not referenced\\.$)" | ||
|
||
[build-system] | ||
requires = ["setuptools >= 61.0.0"] | ||
build-backend = "setuptools.build_meta" |
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,54 +1,7 @@ | ||
import os | ||
|
||
from setuptools import Extension, setup | ||
|
||
# Load version string | ||
_verfile = os.path.join(os.path.dirname(__file__), 'openslide', '_version.py') | ||
with open(_verfile) as _fh: | ||
exec(_fh.read()) # instantiates __version__ | ||
|
||
with open('README.md') as _fh: | ||
_long_description = _fh.read() | ||
|
||
setup( | ||
name='openslide-python', | ||
version=__version__, # noqa: F821 undefined-name __version__ | ||
packages=[ | ||
'openslide', | ||
], | ||
ext_modules=[ | ||
Extension('openslide._convert', ['openslide/_convert.c']), | ||
], | ||
test_suite='tests', | ||
maintainer='OpenSlide project', | ||
maintainer_email='[email protected]', | ||
description='Python interface to OpenSlide', | ||
long_description=_long_description, | ||
long_description_content_type='text/markdown', | ||
license='GNU Lesser General Public License, version 2.1', | ||
keywords='openslide whole-slide image virtual slide library', | ||
url='https://openslide.org/', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Healthcare Industry', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
], | ||
python_requires='>=3.8', | ||
install_requires=[ | ||
'Pillow', | ||
], | ||
zip_safe=True, | ||
) |