|
1 | 1 | from pathlib import Path |
2 | | -import setuptools |
3 | | - |
4 | | -try: |
5 | | - from pl.utils.deploy import get_version, get_package_requirements |
6 | | -except ImportError: |
7 | | - print("pl.utils.deploy not found, version number and requirements not valid for upload") |
8 | | - # Useful for debugging |
9 | | - def get_version(*args, **kwargs): |
10 | | - return "0.0.0" |
11 | | - |
12 | | - def get_package_requirements(*args, **kwargs): |
13 | | - return [] |
| 2 | +from setuptools import setup, find_packages |
14 | 3 |
|
15 | 4 | with open("README.md", "r") as fh: |
16 | 5 | long_description = fh.read() |
17 | 6 |
|
| 7 | +with open('requirements.txt') as f: |
| 8 | + requirements = f.read().splitlines() |
| 9 | + |
18 | 10 | parent = Path(__file__).resolve().parent |
19 | | -setuptools.setup( |
| 11 | +setup( |
20 | 12 | name="runx", |
21 | | - version=get_version(version_path=parent / ".version"), |
| 13 | + version="0.0.1", |
22 | 14 | author="Andrew Tao", |
23 | 15 | |
24 | 16 | description="runx - experiment manager for machine learning research", |
25 | 17 | long_description=long_description, |
26 | 18 | long_description_content_type="text/markdown", |
27 | 19 | url="https://github.com/NVIDIA/runx", |
28 | | - packages=setuptools.find_packages(), |
| 20 | + packages=find_packages(), |
29 | 21 | classifiers=[ |
30 | 22 | "Programming Language :: Python :: 3", |
31 | 23 | "License :: OSI Approved :: MIT License", |
32 | 24 | "Operating System :: OS Independent", |
33 | 25 | ], |
34 | | - install_requires=get_package_requirements(parent / "requirements.txt", |
35 | | - start_flag="start package requirements"), |
| 26 | + install_requires=requirements, |
36 | 27 | python_requires='>=3.6', |
37 | | - zip_safe=False |
38 | 28 | ) |
0 commit comments