Skip to content

Commit ae7705b

Browse files
committed
fixing up package installation stuff
1 parent f2c0d53 commit ae7705b

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

.version

Lines changed: 0 additions & 5 deletions
This file was deleted.

requirements_dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip==20.0.2
2+
wheel==0.34.2
3+
twine==3.1.1
4+

setup.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
11
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
143

154
with open("README.md", "r") as fh:
165
long_description = fh.read()
176

7+
with open('requirements.txt') as f:
8+
requirements = f.read().splitlines()
9+
1810
parent = Path(__file__).resolve().parent
19-
setuptools.setup(
11+
setup(
2012
name="runx",
21-
version=get_version(version_path=parent / ".version"),
13+
version="0.0.1",
2214
author="Andrew Tao",
2315
author_email="[email protected]",
2416
description="runx - experiment manager for machine learning research",
2517
long_description=long_description,
2618
long_description_content_type="text/markdown",
2719
url="https://github.com/NVIDIA/runx",
28-
packages=setuptools.find_packages(),
20+
packages=find_packages(),
2921
classifiers=[
3022
"Programming Language :: Python :: 3",
3123
"License :: OSI Approved :: MIT License",
3224
"Operating System :: OS Independent",
3325
],
34-
install_requires=get_package_requirements(parent / "requirements.txt",
35-
start_flag="start package requirements"),
26+
install_requires=requirements,
3627
python_requires='>=3.6',
37-
zip_safe=False
3828
)

0 commit comments

Comments
 (0)