-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
50 lines (42 loc) · 1.34 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
import subprocess
try:
from setuptools import setup
except:
from distutils.core import setup
def parse_requirements(requirements_filename='requirements.txt'):
requirements = []
with open(requirements_filename) as requirements_file:
for requirement in requirements_file:
requirements.append(requirement.rstrip('\n'))
return requirements
try:
patch = subprocess.check_output(['git', 'rev-list', '--count', 'HEAD']).strip()
except:
patch = 'no-git'
VERSION = '0.1.%s' % patch
config = dict(
name='color_balance',
version=VERSION,
url='https://github.com/planetlabs/color_balance',
description='Color balancing',
author='Jennifer Reiber Kyle',
author_email='jennifer.kyle@planet.com',
install_requires=parse_requirements(),
packages=['color_balance'],
extras_require={
'test': [
'pytest'
]
},
classifiers=[
"Development Status :: 1 - Planning",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Scientific/Engineering :: GIS",
]
)
setup(**config)