annotate setup.py @ 1790:f551007ce085 beta

bumped up beaker version code garden
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 19 Dec 2011 00:12:50 +0200
parents e42b8e9a5f76
children 2afa6b8c2ade
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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
3 from rhodecode import __platform__
1205
f4807acf643d added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents: 1204
diff changeset
4 from rhodecode import __license__
1223
f7b24987d5fb fixed setup.py file to use same platform as defined in main rhodecode PLATFORM_OTHERS,
Marcin Kuzminski <marcin@python-works.com>
parents: 1208
diff changeset
5 from rhodecode import PLATFORM_OTHERS
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
6
564
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
7 py_version = sys.version_info
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
8
1163
a1fba57f46fa added check for python <2.5 in setup file
Marcin Kuzminski <marcin@python-works.com>
parents: 1143
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: 1143
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: 1143
diff changeset
11
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
12 requirements = [
818
2ef22ee3b45a lib freeze
Marcin Kuzminski <marcin@python-works.com>
parents: 775
diff changeset
13 "Pylons==1.0.0",
1790
f551007ce085 bumped up beaker version
Marcin Kuzminski <marcin@python-works.com>
parents: 1636
diff changeset
14 "Beaker==1.6.2",
931
0ed8016d2886 forced webhelpers version since it was making troubes during installation
Marcin Kuzminski <marcin@python-works.com>
parents: 876
diff changeset
15 "WebHelpers>=1.2",
1511
a5981def1961 fixes #231 Added formencode version freeze to setup.py <1.2.4 was buggy
Marcin Kuzminski <marcin@python-works.com>
parents: 1479
diff changeset
16 "formencode==1.2.4",
1563
e774fc919e76 lib freeze
Marcin Kuzminski <marcin@python-works.com>
parents: 1555
diff changeset
17 "SQLAlchemy==0.7.3",
e774fc919e76 lib freeze
Marcin Kuzminski <marcin@python-works.com>
parents: 1555
diff changeset
18 "Mako==0.5.0",
957
21a781cdd1fd updated some requirements to newest versions
Marcin Kuzminski <marcin@python-works.com>
parents: 931
diff changeset
19 "pygments>=1.4",
1635
7e0ec636b061 Mercurial 2.0 compatibility
Marcin Kuzminski <marcin@python-works.com>
parents: 1605
diff changeset
20 "mercurial>=2.0,<2.1",
1449
0fd5794787a9 whoosh lib freeze
Marcin Kuzminski <marcin@python-works.com>
parents: 1413
diff changeset
21 "whoosh<1.8",
1413
c8be7408f654 updated required libs
Marcin Kuzminski <marcin@python-works.com>
parents: 1410
diff changeset
22 "celery>=2.2.5,<2.3",
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
23 "babel",
1188
01f37a734fdf update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents: 1177
diff changeset
24 "python-dateutil>=1.5.0,<2.0.0",
1551
cb8321dfc771 fixed requirements
Marcin Kuzminski <marcin@python-works.com>
parents: 1525
diff changeset
25 "dulwich>=0.8.0,<0.9.0",
1565
62c4027b0321 updated contributors and setup accordingly to stable branch
Marcin Kuzminski <marcin@python-works.com>
parents: 1563
diff changeset
26 "vcs>=0.2.3.dev",
1605
df59c0503636 implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents: 1569
diff changeset
27 "webob==1.0.8",
df59c0503636 implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents: 1569
diff changeset
28 "markdown==2.0.3",
df59c0503636 implements #215 Repository view uses a README (text/markdown + rst)
Marcin Kuzminski <marcin@python-works.com>
parents: 1569
diff changeset
29 "docutils==0.8.1",
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
30 ]
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
31
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
32 dependency_links = [
1569
ff41d5f00e28 updated sources for vcs
Marcin Kuzminski <marcin@python-works.com>
parents: 1566
diff changeset
33 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev",
ff41d5f00e28 updated sources for vcs
Marcin Kuzminski <marcin@python-works.com>
parents: 1566
diff changeset
34 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev",
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
35 ]
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
36
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
37 classifiers = ['Development Status :: 4 - Beta',
852
b76da6f22e0f fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents: 833
diff changeset
38 'Environment :: Web Environment',
b76da6f22e0f fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents: 833
diff changeset
39 'Framework :: Pylons',
b76da6f22e0f fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents: 833
diff changeset
40 'Intended Audience :: Developers',
1565
62c4027b0321 updated contributors and setup accordingly to stable branch
Marcin Kuzminski <marcin@python-works.com>
parents: 1563
diff changeset
41 'License :: OSI Approved :: GNU General Public License (GPL)',
852
b76da6f22e0f fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents: 833
diff changeset
42 'Operating System :: OS Independent',
1188
01f37a734fdf update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents: 1177
diff changeset
43 'Programming Language :: Python',
01f37a734fdf update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents: 1177
diff changeset
44 'Programming Language :: Python :: 2.5',
01f37a734fdf update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents: 1177
diff changeset
45 'Programming Language :: Python :: 2.6',
01f37a734fdf update setup.py and frozen dateutils
Marcin Kuzminski <marcin@python-works.com>
parents: 1177
diff changeset
46 'Programming Language :: Python :: 2.7', ]
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
47
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
48 if py_version < (2, 6):
564
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
49 requirements.append("simplejson")
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
50 requirements.append("pysqlite")
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
51
1223
f7b24987d5fb fixed setup.py file to use same platform as defined in main rhodecode PLATFORM_OTHERS,
Marcin Kuzminski <marcin@python-works.com>
parents: 1208
diff changeset
52 if __platform__ in PLATFORM_OTHERS:
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
53 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: 1103
diff changeset
54
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
55
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
56 #additional files from project that goes somewhere in the filesystem
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
57 #relative to sys.prefix
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
58 data_files = []
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
59
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
60 #additional files that goes into package itself
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
61 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
62
717
9985eca2e4d0 updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents: 691
diff changeset
63 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
64 '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
65 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git',
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
66 'repository management', 'hgweb replacement'
1204
faf31099a70a pep8ify root py files
Marcin Kuzminski <marcin@python-works.com>
parents: 1203
diff changeset
67 'hgwebdir', 'gitweb replacement', 'serving hgweb', ])
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
68 #long description
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
69 try:
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
70 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
71 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
72 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
73 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
74
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
75 except IOError, err:
589
36d54d4479db Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents: 572
diff changeset
76 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
77 "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
78 % (readme_file, changelog_file))
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
79 long_description = description
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
80
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
81
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
82 try:
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
83 from setuptools import setup, find_packages
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
84 except ImportError:
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
85 from ez_setup import use_setuptools
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
86 use_setuptools()
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
87 from setuptools import setup, find_packages
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
88 #packages
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
89 packages = find_packages(exclude=['ez_setup'])
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
90
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
91 setup(
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
92 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
93 version=get_version(),
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
94 description=description,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
95 long_description=long_description,
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
96 keywords=keywords,
1205
f4807acf643d added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents: 1204
diff changeset
97 license=__license__,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
98 author='Marcin Kuzminski',
244
782f0692b29c fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents: 185
diff changeset
99 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
100 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
101 url='http://rhodecode.org',
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
102 install_requires=requirements,
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
103 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
104 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
105 data_files=data_files,
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
106 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
107 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
108 test_suite='nose.collector',
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
109 package_data=package_data,
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 538
diff changeset
110 message_extractors={'rhodecode': [
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
111 ('**.py', 'python', None),
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
112 ('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
113 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
114 ('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
115 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
116 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
117 entry_points="""
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
118 [paste.app_factory]
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 538
diff changeset
119 main = rhodecode.config.middleware:make_app
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
120
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
121 [paste.app_install]
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
122 main = pylons.util:PylonsInstaller
683
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
123
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
124 [paste.global_paster_command]
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
125 make-index = rhodecode.lib.indexers:MakeIndex
833
9753e0907827 added dbmigrate package, added model changes
Marcin Kuzminski <marcin@python-works.com>
parents: 818
diff changeset
126 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
127 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
128 """,
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
129 )