-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
35 lines (28 loc) · 1.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from setuptools import find_packages, setup
from dict_minimize import __version__
def read_requirements(name):
with open("requirements/" + name + ".in") as f:
requirements = f.read().strip()
requirements = requirements.replace("==", ">=").splitlines() # Loosen strict pins
return [pp for pp in requirements if pp[0].isalnum()]
requirements = read_requirements("base")
framework_requirements = read_requirements("frameworks")
test_requirements = read_requirements("tests")
with open("README.rst") as f:
long_description = f.read()
setup(
name="dict_minimize",
version=__version__,
packages=find_packages(),
url="https://github.com/twitter/dict_minimize/",
author="Ryan Turner",
author_email=("[email protected]"),
license="Apache v2",
description="Access scipy optimizers from your favorite deep learning framework.",
python_requires=">=3.6",
install_requires=requirements,
extras_require={"framework": framework_requirements, "test": test_requirements},
long_description=long_description,
long_description_content_type="text/x-rst",
platforms=["any"],
)