This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathsetup.py
120 lines (105 loc) · 3.13 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import sys
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
NAME = 'pyshop'
with open(os.path.join(here, 'README.rst')) as readme:
README = readme.read()
with open(os.path.join(here, 'CHANGES.rst')) as changes:
CHANGES = changes.read()
with open(os.path.join(here, 'pyshop', '__init__.py')) as version:
VERSION = re.compile(r".*__version__ = '(.*?)'",
re.S).match(version.read()).group(1)
requires = [
'pyramid >= 1.5',
'SQLAlchemy',
'pyramid_filterwarnings',
'pyramid_jinja2',
'pyramid_rpc',
'pyramid_tm',
'zope.sqlalchemy',
'cryptacular',
'requests',
'docutils',
'setuptools', # compare package version
]
test_requires = ['nose', 'pyfakefs']
if sys.version_info < (2, 7):
test_requires.append('unittest2')
extras_require = {
'ldap': [
'python-ldap',
],
'waitress': [
'waitress',
],
'dev': [
'waitress',
'pyramid_debugtoolbar',
],
'shell': [
'IPython',
],
'docs': [
'sphinx',
'sphinx_rtd_theme'
],
'wheelify': [
'wheel', # build wheels from source on the proxy
],
'test': test_requires
}
if 'VIRTUAL_ENV' in os.environ:
venv = os.environ['VIRTUAL_ENV']
data_files = [(venv, ['pyshop.sample.ini',
'pyshop.sample.service',
])]
else:
data_files = []
setup(name=NAME,
version=VERSION,
description='Private Python Package Index',
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Pyramid',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Software Development',
'Topic :: System :: Archiving :: Mirroring',
'Topic :: System :: Archiving :: Packaging',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
],
author='Guillaume Gauvrit',
author_email='[email protected]',
url='https://github.com/mardiros/pyshop',
keywords='web wsgi pyramid cheeseshop pypi packaging',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite=NAME,
install_requires=requires,
tests_require=test_requires,
extras_require=extras_require,
entry_points={
'paste.app_factory': [
"main = pyshop:main",
],
'console_scripts': [
"pyshop_setup = pyshop.bin.install:main",
"pyshop_shell = pyshop.bin.shell:main [shell]",
"pyshop_migrate = pyshop.bin.migrate:main",
],
},
paster_plugins=['pyramid'],
data_files=data_files,
)