-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (39 loc) · 1.05 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
import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'README.md')) as f:
long_description = f.read()
requirements = list()
with open(os.path.join(HERE, 'requirements.txt')) as f:
for line in f:
line = line.strip()
if not line.startswith('#'):
requirements.append(line)
package_names = list()
with open(os.path.join(HERE, "project-packages.txt")) as f:
package_names = [line for line in f.read().split("\n")
if line and not line.startswith('#')]
package_name = package_names[0]
with open(os.path.join(HERE, 'version')) as f:
version = f.read().strip()
setup(
name=package_name,
version=version,
description=long_description,
long_description=long_description,
packages=package_names,
include_package_data=True,
install_requires=requirements,
setup_requires=[
],
tests_require=[
],
data_files=[
],
entry_points={
'console_scripts': [
],
},
scripts=[
],
)