1
by Richard Gomes
initial commit |
1 |
#!/usr/bin/env python
|
2 |
||
19
by Richard Gomes
full code review |
3 |
from setuptools import find_packages, setup |
4 |
import distcontrib as p |
|
5 |
||
6 |
import os |
|
7 |
here = os.path.abspath(os.path.dirname(__file__)) |
|
1
by Richard Gomes
initial commit |
8 |
try: |
19
by Richard Gomes
full code review |
9 |
README = open(os.path.join(here, 'README.rst')).read() |
10 |
AUTHORS = open(os.path.join(here, 'AUTHORS.txt')).read() |
|
11 |
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() |
|
12 |
except IOError: |
|
13 |
README = AUTHORS = CHANGES = '' |
|
14 |
||
15 |
PACKAGE = 'distcontrib' |
|
16 |
VERSION = '0.2.0' |
|
17 |
DESCRIPTION = 'Contributions to Distutils' |
|
18 |
LICENSE = 'OSI Approved :: BSD License' |
|
19 |
URL = 'http://' + PACKAGE + '.readthedocs.org/' |
|
20 |
AUTHOR = 'Richard Gomes http://rgomes-info.blogspot.com' |
|
21 |
AUTHOR_EMAIL = 'rgomes.info@gmail.com' |
|
22 |
KEYWORDS = [ 'distribute','setuptools','pip','cython' ] |
|
23 |
CLASSIFIERS = [ 'License :: ' + LICENSE, |
|
24 |
'Operating System :: OS Independent', |
|
25 |
'Programming Language :: Python', |
|
26 |
'Programming Language :: Cython', |
|
27 |
'Development Status :: 3 - Alpha', |
|
28 |
'Intended Audience :: Developers', |
|
29 |
'Environment :: Console' ] |
|
30 |
||
31 |
LONG_DESCRIPTION = README + AUTHOR + CHANGES |
|
23
by Richard Gomes
more code review and clean up |
32 |
PACKAGES = find_packages() # exclude=["*.tests", "*.tests.*", "tests.*", "tests"]) |
19
by Richard Gomes
full code review |
33 |
|
34 |
setup_requires = [ 'setuptools>=2.2', |
|
35 |
'pip>=1.5', |
|
36 |
'Cython', |
|
37 |
]
|
|
38 |
||
20
by Richard Gomes
review setup.py |
39 |
install_requires = [ |
23
by Richard Gomes
more code review and clean up |
40 |
'Tempita<0.53', |
20
by Richard Gomes
review setup.py |
41 |
'sqlalchemy-migrate', |
42 |
]
|
|
1
by Richard Gomes
initial commit |
43 |
|
23
by Richard Gomes
more code review and clean up |
44 |
tests_require = [ |
45 |
'pytest', |
|
46 |
'pytest-cov', |
|
47 |
'pytest-pep8', |
|
48 |
'pytest-xdist', |
|
49 |
#'mock',
|
|
50 |
#'pyquery',
|
|
51 |
]
|
|
52 |
||
53 |
docs_require = [ |
|
54 |
'Sphinx', |
|
55 |
'docutils', |
|
56 |
'repoze.sphinx.autointerface', |
|
57 |
]
|
|
58 |
||
59 |
extras_require={ |
|
60 |
#'development': development_requires,
|
|
61 |
'testing': tests_require, |
|
62 |
'docs': docs_require, |
|
63 |
}
|
|
64 |
||
1
by Richard Gomes
initial commit |
65 |
setup( |
66 |
name=PACKAGE, |
|
67 |
version=VERSION, |
|
68 |
description=DESCRIPTION, |
|
69 |
url=URL, |
|
70 |
author=AUTHOR, |
|
71 |
author_email=AUTHOR_EMAIL, |
|
72 |
long_description=LONG_DESCRIPTION, |
|
73 |
license=LICENSE, |
|
16
by Richard Gomes
adding keywords to setup.py |
74 |
keywords=KEYWORDS, |
1
by Richard Gomes
initial commit |
75 |
classifiers=CLASSIFIERS, |
76 |
packages=PACKAGES, |
|
13
by Richard Gomes
code review |
77 |
zip_safe=False, |
19
by Richard Gomes
full code review |
78 |
setup_requires=setup_requires, |
79 |
install_requires=install_requires, |
|
23
by Richard Gomes
more code review and clean up |
80 |
tests_require=tests_require, |
81 |
extras_require=extras_require, |
|
19
by Richard Gomes
full code review |
82 |
entry_points = { |
23
by Richard Gomes
more code review and clean up |
83 |
#-- 'console_scripts': [ ],
|
84 |
#-- 'gui_scripts': [ ],
|
|
85 |
'distutils.commands': [ |
|
19
by Richard Gomes
full code review |
86 |
"zap = distcontrib.command:zap", |
87 |
"doctest = distcontrib.command:doctest", |
|
88 |
"psql = distcontrib.command:psql", |
|
89 |
"migrate = distcontrib.command:migrate", |
|
23
by Richard Gomes
more code review and clean up |
90 |
],
|
91 |
# 'pytest11': [
|
|
92 |
# 'distcontrib = distcontrib.tests',
|
|
93 |
# ],
|
|
19
by Richard Gomes
full code review |
94 |
}
|
1
by Richard Gomes
initial commit |
95 |
)
|