-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
49 lines (44 loc) · 1.42 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
import os
import re
from setuptools import setup, find_packages
import sys
def yield_packages(path):
"""Simple parser for requirements.txt files"""
with open(path) as requirements:
for line in requirements:
if re.match('^[a-zA-Z]', line):
yield line.strip()
HERE = os.path.abspath(os.path.dirname(__file__))
REQUIRES = list(yield_packages(os.path.join(HERE, 'requirements.txt')))
DEVELOP = list(yield_packages(os.path.join(HERE, 'requirements-develop.txt')))
README = open(os.path.join(HERE, 'README.rst')).read()
setup(
name='occams',
version='4.0.0-dev1',
description='OCCAMS Application Platform',
long_description=README,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='RazorLabs',
author_email='[email protected]',
url='https://github.com/razorlabs/occams',
license='BSD',
keywords='web wsgi bfg pylons pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
extras_require={'develop': DEVELOP},
tests_require=DEVELOP,
entry_points="""\
[paste.app_factory]
main = occams:main
[console_scripts]
occams_buildassets = occams.scripts.buildassets:main
occams_initdb = occams.scripts.initdb:main
""",
)