|
1 | 1 | [build-system]
|
2 |
| -build-backend = 'flit_core.buildapi' |
| 2 | +build-backend = "flit_core.buildapi" |
3 | 3 | requires = [
|
4 |
| - 'flit_core >=3.1,<4', |
5 |
| - 'setuptools_scm', |
6 |
| - 'pytoml', |
7 |
| - 'importlib_metadata>=0.7; python_version < "3.8"', |
| 4 | + "flit_core >=3.4,<4", |
| 5 | + "setuptools_scm", |
| 6 | + "importlib_metadata>=0.7; python_version < '3.8'", |
8 | 7 | ]
|
9 | 8 |
|
10 |
| -[tool.flit.metadata] |
11 |
| -module = 'anndata' |
12 |
| -author = 'Philipp Angerer, Alex Wolf, Isaac Virshup, Sergei Rybakov' |
13 |
| -# We don’t need all emails, the main authors are sufficient. |
14 |
| - |
15 |
| -description-file = 'README.rst' |
16 |
| -home-page = 'http://github.com/theislab/anndata' |
17 |
| -urls = { Documentation = 'https://anndata.readthedocs.io/' } |
| 9 | +[project] |
| 10 | +name = "anndata" |
| 11 | +description = "Annotated data." |
| 12 | +requires-python = ">=3.6" |
| 13 | +license = {file = "LICENSE"} |
| 14 | +authors = [ |
| 15 | + {name = "Philipp Angerer"}, |
| 16 | + {name = "Alex Wolf"}, |
| 17 | + {name = "Isaac Virshup"}, |
| 18 | + {name = "Sergei Rybakov"}, |
| 19 | +] |
| 20 | +maintainers = [ |
| 21 | + { name = "Isaac Virshup", email = "[email protected]"}, |
| 22 | + { name = "Philipp Angerer", email = "[email protected]"}, |
| 23 | + { name = "Alex Wolf", email = "[email protected]"}, |
| 24 | +] |
| 25 | +readme = {file = "README.rst", content-type="text/x-rst"} |
18 | 26 | classifiers = [
|
19 |
| - 'License :: OSI Approved :: BSD License', |
20 |
| - 'Environment :: Console', |
21 |
| - 'Framework :: Jupyter', |
22 |
| - 'Intended Audience :: Developers', |
23 |
| - 'Intended Audience :: Science/Research', |
24 |
| - 'Natural Language :: English', |
25 |
| - 'Operating System :: MacOS :: MacOS X', |
26 |
| - 'Operating System :: Microsoft :: Windows', |
27 |
| - 'Operating System :: POSIX :: Linux', |
28 |
| - 'Programming Language :: Python :: 3', |
29 |
| - 'Programming Language :: Python :: 3.6', |
30 |
| - 'Programming Language :: Python :: 3.7', |
31 |
| - 'Topic :: Scientific/Engineering :: Bio-Informatics', |
32 |
| - 'Topic :: Scientific/Engineering :: Visualization', |
| 27 | + "License :: OSI Approved :: BSD License", |
| 28 | + "Environment :: Console", |
| 29 | + "Framework :: Jupyter", |
| 30 | + "Intended Audience :: Developers", |
| 31 | + "Intended Audience :: Science/Research", |
| 32 | + "Natural Language :: English", |
| 33 | + "Operating System :: MacOS :: MacOS X", |
| 34 | + "Operating System :: Microsoft :: Windows", |
| 35 | + "Operating System :: POSIX :: Linux", |
| 36 | + "Programming Language :: Python :: 3", |
| 37 | + "Programming Language :: Python :: 3.6", |
| 38 | + "Programming Language :: Python :: 3.7", |
| 39 | + "Programming Language :: Python :: 3.8", |
| 40 | + "Programming Language :: Python :: 3.9", |
| 41 | + "Topic :: Scientific/Engineering :: Bio-Informatics", |
| 42 | + "Topic :: Scientific/Engineering :: Visualization", |
33 | 43 | ]
|
34 |
| -requires-python = '>=3.6' |
35 |
| -requires = [ |
36 |
| - 'pandas>=1.1.1', # pandas <1.1.1 has pandas/issues/35446 |
37 |
| - 'numpy>=1.16.5', # required by pandas 1.x |
38 |
| - 'scipy>1.4', |
39 |
| - 'h5py', |
40 |
| - 'natsort', |
41 |
| - 'packaging>=20', |
42 |
| - 'xlrd<2.0', # xlsx format not support anymore from v2.0, see pandas/issues/38524 |
| 44 | +dependencies = [ |
| 45 | + "pandas>=1.1.1", # pandas <1.1.1 has pandas/issues/35446 |
| 46 | + "numpy>=1.16.5", # required by pandas 1.x |
| 47 | + "scipy>1.4", |
| 48 | + "h5py", |
| 49 | + "natsort", |
| 50 | + "packaging>=20", |
| 51 | + "xlrd<2.0", # xlsx format not support anymore from v2.0, see pandas/issues/38524 |
43 | 52 | # for getting the stable version
|
44 |
| - 'importlib_metadata>=0.7; python_version < "3.8"', |
| 53 | + "importlib_metadata>=0.7; python_version < '3.8'", |
45 | 54 | ]
|
| 55 | +dynamic = ["version"] |
| 56 | + |
| 57 | +[project.urls] |
| 58 | +Documentation = "https://anndata.readthedocs.io/" |
| 59 | +Source = "https://github.com/theislab/anndata" |
| 60 | +Home-page = "https://github.com/theislab/anndata" |
| 61 | + |
46 | 62 |
|
47 |
| -[tool.flit.metadata.requires-extra] |
| 63 | +[project.optional-dependencies] |
48 | 64 | dev = [
|
49 | 65 | # dev version generation
|
50 |
| - 'setuptools_scm', |
51 |
| - 'pytoml', |
| 66 | + "setuptools_scm", |
52 | 67 | # static checking
|
53 |
| - 'black>=20.8b1', |
54 |
| - 'docutils', |
| 68 | + "black>=20.8b1", |
| 69 | + "docutils", |
55 | 70 | ]
|
56 | 71 | doc = [
|
57 |
| - 'sphinx>=4.1,<4.2', |
58 |
| - 'sphinx-rtd-theme', |
59 |
| - 'sphinx-autodoc-typehints>=1.11.0', |
60 |
| - 'sphinx_issues', |
61 |
| - 'scanpydoc>=0.7.3', |
62 |
| - 'typing_extensions; python_version < "3.8"', |
| 72 | + "sphinx>=4.1,<4.2", |
| 73 | + "sphinx-rtd-theme", |
| 74 | + "sphinx-autodoc-typehints>=1.11.0", |
| 75 | + "sphinx_issues", |
| 76 | + "scanpydoc>=0.7.3", |
| 77 | + "typing_extensions; python_version < '3.8'", |
63 | 78 | ]
|
64 | 79 | test = [
|
65 |
| - 'loompy>=3.0.5', |
66 |
| - 'pytest>=6.0', |
67 |
| - 'pytest-cov>=2.10', |
68 |
| - 'zarr', |
69 |
| - 'matplotlib', |
70 |
| - 'sklearn', |
71 |
| - 'openpyxl', |
72 |
| - 'joblib', |
73 |
| - 'boltons', |
74 |
| - 'scanpy', |
| 80 | + "loompy>=3.0.5", |
| 81 | + "pytest>=6.0", |
| 82 | + "pytest-cov>=2.10", |
| 83 | + "zarr", |
| 84 | + "matplotlib", |
| 85 | + "sklearn", |
| 86 | + "openpyxl", |
| 87 | + "joblib", |
| 88 | + "boltons", |
| 89 | + "scanpy", |
75 | 90 | ]
|
76 | 91 |
|
77 | 92 | [tool.flit.sdist]
|
78 | 93 | exclude = [
|
79 |
| - 'anndata/tests', |
80 |
| - 'setup.py', |
| 94 | + "anndata/tests", |
| 95 | + "setup.py", |
81 | 96 | ]
|
82 | 97 |
|
83 | 98 | [tool.coverage.run]
|
84 |
| -source = ['anndata'] |
| 99 | +source = ["anndata"] |
85 | 100 | omit = [
|
86 |
| - 'setup.py', |
87 |
| - 'versioneer.py', |
88 |
| - 'anndata/_version.py', |
89 |
| - '**/test_*.py', |
| 101 | + "setup.py", |
| 102 | + "versioneer.py", |
| 103 | + "anndata/_version.py", |
| 104 | + "**/test_*.py", |
90 | 105 | ]
|
91 | 106 |
|
92 | 107 | [tool.pytest.ini_options]
|
93 |
| -addopts = '--doctest-modules' |
94 |
| -python_files = 'test_*.py' |
95 |
| -testpaths = ['anndata', 'docs/concatenation.rst'] |
| 108 | +addopts = "--doctest-modules" |
| 109 | +python_files = "test_*.py" |
| 110 | +testpaths = ["anndata", "docs/concatenation.rst"] |
96 | 111 | xfail_strict = true
|
97 | 112 |
|
98 | 113 | [tool.black]
|
99 | 114 | line-length = 88
|
100 |
| -target-version = ['py36'] |
101 |
| -exclude = '^/build/.*$' |
| 115 | +target-version = ["py36"] |
| 116 | +exclude = "^/build/.*$" |
0 commit comments