annotate setup.py @ 1215:8a153dba7033

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