Mercurial > public > src > rhodecode
annotate setup.py @ 1646:e774fc919e76 beta
lib freeze
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 17 Oct 2011 00:22:45 +0200 |
parents | da2e3505b880 |
children | 752b0a7b7679 62c4027b0321 |
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 |
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
|
3 from rhodecode import __platform__ |
1282
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1281
diff
changeset
|
4 from rhodecode import __license__ |
1300
f7b24987d5fb
fixed setup.py file to use same platform as defined in main rhodecode PLATFORM_OTHERS,
Marcin Kuzminski <marcin@python-works.com>
parents:
1285
diff
changeset
|
5 from rhodecode import PLATFORM_OTHERS |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
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 |
1237
a1fba57f46fa
added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
9 if py_version < (2, 5): |
a1fba57f46fa
added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
10 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
|
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", |
1634
cb8321dfc771
fixed requirements
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
14 "Beaker==1.5.4", |
993
0ed8016d2886
forced webhelpers version since it was making troubes during installation
Marcin Kuzminski <marcin@python-works.com>
parents:
937
diff
changeset
|
15 "WebHelpers>=1.2", |
1591
a5981def1961
fixes #231 Added formencode version freeze to setup.py <1.2.4 was buggy
Marcin Kuzminski <marcin@python-works.com>
parents:
1559
diff
changeset
|
16 "formencode==1.2.4", |
1646 | 17 "SQLAlchemy==0.7.3", |
18 "Mako==0.5.0", | |
1020
21a781cdd1fd
updated some requirements to newest versions
Marcin Kuzminski <marcin@python-works.com>
parents:
993
diff
changeset
|
19 "pygments>=1.4", |
1493
c8be7408f654
updated required libs
Marcin Kuzminski <marcin@python-works.com>
parents:
1490
diff
changeset
|
20 "mercurial>=1.9,<2.0", |
1529
0fd5794787a9
whoosh lib freeze
Marcin Kuzminski <marcin@python-works.com>
parents:
1493
diff
changeset
|
21 "whoosh<1.8", |
1493
c8be7408f654
updated required libs
Marcin Kuzminski <marcin@python-works.com>
parents:
1490
diff
changeset
|
22 "celery>=2.2.5,<2.3", |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
23 "babel", |
1265
01f37a734fdf
update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents:
1254
diff
changeset
|
24 "python-dateutil>=1.5.0,<2.0.0", |
1634
cb8321dfc771
fixed requirements
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
25 "dulwich>=0.8.0,<0.9.0", |
cb8321dfc771
fixed requirements
Marcin Kuzminski <marcin@python-works.com>
parents:
1605
diff
changeset
|
26 "vcs>=0.2.2.dev", |
1638
da2e3505b880
webob library freeze
Marcin Kuzminski <marcin@python-works.com>
parents:
1634
diff
changeset
|
27 "webob==1.1.1" |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
28 ] |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
29 |
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
|
30 dependency_links = [ |
1605
4cd5ea766480
bumbped vcs dep for beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1591
diff
changeset
|
31 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.2.dev", |
4cd5ea766480
bumbped vcs dep for beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1591
diff
changeset
|
32 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.2.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
|
33 ] |
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
|
34 |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
35 classifiers = ['Development Status :: 4 - Beta', |
909
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
36 '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
|
37 '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
|
38 '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
|
39 'Operating System :: OS Independent', |
1265
01f37a734fdf
update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents:
1254
diff
changeset
|
40 'Programming Language :: Python', |
01f37a734fdf
update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents:
1254
diff
changeset
|
41 'Programming Language :: Python :: 2.5', |
01f37a734fdf
update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents:
1254
diff
changeset
|
42 'Programming Language :: Python :: 2.6', |
01f37a734fdf
update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents:
1254
diff
changeset
|
43 'Programming Language :: Python :: 2.7', ] |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
44 |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
45 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
|
46 requirements.append("simplejson") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
47 requirements.append("pysqlite") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
48 |
1300
f7b24987d5fb
fixed setup.py file to use same platform as defined in main rhodecode PLATFORM_OTHERS,
Marcin Kuzminski <marcin@python-works.com>
parents:
1285
diff
changeset
|
49 if __platform__ in PLATFORM_OTHERS: |
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
|
50 requirements.append("py-bcrypt") |
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
|
51 |
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
|
52 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
53 #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
|
54 #relative to sys.prefix |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
55 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
56 |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
57 #additional files that goes into package itself |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
58 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
|
59 |
774
9985eca2e4d0
updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents:
748
diff
changeset
|
60 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
|
61 '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
|
62 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
63 'repository management', 'hgweb replacement' |
1281
faf31099a70a
pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents:
1280
diff
changeset
|
64 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
65 #long description |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
66 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
67 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
|
68 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
|
69 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
|
70 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
|
71 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
72 except IOError, err: |
640
36d54d4479db
Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents:
622
diff
changeset
|
73 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
|
74 "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
|
75 % (readme_file, changelog_file)) |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
76 long_description = description |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
77 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
78 |
0 | 79 try: |
80 from setuptools import setup, find_packages | |
81 except ImportError: | |
82 from ez_setup import use_setuptools | |
83 use_setuptools() | |
84 from setuptools import setup, find_packages | |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
85 #packages |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
86 packages = find_packages(exclude=['ez_setup']) |
0 | 87 |
88 setup( | |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
89 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
|
90 version=get_version(), |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
91 description=description, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
92 long_description=long_description, |
1147
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1133
diff
changeset
|
93 keywords=keywords, |
1282
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1281
diff
changeset
|
94 license=__license__, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
95 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
96 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
|
97 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
|
98 url='http://rhodecode.org', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
99 install_requires=requirements, |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
100 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
|
101 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
|
102 data_files=data_files, |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
103 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
|
104 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
|
105 test_suite='nose.collector', |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
106 package_data=package_data, |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
107 message_extractors={'rhodecode': [ |
0 | 108 ('**.py', 'python', None), |
109 ('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
|
110 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
0 | 111 ('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
|
112 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
|
113 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
|
114 entry_points=""" |
0 | 115 [paste.app_factory] |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
116 main = rhodecode.config.middleware:make_app |
0 | 117 |
118 [paste.app_install] | |
119 main = pylons.util:PylonsInstaller | |
740
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
120 |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
121 [paste.global_paster_command] |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
122 make-index = rhodecode.lib.indexers:MakeIndex |
890
9753e0907827
added dbmigrate package, added model changes
Marcin Kuzminski <marcin@python-works.com>
parents:
875
diff
changeset
|
123 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
|
124 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
0 | 125 """, |
126 ) |