-
Notifications
You must be signed in to change notification settings - Fork 65
/
setup.py
34 lines (28 loc) · 849 Bytes
/
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
from setuptools import setup, find_packages
import subprocess
version = "2.0"
def getRequirements():
with open('requirements.txt', 'r') as file:
return file.readlines()
return []
#def getVersion():
#
# subprocess.run(['git','update-index','--refresh'], \
# stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
#
# dirty = subprocess.run(['git','diff-index','--quiet','HEAD']) \
# .returncode != 0
# dirtyStr = "-dirty" if dirty else ""
#
# githash = subprocess.run(['git','rev-parse','--short','HEAD'], \
# check=True, capture_output=True, text=True) \
# .stdout.rstrip()
#
# return f'{version}-{githash}{dirtyStr}'
setup(
name='warp',
packages=find_packages(),
version='2.0.dev1',
include_package_data=True,
install_requires=getRequirements(),
)