-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (37 loc) · 1.3 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
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
make_abs = lambda fn: os.path.join(here, fn)
def get_requirments(filename):
with open(filename, 'r') as file_handle:
requirements = []
for requirement in file_handle:
requirement = requirement.strip()
# skip blank lines and comments
if not requirement or requirement.startswith('#'):
continue
requirements.append(requirement)
return requirements
requirements = get_requirments(make_abs('requirements.txt'))
setup(
name='cinch',
packages=find_packages(exclude=['tests', 'tests.*']),
version='0.1.0',
author='onefinestay',
author_email='[email protected]',
url='https://github.com/onefinestay/cinch',
install_requires=requirements,
license='Apache License, Version 2.0',
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development",
"Topic :: Utilities",
],
description='CInch - Making CI a cinch',
long_description=open(make_abs('README.rst')).read(),
include_package_data=True,
zip_safe=False,
)