-
Notifications
You must be signed in to change notification settings - Fork 674
Switch to flit #1527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Switch to flit #1527
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 @@ | ||
| # Flit mangles the +local part of the version spec in compliance with PEP 427, | ||
| # but pip 20.3.4 started expecting wheel filenames to contain the local part unmangled. | ||
| # https://github.com/pypa/pip/issues/9628 | ||
| pip==20.3.3 |
This file contains hidden or 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 hidden or 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 hidden or 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,6 +1,5 @@ | ||
| import os | ||
| import sys | ||
| import warnings | ||
| from pathlib import Path | ||
| from datetime import datetime | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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,16 +1,119 @@ | ||
| [build-system] | ||
| requires = ['setuptools', 'setuptools_scm', 'wheel', 'pytoml'] | ||
| build-backend = 'setuptools.build_meta' | ||
| build-backend = 'flit_core.buildapi' | ||
| requires = [ | ||
| 'flit_core >=2,<4', | ||
| 'setuptools_scm', | ||
| 'pytoml', | ||
| 'importlib_metadata>=0.7; python_version < "3.8"', | ||
| # setup.py stuff | ||
| 'packaging', | ||
| ] | ||
|
|
||
| # uses the format of tool.flit.metadata because we’ll move to it anyway | ||
| [tool.scanpy] | ||
| author = """ | ||
| [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/' } | ||
| 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.6', | ||
| 'Programming Language :: Python :: 3.7', | ||
| 'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
| 'Topic :: Scientific/Engineering :: Visualization', | ||
| ] | ||
| requires-python = '>=3.6' | ||
| requires = [ | ||
| 'anndata>=0.7.4', | ||
| # numpy needs a version due to #1320 | ||
| '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.21.2', | ||
| 'statsmodels>=0.10.0rc2', | ||
| 'patsy', | ||
| 'networkx>=2.3', | ||
| 'natsort', | ||
| 'joblib', | ||
| 'numba>=0.41.0', | ||
| 'umap-learn>=0.3.10', | ||
| 'legacy-api-wrap', | ||
| 'packaging', | ||
| 'sinfo', | ||
| # for getting the stable version | ||
| 'importlib_metadata>=0.7; python_version < "3.8"', | ||
| ] | ||
|
|
||
| [tool.flit.metadata.requires-extra] | ||
| louvain = ['python-igraph', 'louvain>=0.6,!=0.6.2'] | ||
| leiden = ['python-igraph', 'leidenalg'] | ||
| bbknn = ['bbknn'] | ||
| scvi = ['scvi==0.6.7'] | ||
| 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', | ||
| ] | ||
| doc = [ | ||
| 'sphinx>=3.2', | ||
| 'sphinx-rtd-theme>=0.3.1', | ||
| 'sphinx-autodoc-typehints', | ||
| 'readthedocs-sphinx-search', | ||
| 'scanpydoc>=0.5', | ||
| 'typing_extensions; python_version < "3.8"', # for `Literal` | ||
| ] | ||
| 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', | ||
| ] | ||
|
|
||
| [tool.flit.scripts] | ||
| scanpy = 'scanpy.cli:console_main' | ||
|
|
||
| [tool.flit.sdist] | ||
| exclude = [ | ||
| 'scanpy/tests', | ||
| 'setup.py', | ||
| ] | ||
|
|
||
| [tool.pytest.ini_options] | ||
| python_files = 'test_*.py' | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,43 +1,42 @@ | ||
| """Single-Cell Analysis in Python.""" | ||
|
|
||
| from ._metadata import __version__, __author__, __email__ | ||
|
|
||
| from ._utils import check_versions | ||
|
|
||
| check_versions() | ||
| del check_versions | ||
|
|
||
| # the actual API | ||
| from ._settings import ( | ||
| settings, | ||
| Verbosity, | ||
| ) # start with settings as several tools are using it | ||
| from . import tools as tl | ||
| from . import preprocessing as pp | ||
| from . import plotting as pl | ||
| from . import datasets, logging, queries, external, get | ||
|
|
||
| from anndata import AnnData, concat | ||
| from anndata import ( | ||
| read_h5ad, | ||
| read_csv, | ||
| read_excel, | ||
| read_hdf, | ||
| read_loom, | ||
| read_mtx, | ||
| read_text, | ||
| read_umi_tools, | ||
| ) | ||
| from .readwrite import read, read_10x_h5, read_10x_mtx, write, read_visium | ||
| from .neighbors import Neighbors | ||
|
|
||
| set_figure_params = settings.set_figure_params | ||
|
|
||
| # has to be done at the end, after everything has been imported | ||
| import sys | ||
|
|
||
| sys.modules.update({f'{__name__}.{m}': globals()[m] for m in ['tl', 'pp', 'pl']}) | ||
| from ._utils import annotate_doc_types | ||
|
|
||
| annotate_doc_types(sys.modules[__name__], 'scanpy') | ||
| del sys, annotate_doc_types | ||
| from ._metadata import __version__, __author__, __email__, within_flit | ||
|
|
||
| if not within_flit(): # see function docstring on why this is there | ||
| from ._utils import check_versions | ||
|
|
||
| check_versions() | ||
| del check_versions, within_flit | ||
|
|
||
| # the actual API | ||
| # (start with settings as several tools are using it) | ||
| from ._settings import settings, Verbosity | ||
| from . import tools as tl | ||
| from . import preprocessing as pp | ||
| from . import plotting as pl | ||
| from . import datasets, logging, queries, external, get | ||
|
|
||
| from anndata import AnnData, concat | ||
| from anndata import ( | ||
| read_h5ad, | ||
| read_csv, | ||
| read_excel, | ||
| read_hdf, | ||
| read_loom, | ||
| read_mtx, | ||
| read_text, | ||
| read_umi_tools, | ||
| ) | ||
| from .readwrite import read, read_10x_h5, read_10x_mtx, write, read_visium | ||
| from .neighbors import Neighbors | ||
|
|
||
| set_figure_params = settings.set_figure_params | ||
|
|
||
| # has to be done at the end, after everything has been imported | ||
| import sys | ||
|
|
||
| sys.modules.update({f'{__name__}.{m}': globals()[m] for m in ['tl', 'pp', 'pl']}) | ||
| from ._utils import annotate_doc_types | ||
|
|
||
| annotate_doc_types(sys.modules[__name__], 'scanpy') | ||
| del sys, annotate_doc_types |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.