forked from scverse/scanpy
-
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.
pep-621 pyproject.toml (scverse#2042)
* Initial pep-621 commit * Add content-type to readme * Update metadata retrieval * Update `__author__` field usage in docs It was getting pretty unwieldy and out of date anyways. * Require flit>=3.4 to allow editable installs * Update phil’s maintainer email * update install instructions * Clean up for install instructions * Remove setup.py * Syntax highlighting Co-authored-by: Philipp A <[email protected]>
- Loading branch information
1 parent
16e62d1
commit 50f015b
Showing
6 changed files
with
160 additions
and
198 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,136 +1,153 @@ | ||
[build-system] | ||
build-backend = 'flit_core.buildapi' | ||
build-backend = "flit_core.buildapi" | ||
requires = [ | ||
'flit_core >=3.1,<4', | ||
'setuptools_scm', | ||
'pytoml', | ||
'importlib_metadata>=0.7; python_version < "3.8"', | ||
"flit_core >=3.4,<4", | ||
"setuptools_scm", | ||
"tomli", | ||
"importlib_metadata>=0.7; python_version < '3.8'", | ||
# setup.py stuff | ||
'packaging', | ||
"packaging", | ||
] | ||
|
||
[tool.flit.metadata] | ||
module = 'scanpy' | ||
author = """\ | ||
Alex Wolf, Philipp Angerer, Fidel Ramirez, Isaac Virshup, \ | ||
Sergei Rybakov, Gokcen Eraslan, Tom White, Malte Luecken, \ | ||
Davide Cittaro, Tobias Callies, Marius Lange, Andrés R. Muñoz-Rojas\ | ||
""" | ||
# We don’t need all emails, the main authors are sufficient. | ||
author-email = '[email protected], [email protected]' | ||
description-file = 'README.rst' | ||
home-page = 'http://github.com/theislab/scanpy' | ||
urls = { Documentation = 'https://scanpy.readthedocs.io/' } | ||
[project] | ||
name = "scanpy" | ||
description = "Single-Cell Analysis in Python." | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Alex Wolf"}, | ||
{name = "Philipp Angerer"}, | ||
{name = "Fidel Ramirez"}, | ||
{name = "Isaac Virshup"}, | ||
{name = "Sergei Rybakov"}, | ||
{name = "Gokcen Eraslan"}, | ||
{name = "Tom White"}, | ||
{name = "Malte Luecken"}, | ||
{name = "Davide Cittaro"}, | ||
{name = "Tobias Callies"}, | ||
{name = "Marius Lange"}, | ||
{name = "Andrés R. Muñoz-Rojas"}, | ||
] | ||
maintainers = [ | ||
{name = "Isaac Virshup", email = "[email protected]"}, | ||
{name = "Philipp Angerer", email = "[email protected]"}, | ||
{name = "Alex Wolf", email = "[email protected]"}, | ||
] | ||
readme = {file = "README.rst", content-type="text/x-rst"} | ||
classifiers = [ | ||
'License :: OSI Approved :: BSD License', | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Framework :: Jupyter', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'Natural Language :: English', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
'Topic :: Scientific/Engineering :: Visualization', | ||
"License :: OSI Approved :: BSD License", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Framework :: Jupyter", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Natural Language :: English", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Topic :: Scientific/Engineering :: Visualization", | ||
] | ||
requires-python = '>=3.7' | ||
requires = [ | ||
'anndata>=0.7.4', | ||
dependencies = [ | ||
"anndata>=0.7.4", | ||
# numpy needs a version due to #1320 | ||
'numpy>=1.17.0', | ||
"numpy>=1.17.0", | ||
# Matplotlib 3.1 causes an error in 3d scatter plots (https://github.com/matplotlib/matplotlib/issues/14298) | ||
# But matplotlib 3.0 causes one in heatmaps | ||
'matplotlib>=3.1.2', | ||
'pandas>=0.21', | ||
'scipy>=1.4', | ||
'seaborn', | ||
'h5py>=2.10.0', | ||
'tables', | ||
'tqdm', | ||
'scikit-learn>=0.22', | ||
'statsmodels>=0.10.0rc2', | ||
'patsy', | ||
'networkx>=2.3', | ||
'natsort', | ||
'joblib', | ||
'numba>=0.41.0', | ||
'umap-learn>=0.3.10', | ||
'packaging', | ||
'sinfo', | ||
"matplotlib>=3.1.2", | ||
"pandas>=0.21", | ||
"scipy>=1.4", | ||
"seaborn", | ||
"h5py>=2.10.0", | ||
"tables", | ||
"tqdm", | ||
"scikit-learn>=0.22", | ||
"statsmodels>=0.10.0rc2", | ||
"patsy", | ||
"networkx>=2.3", | ||
"natsort", | ||
"joblib", | ||
"numba>=0.41.0", | ||
"umap-learn>=0.3.10", | ||
"packaging", | ||
"sinfo", | ||
# for getting the stable version | ||
'importlib_metadata>=0.7; python_version < "3.8"', | ||
"importlib_metadata>=0.7; python_version < '3.8'", | ||
] | ||
dynamic = ["version"] | ||
|
||
[tool.flit.metadata.requires-extra] | ||
louvain = ['python-igraph', 'louvain>=0.6,!=0.6.2'] | ||
leiden = ['python-igraph', 'leidenalg'] | ||
bbknn = ['bbknn'] | ||
rapids = ['cudf>=0.9', 'cuml>=0.9', 'cugraph>=0.9'] | ||
magic = ['magic-impute>=2.0'] | ||
skmisc = ['scikit-misc>=0.1.3'] | ||
harmony = ['harmonypy'] | ||
scanorama = ['scanorama'] | ||
scrublet = ['scrublet'] | ||
dev = [ | ||
# getting the dev version | ||
'setuptools_scm', | ||
'pytoml', | ||
# static checking | ||
'black>=20.8b1', | ||
'docutils', | ||
[project.urls] | ||
Documentation = "https://scanpy.readthedocs.io/" | ||
Source = "https://github.com/theislab/scanpy" | ||
Home-page = "https://scanpy.org" | ||
|
||
[project.scripts] | ||
scanpy = "scanpy.cli:console_main" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest>=4.4", | ||
"pytest-nunit", | ||
"dask[array]!=2.17.0", | ||
"fsspec", | ||
"zappy", | ||
"zarr", | ||
"profimp", | ||
# Test the metadata while this exists: https://github.com/takluyver/flit/issues/387 | ||
"flit_core", | ||
] | ||
doc = [ | ||
'sphinx>=4.1,<4.2', | ||
'sphinx-rtd-theme>=0.3.1', | ||
'sphinx-autodoc-typehints', | ||
'scanpydoc>=0.7.3', | ||
'typing_extensions; python_version < "3.8"', # for `Literal` | ||
'python-igraph', | ||
"sphinx>=4.1,<4.2", | ||
"sphinx-rtd-theme>=0.3.1", | ||
"sphinx-autodoc-typehints", | ||
"scanpydoc>=0.7.3", | ||
"typing_extensions; python_version < '3.8'", # for `Literal` | ||
"python-igraph", | ||
] | ||
test = [ | ||
'pytest>=4.4', | ||
'pytest-nunit', | ||
'dask[array]!=2.17.0', | ||
'fsspec', | ||
'zappy', | ||
'zarr', | ||
'profimp', | ||
# Test the metadata while this exists: https://github.com/takluyver/flit/issues/387 | ||
'flit_core', | ||
dev = [ | ||
# getting the dev version | ||
"setuptools_scm", | ||
# static checking | ||
"black>=20.8b1", | ||
"docutils", | ||
] | ||
|
||
[tool.flit.scripts] | ||
scanpy = 'scanpy.cli:console_main' | ||
louvain = ["python-igraph", "louvain>=0.6,!=0.6.2"] | ||
leiden = ["python-igraph", "leidenalg"] | ||
bbknn = ["bbknn"] | ||
rapids = ["cudf>=0.9", "cuml>=0.9", "cugraph>=0.9"] | ||
magic = ["magic-impute>=2.0"] | ||
skmisc = ["scikit-misc>=0.1.3"] | ||
harmony = ["harmonypy"] | ||
scanorama = ["scanorama"] | ||
scrublet = ["scrublet"] | ||
|
||
[tool.flit.sdist] | ||
exclude = [ | ||
'scanpy/tests', | ||
'setup.py', | ||
"scanpy/tests", | ||
"setup.py", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
python_files = 'test_*.py' | ||
testpaths = 'scanpy/tests/' | ||
python_files = "test_*.py" | ||
testpaths = "scanpy/tests/" | ||
xfail_strict = true | ||
nunit_attach_on = 'fail' | ||
nunit_attach_on = "fail" | ||
markers = [ | ||
'internet: tests which rely on internet resources (enable with `--internet-tests`)', | ||
"internet: tests which rely on internet resources (enable with `--internet-tests`)", | ||
] | ||
|
||
[tool.coverage.run] | ||
source = ['scanpy'] | ||
omit = ['*/tests/*'] | ||
source = ["scanpy"] | ||
omit = ["*/tests/*"] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py37'] | ||
target-version = ["py37"] | ||
skip-string-normalization = true | ||
exclude = ''' | ||
exclude = """ | ||
/build/.* | ||
''' | ||
""" |
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.