Mercurial > public > src > rhodecode
annotate setup.py @ 1305:2182a2005278
merged some docs, and fixed setup.py platform check
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 08 Apr 2011 00:47:20 +0200 |
parents | 8a153dba7033 |
children | 5f6361ea8f68 bf263968da47 |
rev | line source |
---|---|
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
1 import sys |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
2 from rhodecode import get_version |
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
3 from rhodecode import __platform__ |
1292 | 4 from rhodecode import __license__ |
1305
2182a2005278
merged some docs, and fixed setup.py platform check
Marcin Kuzminski <marcin@python-works.com>
parents:
1292
diff
changeset
|
5 from rhodecode import PLATFORM_OTHERS |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
6 |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
7 py_version = sys.version_info |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
8 |
1239
c5af1d3c861f
changes for rhodecode release 1.1.6
Marcin Kuzminski <marcin@python-works.com>
parents:
1211
diff
changeset
|
9 if py_version < (2, 5): |
c5af1d3c861f
changes for rhodecode release 1.1.6
Marcin Kuzminski <marcin@python-works.com>
parents:
1211
diff
changeset
|
10 raise Exception('RhodeCode requires python 2.5 or later') |
c5af1d3c861f
changes for rhodecode release 1.1.6
Marcin Kuzminski <marcin@python-works.com>
parents:
1211
diff
changeset
|
11 |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
12 requirements = [ |
875 | 13 "Pylons==1.0.0", |
1002 | 14 "WebHelpers==1.2", |
1120
af6ca51fb80f
rhodecode release 1.1.3 changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1002
diff
changeset
|
15 "SQLAlchemy==0.6.6", |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
16 "Mako==0.4.0", |
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
17 "vcs==0.1.11", |
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
18 "pygments==1.4.0", |
1120
af6ca51fb80f
rhodecode release 1.1.3 changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1002
diff
changeset
|
19 "mercurial==1.7.5", |
875 | 20 "whoosh==1.3.4", |
1292 | 21 "celery==2.2.5", |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
22 "babel", |
1292 | 23 "python-dateutil>=1.5.0,<2.0.0", |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
24 ] |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
25 |
914 | 26 classifiers = ['Development Status :: 5 - Production/Stable', |
909
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
27 'Environment :: Web Environment', |
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
28 'Framework :: Pylons', |
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
29 'Intended Audience :: Developers', |
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
30 'Operating System :: OS Independent', |
1292 | 31 'Programming Language :: Python', |
32 'Programming Language :: Python :: 2.5', | |
33 'Programming Language :: Python :: 2.6', | |
34 'Programming Language :: Python :: 2.7', ] | |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
35 |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
36 if py_version < (2, 6): |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
37 requirements.append("simplejson") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
38 requirements.append("pysqlite") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
39 |
1305
2182a2005278
merged some docs, and fixed setup.py platform check
Marcin Kuzminski <marcin@python-works.com>
parents:
1292
diff
changeset
|
40 if __platform__ in PLATFORM_OTHERS: |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
41 requirements.append("py-bcrypt") |
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
42 |
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
43 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
44 #additional files from project that goes somewhere in the filesystem |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
45 #relative to sys.prefix |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
46 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
47 |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
48 #additional files that goes into package itself |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
49 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
|
50 |
774
9985eca2e4d0
updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents:
748
diff
changeset
|
51 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
|
52 'build in push/pull server and full text search') |
1292 | 53 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
54 'repository management', 'hgweb replacement' |
1292 | 55 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
56 #long description |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
57 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
58 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
|
59 changelog_file = 'docs/changelog.rst' |
928
d9c8dddb96af
fixed error in setup.py RST generation
Marcin Kuzminski <marcin@python-works.com>
parents:
914
diff
changeset
|
60 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
|
61 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
|
62 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
63 except IOError, err: |
640
36d54d4479db
Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents:
622
diff
changeset
|
64 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
|
65 "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
|
66 % (readme_file, changelog_file)) |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
67 long_description = description |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
68 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
69 |
0 | 70 try: |
71 from setuptools import setup, find_packages | |
72 except ImportError: | |
73 from ez_setup import use_setuptools | |
74 use_setuptools() | |
75 from setuptools import setup, find_packages | |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
76 #packages |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
77 packages = find_packages(exclude=['ez_setup']) |
0 | 78 |
79 setup( | |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
80 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
|
81 version=get_version(), |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
82 description=description, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
83 long_description=long_description, |
1205
93b980ebee55
changes for release 1.1.5
Marcin Kuzminski <marcin@python-works.com>
parents:
1120
diff
changeset
|
84 keywords=keywords, |
1292 | 85 license=__license__, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
86 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
87 author_email='marcin@python-works.com', |
1211
42e53ebb6288
fixed manifest, and changed info site
Marcin Kuzminski <marcin@python-works.com>
parents:
1209
diff
changeset
|
88 url='http://rhodecode.org', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
89 install_requires=requirements, |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
90 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
|
91 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
|
92 data_files=data_files, |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
93 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
|
94 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
|
95 test_suite='nose.collector', |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
96 package_data=package_data, |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
97 message_extractors={'rhodecode': [ |
0 | 98 ('**.py', 'python', None), |
99 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
1209
49032f99b4ab
Release 1.1.5 fixes:
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
100 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
0 | 101 ('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
|
102 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
|
103 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
|
104 entry_points=""" |
0 | 105 [paste.app_factory] |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
106 main = rhodecode.config.middleware:make_app |
0 | 107 |
108 [paste.app_install] | |
109 main = pylons.util:PylonsInstaller | |
740
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
110 |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
111 [paste.global_paster_command] |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
112 make-index = rhodecode.lib.indexers:MakeIndex |
890
9753e0907827
added dbmigrate package, added model changes
Marcin Kuzminski <marcin@python-works.com>
parents:
875
diff
changeset
|
113 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
|
114 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
0 | 115 """, |
116 ) |