-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
60 lines (41 loc) · 1.2 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
setup.py
"""
from setuptools import setup, find_packages
from typing import Dict
import os
NAME = "flambe"
AUTHOR = "ASAPP Inc."
EMAIL = "[email protected]"
DESCRIPTION = "Pytorch based library for robust prototyping, standardized \
benchmarking, and effortless experiment management"
def readme():
with open('README-pypi.rst', encoding='utf-8') as f:
return f.read()
def required():
with open('requirements.txt') as f:
return f.read().splitlines()
# So that we don't import flambe.
VERSION: Dict[str, str] = {}
with open("flambe/version.py", "r") as version_file:
exec(version_file.read(), VERSION)
setup(
name=NAME,
version=os.environ.get("TAG_VERSION", VERSION['VERSION']),
description=DESCRIPTION,
long_description=readme(),
long_description_content_type="text/x-rst; charset=UTF-8",
# Author information
author=AUTHOR,
author_email=EMAIL,
# What is packaged here.
packages=find_packages(exclude=("tests", "tests.*", "extensions")),
scripts=[
'bin/flambe',
'bin/flambe-site'
],
install_requires=required(),
include_package_data=True,
python_requires='>=3.6.1',
zip_safe=True
)