/
setup.py
55 lines (46 loc) · 1.51 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
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGELOG.md')) as f:
CHANGES = f.read()
def parse_requirements(requirements_file):
with open(requirements_file, 'r') as f:
return [line for line in f if line.strip()
and not line.startswith('#')
and not line.startswith('-e')]
def parse_dependencies(requirements_file):
with open(requirements_file, 'r') as f:
return [line for line in f if line.strip()
and not line.startswith('#')
and line.startswith('-e')]
REQUIREMENTS_PATH = 'requirements.txt'
setup(
name='waartaa',
version='0.1.1',
description='waartaa',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=parse_requirements(REQUIREMENTS_PATH),
tests_requires=parse_requirements(REQUIREMENTS_PATH),
dependency_links=parse_dependencies(REQUIREMENTS_PATH),
test_suite="waartaa",
entry_points={
'paste.app_factory': [
"main = waartaa:main"
]
}
)