annotate setup.py @ 177:528778a7421f

Less confusing debug vs. production difference.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 29 Jan 2014 08:18:46 -0800
parents f1003615a261
children 964fd28e9b39
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 import os
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2 import os.path
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 from setuptools import setup, find_packages
167
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
4 from wikked import VERSION
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
6
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
7 def read(fname):
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
8 with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
9 return fp.read()
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
10
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
11
167
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
12 #TODO: get the build version from the source control revision.
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
13 BUILD_VERSION = 4
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
14 FULL_VERSION = '%s.%s' % (VERSION, BUILD_VERSION)
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
15
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
16
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
17 setup(
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18 name='Wikked',
167
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
19 version=FULL_VERSION,
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
20 description=("A wiki engine entirely managed with text files "
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
21 "stored in a revision control system."),
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
22 author='Ludovic Chabant',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
23 author_email='ludovic@chabant.com',
167
adc70e861804 Some fixes to the Pypi packaging.
Ludovic Chabant <ludovic@chabant.com>
parents: 162
diff changeset
24 url="https://github.com/ludovicchabant/Wikked",
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
25 license="Apache 2.0",
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
26 keywords="wiki mercurial hg git",
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
27 packages=find_packages(exclude=["tests"]),
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
28 install_requires=[
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
29 'Flask>=0.10',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
30 'Flask-Login>=0.1.3',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
31 'Flask-SQLAlchemy>=1.0',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
32 'Flask-Script>=0.5.1',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
33 'Jinja2>=2.6',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
34 'Markdown>=2.2.1',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
35 'PyYAML>=3.10',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
36 'Pygments>=1.5',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
37 'SQLAlchemy>=0.8.3',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
38 'Werkzeug>=0.8.3',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
39 'Whoosh>=2.4.1',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
40 'argparse>=1.2.1',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
41 'pybars>=0.0.4',
162
81e39ae8aef0 Fixed missing files from the Pypi package and the production build.
Ludovic Chabant <ludovic@chabant.com>
parents: 161
diff changeset
42 'python-hglib',
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
43 'twill>=0.9',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
44 'wsgiref>=0.1.2'
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
45 ],
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
46 scripts=['wk.py'],
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
47 include_package_data=True,
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
48 package_data={
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
49 'wikked': [
162
81e39ae8aef0 Fixed missing files from the Pypi package and the production build.
Ludovic Chabant <ludovic@chabant.com>
parents: 161
diff changeset
50 'resources/*',
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
51 'templates/*.html',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
52 'static/css/wikked.min.css',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
53 'static/img/*.png',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
54 'static/js/require.js',
162
81e39ae8aef0 Fixed missing files from the Pypi package and the production build.
Ludovic Chabant <ludovic@chabant.com>
parents: 161
diff changeset
55 'static/js/wikked.min.js',
81e39ae8aef0 Fixed missing files from the Pypi package and the production build.
Ludovic Chabant <ludovic@chabant.com>
parents: 161
diff changeset
56 'static/js/pagedown/*.js'
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
57 ]
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
58 },
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
59 zip_safe=False,
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
60 classifiers=[
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
61 'Development Status :: 3 - Alpha',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
62 'License :: OSI Approved :: Apache Software License',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
63 'Environment :: Console',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
64 'Operating System :: MacOS :: MacOS X',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
65 'Operating System :: Unix',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
66 'Operating System :: POSIX',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
67 'Operating System :: Microsoft :: Windows',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
68 'Programming Language :: Python',
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
69 ],
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
70 entry_points={
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
71 'console_scripts': [
169
f1003615a261 Added entry-point info for console scripts.
Ludovic Chabant <ludovic@chabant.com>
parents: 167
diff changeset
72 'wk = wikked.witch:main'
161
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
73 ]
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
74 },
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
75 )
f307d4cdc3fb Setup Wikked Pypi package:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
76