|
1 | | -from setuptools import setup |
2 | | - |
3 | | -# read the contents of your README file |
4 | | -from pathlib import Path |
5 | | - |
6 | | -this_directory = Path(__file__).parent |
7 | | - |
8 | | - |
9 | | -def get_version(rel_path): |
10 | | - for line in (this_directory / rel_path).read_text().splitlines(): |
11 | | - if line.startswith("__version__"): |
12 | | - delim = '"' if '"' in line else "'" |
13 | | - return line.split(delim)[1] |
14 | | - else: |
15 | | - raise RuntimeError("Unable to find version string.") |
| 1 | +""" |
| 2 | +This setup.py file is only for backward compatibility. |
| 3 | +The actual configuration is in pyproject.toml. |
| 4 | +""" |
16 | 5 |
|
| 6 | +from setuptools import setup |
17 | 7 |
|
18 | | -setup( |
19 | | - name="mellon", |
20 | | - version=get_version("mellon/__init__.py"), |
21 | | - description="Non-parametric density estimator.", |
22 | | - url="https://github.com/settylab/mellon", |
23 | | - author="Setty Lab", |
24 | | - author_email="dominik.otto@gmail.com", |
25 | | - license="GNU General Public License v3.0", |
26 | | - packages=["mellon"], |
27 | | - install_requires=[ |
28 | | - "jax", |
29 | | - "jaxopt", |
30 | | - "scikit-learn", |
31 | | - "pynndescent", |
32 | | - ], |
33 | | - extras_require={ |
34 | | - 'dev': [ |
35 | | - 'flake8', |
36 | | - 'pytest', |
37 | | - 'coverage', |
38 | | - 'typing-extensions' |
39 | | - ] |
40 | | - }, |
41 | | - classifiers=[ |
42 | | - "Intended Audience :: Science/Research", |
43 | | - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
44 | | - ], |
45 | | - long_description=(this_directory / "README.rst").read_text(), |
46 | | - long_description_content_type="text/x-rst", |
47 | | -) |
| 8 | +setup() |
0 commit comments