|
1 | 1 | [build-system] |
2 | | -requires = ['setuptools', 'setuptools_scm', 'wheel', 'pytoml'] |
3 | | -build-backend = 'setuptools.build_meta' |
| 2 | +build-backend = 'flit_core.buildapi' |
| 3 | +requires = [ |
| 4 | + 'flit_core >=2,<4', |
| 5 | + 'setuptools_scm', |
| 6 | + 'pytoml', |
| 7 | + 'importlib_metadata>=0.7; python_version < "3.8"', |
| 8 | +] |
4 | 9 |
|
5 | | -# uses the format of tool.flit.metadata because we’ll move to it anyway |
6 | | -[tool.scanpy] |
7 | | -author = ''' |
8 | | -Alex Wolf, Philipp Angerer, Fidel Ramirez, Isaac Virshup, |
9 | | -Sergei Rybakov, Gokcen Eraslan, Tom White, Malte Luecken, |
10 | | -Davide Cittaro, Tobias Callies, Marius Lange, Andrés R. Muñoz-Rojas |
11 | | -''' |
| 10 | +[tool.flit.metadata] |
| 11 | +module = 'scanpy' |
| 12 | +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' |
12 | 13 | # We don’t need all emails, the main authors are sufficient. |
13 | 14 | author-email = 'f.alex.wolf@gmx.de, philipp.angerer@helmholtz-muenchen.de' |
| 15 | +description-file = 'README.rst' |
| 16 | +home-page = 'http://github.com/theislab/scanpy' |
| 17 | +urls = { Documentation = 'https://scanpy.readthedocs.io/' } |
| 18 | +classifiers = [ |
| 19 | + 'License :: OSI Approved :: BSD License', |
| 20 | + 'Development Status :: 5 - Production/Stable', |
| 21 | + 'Environment :: Console', |
| 22 | + 'Framework :: Jupyter', |
| 23 | + 'Intended Audience :: Developers', |
| 24 | + 'Intended Audience :: Science/Research', |
| 25 | + 'Natural Language :: English', |
| 26 | + 'Operating System :: MacOS :: MacOS X', |
| 27 | + 'Operating System :: Microsoft :: Windows', |
| 28 | + 'Operating System :: POSIX :: Linux', |
| 29 | + 'Programming Language :: Python :: 3', |
| 30 | + 'Programming Language :: Python :: 3.6', |
| 31 | + 'Programming Language :: Python :: 3.7', |
| 32 | + 'Topic :: Scientific/Engineering :: Bio-Informatics', |
| 33 | + 'Topic :: Scientific/Engineering :: Visualization', |
| 34 | +] |
| 35 | +requires-python = '>=3.6' |
| 36 | +requires = [ |
| 37 | + 'anndata>=0.7.4', |
| 38 | + # numpy needs a version due to #1320 |
| 39 | + 'numpy>=1.17.0', |
| 40 | + # Matplotlib 3.1 causes an error in 3d scatter plots (https://github.com/matplotlib/matplotlib/issues/14298) |
| 41 | + # But matplotlib 3.0 causes one in heatmaps |
| 42 | + 'matplotlib>=3.1.2', |
| 43 | + 'pandas>=0.21', |
| 44 | + 'scipy>=1.4', |
| 45 | + 'seaborn', |
| 46 | + 'h5py>=2.10.0', |
| 47 | + 'tables', |
| 48 | + 'tqdm', |
| 49 | + 'scikit-learn>=0.21.2', |
| 50 | + 'statsmodels>=0.10.0rc2', |
| 51 | + 'patsy', |
| 52 | + 'networkx>=2.3', |
| 53 | + 'natsort', |
| 54 | + 'joblib', |
| 55 | + 'numba>=0.41.0', |
| 56 | + 'umap-learn>=0.3.10', |
| 57 | + 'legacy-api-wrap', |
| 58 | + 'packaging', |
| 59 | + 'sinfo', |
| 60 | + # for getting the stable version |
| 61 | + 'importlib_metadata>=0.7; python_version < "3.8"', |
| 62 | +] |
| 63 | + |
| 64 | +[tool.flit.metadata.requires-extra] |
| 65 | +louvain = ['python-igraph', 'louvain>=0.6,!=0.6.2'] |
| 66 | +leiden = ['python-igraph', 'leidenalg'] |
| 67 | +bbknn = ['bbknn'] |
| 68 | +scvi = ['scvi>=0.6.5'] |
| 69 | +rapids = ['cudf>=0.9', 'cuml>=0.9', 'cugraph>=0.9'] |
| 70 | +magic = ['magic-impute>=2.0'] |
| 71 | +skmisc = ['scikit-misc>=0.1.3'] |
| 72 | +harmony = ['harmonypy'] |
| 73 | +dev = [ |
| 74 | + # getting the dev version |
| 75 | + 'setuptools_scm', |
| 76 | + 'pytoml', |
| 77 | + # static checking |
| 78 | + 'black>=20.8b1', |
| 79 | + 'docutils', |
| 80 | +] |
| 81 | +doc = [ |
| 82 | + 'sphinx<3.1, >3', |
| 83 | + 'sphinx-rtd-theme>=0.3.1', |
| 84 | + 'sphinx-autodoc-typehints', |
| 85 | + 'scanpydoc>=0.5', |
| 86 | + 'typing_extensions; python_version < "3.8"', # for `Literal` |
| 87 | +] |
| 88 | +test = [ |
| 89 | + 'pytest>=4.4', |
| 90 | + 'dask[array]!=2.17.0', |
| 91 | + 'fsspec', |
| 92 | + 'zappy', |
| 93 | + 'zarr', |
| 94 | + 'profimp', |
| 95 | +] |
| 96 | + |
| 97 | +[tool.flit.scripts] |
| 98 | +scanpy = 'scanpy.cli:console_main' |
| 99 | + |
| 100 | +[tool.flit.sdist] |
| 101 | +exclude = ['scanpy/tests'] |
14 | 102 |
|
15 | 103 | [tool.pytest.ini_options] |
16 | 104 | python_files = 'test_*.py' |
|
0 commit comments