Mercurial > kallithea
annotate setup.py @ 2119:4d076981a7b1 beta
docs about debugging
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 11 Mar 2012 04:28:23 +0200 |
parents | 926f55b038bc |
children | dc2584ba5fbc e285aa097a81 |
rev | line source |
---|---|
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
1 import sys |
1078
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1069
diff
changeset
|
2 from rhodecode import get_version |
1205
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1204
diff
changeset
|
3 from rhodecode import __license__ |
1966 | 4 from rhodecode import __py_version__ |
1822
363f5dce1a95
added requires.txt file
Marcin Kuzminski <marcin@python-works.com>
parents:
1792
diff
changeset
|
5 from rhodecode import requirements |
1078
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1069
diff
changeset
|
6 |
1966 | 7 if __py_version__ < (2, 5): |
1163
a1fba57f46fa
added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
1143
diff
changeset
|
8 raise Exception('RhodeCode requires python 2.5 or later') |
a1fba57f46fa
added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
1143
diff
changeset
|
9 |
1456
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1449
diff
changeset
|
10 dependency_links = [ |
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1449
diff
changeset
|
11 ] |
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1449
diff
changeset
|
12 |
1966 | 13 classifiers = [ |
14 'Development Status :: 4 - Beta', | |
15 'Environment :: Web Environment', | |
16 'Framework :: Pylons', | |
17 'Intended Audience :: Developers', | |
18 'License :: OSI Approved :: GNU General Public License (GPL)', | |
19 'Operating System :: OS Independent', | |
20 'Programming Language :: Python', | |
21 'Programming Language :: Python :: 2.5', | |
22 'Programming Language :: Python :: 2.6', | |
23 'Programming Language :: Python :: 2.7', | |
24 ] | |
572
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
565
diff
changeset
|
25 |
1118
b0e2c949c34b
Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier"
Marcin Kuzminski <marcin@python-works.com>
parents:
1103
diff
changeset
|
26 |
1792 | 27 # additional files from project that goes somewhere in the filesystem |
28 # relative to sys.prefix | |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
29 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
30 |
1792 | 31 # additional files that goes into package itself |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
32 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
33 |
717
9985eca2e4d0
updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents:
691
diff
changeset
|
34 description = ('Mercurial repository browser/management with ' |
681
9c8a817462fe
small fixes to docs, and setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
676
diff
changeset
|
35 'build in push/pull server and full text search') |
1204
faf31099a70a
pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents:
1203
diff
changeset
|
36 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
1792 | 37 'code review', 'repo groups', 'ldap' |
1078
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1069
diff
changeset
|
38 'repository management', 'hgweb replacement' |
1204
faf31099a70a
pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents:
1203
diff
changeset
|
39 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
1792 | 40 # long description |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
41 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
42 readme_file = 'README.rst' |
682
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
681
diff
changeset
|
43 changelog_file = 'docs/changelog.rst' |
868
cc635016933f
fixed error in setup.py RST generation, speling fix for README
Marcin Kuzminski <marcin@python-works.com>
parents:
852
diff
changeset
|
44 long_description = open(readme_file).read() + '\n\n' + \ |
682
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
681
diff
changeset
|
45 open(changelog_file).read() |
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
681
diff
changeset
|
46 |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
47 except IOError, err: |
589
36d54d4479db
Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents:
572
diff
changeset
|
48 sys.stderr.write("[WARNING] Cannot find file specified as " |
682
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
681
diff
changeset
|
49 "long_description (%s)\n or changelog (%s) skipping that file" \ |
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
681
diff
changeset
|
50 % (readme_file, changelog_file)) |
565
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
564
diff
changeset
|
51 long_description = description |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
52 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
53 |
0 | 54 try: |
55 from setuptools import setup, find_packages | |
56 except ImportError: | |
57 from ez_setup import use_setuptools | |
58 use_setuptools() | |
59 from setuptools import setup, find_packages | |
1792 | 60 # packages |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
61 packages = find_packages(exclude=['ez_setup']) |
0 | 62 |
63 setup( | |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
64 name='RhodeCode', |
185
3380ca40cdba
added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
Marcin Kuzminski <marcin@python-works.com>
parents:
170
diff
changeset
|
65 version=get_version(), |
565
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
564
diff
changeset
|
66 description=description, |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
67 long_description=long_description, |
1078
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1069
diff
changeset
|
68 keywords=keywords, |
1205
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1204
diff
changeset
|
69 license=__license__, |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
70 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
71 author_email='marcin@python-works.com', |
1456
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1449
diff
changeset
|
72 dependency_links=dependency_links, |
1143
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1118
diff
changeset
|
73 url='http://rhodecode.org', |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
74 install_requires=requirements, |
572
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
565
diff
changeset
|
75 classifiers=classifiers, |
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
76 setup_requires=["PasteScript>=1.6.3"], |
552
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
549
diff
changeset
|
77 data_files=data_files, |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
78 packages=packages, |
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
79 include_package_data=True, |
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
80 test_suite='nose.collector', |
553
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
552
diff
changeset
|
81 package_data=package_data, |
547
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
538
diff
changeset
|
82 message_extractors={'rhodecode': [ |
0 | 83 ('**.py', 'python', None), |
84 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
1143
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1118
diff
changeset
|
85 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
0 | 86 ('public/**', 'ignore', None)]}, |
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
87 zip_safe=False, |
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
88 paster_plugins=['PasteScript', 'Pylons'], |
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
0
diff
changeset
|
89 entry_points=""" |
0 | 90 [paste.app_factory] |
547
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
538
diff
changeset
|
91 main = rhodecode.config.middleware:make_app |
0 | 92 |
93 [paste.app_install] | |
94 main = pylons.util:PylonsInstaller | |
683
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
682
diff
changeset
|
95 |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
682
diff
changeset
|
96 [paste.global_paster_command] |
2105
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
2007
diff
changeset
|
97 make-index=rhodecode.lib.indexers:MakeIndex |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
2007
diff
changeset
|
98 make-rcext=rhodecode.config.rcextensions.make_rcextensions:MakeRcExt |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
2007
diff
changeset
|
99 upgrade-db=rhodecode.lib.dbmigrate:UpgradeDb |
775
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
773
diff
changeset
|
100 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
0 | 101 """, |
102 ) |