From 6c05df9a2b7790d9d406dda4cc13754824a0f08b Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Fri, 27 Mar 2020 17:14:04 +0300 Subject: [PATCH] Moved the metadata into setup.cfg --- pyproject.toml | 5 ++++ setup.cfg | 47 ++++++++++++++++++++++++++++++++++++ setup.py | 64 ++------------------------------------------------ 3 files changed, 54 insertions(+), 62 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..5f713a45 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..331b246e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,47 @@ +[metadata] +name = umap-learn +maintainer = Leland McInnes +maintainer_email = leland.mcinnes@gmail.com +license = BSD +description = Uniform Manifold Approximation and Projection +keywords = dimension, reduction, t-sne, manifold +url = http://github.com/lmcinnes/umap +long_description = file: README.rst +long_description_content_type = text/x-rst +classifiers = + Development Status :: 3 - Alpha + Intended Audience :: Science/Research + Intended Audience :: Developers + License :: OSI Approved + Programming Language :: C + Programming Language :: Python + Topic :: Software Development + Topic :: Scientific/Engineering + Operating System :: Microsoft :: Windows + Operating System :: POSIX + Operating System :: Unix + Operating System :: MacOS + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.8 + +[options] +packages = umap +zip_safe = False +install_requires = + numpy >= 1.13 + scikit-learn >= 0.20 + scipy >= 1.0 + numba >= 0.42, != 0.47 + tbb >= 2019.0 +tests_require = nose +setup_requires = setuptools>=42; wheel; setuptools_scm[toml]>=3.4.3 + +[options.extras_require] +plot = + matplotlib + datashader + bokeh + holoviews + seaborn +performance = pynndescent >= 0.4 diff --git a/setup.py b/setup.py index e8a61554..7f1a1763 100644 --- a/setup.py +++ b/setup.py @@ -1,64 +1,4 @@ from setuptools import setup - -def readme(): - try: - with open("README.rst", encoding="UTF-8") as readme_file: - return readme_file.read() - except TypeError: - # Python 2.7 doesn't support encoding argument in builtin open - import io - - with io.open("README.rst", encoding="UTF-8") as readme_file: - return readme_file.read() - - -configuration = { - "name": "umap-learn", - "version": "0.4.0.rc3", - "description": "Uniform Manifold Approximation and Projection", - "long_description": readme(), - "long_description_content_type": "text/x-rst", - "classifiers": [ - "Development Status :: 3 - Alpha", - "Intended Audience :: Science/Research", - "Intended Audience :: Developers", - "License :: OSI Approved", - "Programming Language :: C", - "Programming Language :: Python", - "Topic :: Software Development", - "Topic :: Scientific/Engineering", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Operating System :: Unix", - "Operating System :: MacOS", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.8", - ], - "keywords": "dimension reduction t-sne manifold", - "url": "http://github.com/lmcinnes/umap", - "maintainer": "Leland McInnes", - "maintainer_email": "leland.mcinnes@gmail.com", - "license": "BSD", - "packages": ["umap"], - "install_requires": [ - "numpy >= 1.13", - "scikit-learn >= 0.20", - "scipy >= 1.0", - "numba >= 0.42, != 0.47", - "tbb >= 2019.0", - ], - "extras_require": { - "plot": ["matplotlib", "datashader", "bokeh", "holoviews", "seaborn"], - "performance": ["pynndescent >= 0.4"], - }, - "ext_modules": [], - "cmdclass": {}, - "test_suite": "nose.collector", - "tests_require": ["nose"], - "data_files": (), - "zip_safe": False, -} - -setup(**configuration) +if __name__ == "__main__": + setup()