Mercurial > public > src > rhodecode
annotate setup.py @ 2052:fc6063e6630b beta
code cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 28 Jan 2012 18:15:45 +0200 |
parents | b1ad9efeec14 |
children | 324ac367a4da |
rev | line source |
---|---|
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
1 import sys |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
2 from rhodecode import get_version |
1282
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1281
diff
changeset
|
3 from rhodecode import __license__ |
2052 | 4 from rhodecode import __py_version__ |
1907
363f5dce1a95
added requires.txt file
Marcin Kuzminski <marcin@python-works.com>
parents:
1877
diff
changeset
|
5 from rhodecode import requirements |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
6 |
2052 | 7 if __py_version__ < (2, 5): |
1237
a1fba57f46fa
added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
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:
1214
diff
changeset
|
9 |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
10 |
1536
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1529
diff
changeset
|
11 dependency_links = [ |
2052 | 12 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev", |
13 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev", | |
1536
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1529
diff
changeset
|
14 ] |
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1529
diff
changeset
|
15 |
2052 | 16 classifiers = [ |
17 'Development Status :: 4 - Beta', | |
18 'Environment :: Web Environment', | |
19 'Framework :: Pylons', | |
20 'Intended Audience :: Developers', | |
21 'License :: OSI Approved :: GNU General Public License (GPL)', | |
22 'Operating System :: OS Independent', | |
23 'Programming Language :: Python', | |
24 'Programming Language :: Python :: 2.5', | |
25 'Programming Language :: Python :: 2.6', | |
26 'Programming Language :: Python :: 2.7', | |
27 ] | |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
28 |
1187
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:
1172
diff
changeset
|
29 |
1877 | 30 # additional files from project that goes somewhere in the filesystem |
31 # relative to sys.prefix | |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
32 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
33 |
1877 | 34 # additional files that goes into package itself |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
35 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
36 |
774
9985eca2e4d0
updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents:
748
diff
changeset
|
37 description = ('Mercurial repository browser/management with ' |
738
9c8a817462fe
small fixes to docs, and setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
732
diff
changeset
|
38 'build in push/pull server and full text search') |
1281
faf31099a70a
pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents:
1280
diff
changeset
|
39 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
1877 | 40 'code review', 'repo groups', 'ldap' |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
41 'repository management', 'hgweb replacement' |
1281
faf31099a70a
pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents:
1280
diff
changeset
|
42 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
1877 | 43 # long description |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
44 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
45 readme_file = 'README.rst' |
739
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
738
diff
changeset
|
46 changelog_file = 'docs/changelog.rst' |
929
cc635016933f
fixed error in setup.py RST generation, speling fix for README
Marcin Kuzminski <marcin@python-works.com>
parents:
909
diff
changeset
|
47 long_description = open(readme_file).read() + '\n\n' + \ |
739
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
738
diff
changeset
|
48 open(changelog_file).read() |
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
738
diff
changeset
|
49 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
50 except IOError, err: |
640
36d54d4479db
Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents:
622
diff
changeset
|
51 sys.stderr.write("[WARNING] Cannot find file specified as " |
739
23c2a0e6df0b
changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents:
738
diff
changeset
|
52 "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:
738
diff
changeset
|
53 % (readme_file, changelog_file)) |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
54 long_description = description |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
55 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
56 |
0 | 57 try: |
58 from setuptools import setup, find_packages | |
59 except ImportError: | |
60 from ez_setup import use_setuptools | |
61 use_setuptools() | |
62 from setuptools import setup, find_packages | |
1877 | 63 # packages |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
64 packages = find_packages(exclude=['ez_setup']) |
0 | 65 |
66 setup( | |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
67 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
|
68 version=get_version(), |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
69 description=description, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
70 long_description=long_description, |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
71 keywords=keywords, |
1282
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1281
diff
changeset
|
72 license=__license__, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
73 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
74 author_email='marcin@python-works.com', |
1536
880a39e5d8df
fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents:
1529
diff
changeset
|
75 dependency_links=dependency_links, |
1214
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1187
diff
changeset
|
76 url='http://rhodecode.org', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
77 install_requires=requirements, |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
78 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
|
79 setup_requires=["PasteScript>=1.6.3"], |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
80 data_files=data_files, |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
81 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
|
82 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
|
83 test_suite='nose.collector', |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
84 package_data=package_data, |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
85 message_extractors={'rhodecode': [ |
0 | 86 ('**.py', 'python', None), |
87 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
1214
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1187
diff
changeset
|
88 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
0 | 89 ('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
|
90 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
|
91 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
|
92 entry_points=""" |
0 | 93 [paste.app_factory] |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
94 main = rhodecode.config.middleware:make_app |
0 | 95 |
96 [paste.app_install] | |
97 main = pylons.util:PylonsInstaller | |
740
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
98 |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
99 [paste.global_paster_command] |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
100 make-index = rhodecode.lib.indexers:MakeIndex |
890
9753e0907827
added dbmigrate package, added model changes
Marcin Kuzminski <marcin@python-works.com>
parents:
875
diff
changeset
|
101 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb |
832
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
102 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
0 | 103 """, |
104 ) |