Mercurial > public > src > rhodecode
annotate setup.py @ 1133:b4254b54d277 beta
deps update
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 19 Feb 2011 11:51:52 +0100 |
parents | 3a7f5b1a19dd |
children | 2d7a94f3eaae |
rev | line source |
---|---|
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
1 import sys |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
2 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
|
3 |
832
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
4 from rhodecode import get_version |
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
5 |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
6 requirements = [ |
875 | 7 "Pylons==1.0.0", |
993
0ed8016d2886
forced webhelpers version since it was making troubes during installation
Marcin Kuzminski <marcin@python-works.com>
parents:
937
diff
changeset
|
8 "WebHelpers>=1.2", |
1020
21a781cdd1fd
updated some requirements to newest versions
Marcin Kuzminski <marcin@python-works.com>
parents:
993
diff
changeset
|
9 "SQLAlchemy>=0.6.6", |
875 | 10 "Mako==0.3.6", |
937
92bc5ddbda06
fixed typo in setup.py
Marcin Kuzminski <marcin@python-works.com>
parents:
933
diff
changeset
|
11 "vcs>=0.1.10", |
1020
21a781cdd1fd
updated some requirements to newest versions
Marcin Kuzminski <marcin@python-works.com>
parents:
993
diff
changeset
|
12 "pygments>=1.4", |
1133 | 13 "mercurial>=1.7.5", |
933
b956e6f415a2
implemented #91,
Marcin Kuzminski <marcin@python-works.com>
parents:
929
diff
changeset
|
14 "whoosh>=1.3.4", |
1133 | 15 "celery>=2.2.4", |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
16 "py-bcrypt", |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
17 "babel", |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
18 ] |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
19 |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
20 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
|
21 '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
|
22 '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
|
23 '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
|
24 'License :: OSI Approved :: BSD License', |
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
25 'Operating System :: OS Independent', |
b76da6f22e0f
fixed some problems with python setup.py operations due to import problems
Marcin Kuzminski <marcin@python-works.com>
parents:
890
diff
changeset
|
26 'Programming Language :: Python', ] |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
27 |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
28 if sys.version_info < (2, 6): |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
29 requirements.append("simplejson") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
30 requirements.append("pysqlite") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
31 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
32 #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
|
33 #relative to sys.prefix |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
34 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
35 |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
36 #additional files that goes into package itself |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
37 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
|
38 |
774
9985eca2e4d0
updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents:
748
diff
changeset
|
39 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
|
40 'build in push/pull server and full text search') |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
41 #long description |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
42 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
43 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
|
44 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
|
45 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
|
46 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
|
47 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
48 except IOError, err: |
640
36d54d4479db
Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents:
622
diff
changeset
|
49 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
|
50 "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
|
51 % (readme_file, changelog_file)) |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
52 long_description = description |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
53 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
54 |
0 | 55 try: |
56 from setuptools import setup, find_packages | |
57 except ImportError: | |
58 from ez_setup import use_setuptools | |
59 use_setuptools() | |
60 from setuptools import setup, find_packages | |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
61 #packages |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
62 packages = find_packages(exclude=['ez_setup']) |
0 | 63 |
64 setup( | |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
65 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
|
66 version=get_version(), |
613
ad2e97c6f17f
small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents:
612
diff
changeset
|
67 description=description, |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
68 long_description=long_description, |
738
9c8a817462fe
small fixes to docs, and setup file
Marcin Kuzminski <marcin@python-works.com>
parents:
732
diff
changeset
|
69 keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode', |
344
674e0085ccc7
updated setup.py
Marcin Kuzminski <marcin@python-works.com>
parents:
342
diff
changeset
|
70 license='BSD', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
71 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
72 author_email='marcin@python-works.com', |
342 | 73 url='http://hg.python-works.com', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
74 install_requires=requirements, |
622
a60cd29ba7e2
more docs update
Marcin Kuzminski <marcin@python-works.com>
parents:
613
diff
changeset
|
75 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
|
76 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
|
77 data_files=data_files, |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
78 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
|
79 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
|
80 test_suite='nose.collector', |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
81 package_data=package_data, |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
82 message_extractors={'rhodecode': [ |
0 | 83 ('**.py', 'python', None), |
84 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
85 ('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
|
86 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
|
87 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
|
88 entry_points=""" |
0 | 89 [paste.app_factory] |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
90 main = rhodecode.config.middleware:make_app |
0 | 91 |
92 [paste.app_install] | |
93 main = pylons.util:PylonsInstaller | |
740
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
94 |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
95 [paste.global_paster_command] |
341beaa9edba
Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents:
739
diff
changeset
|
96 make-index = rhodecode.lib.indexers:MakeIndex |
890
9753e0907827
added dbmigrate package, added model changes
Marcin Kuzminski <marcin@python-works.com>
parents:
875
diff
changeset
|
97 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
|
98 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
99 celerybeat=rhodecode.lib.celerypylons.commands:CeleryBeatCommand |
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
100 camqadm=rhodecode.lib.celerypylons.commands:CAMQPAdminCommand |
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
101 celeryev=rhodecode.lib.celerypylons.commands:CeleryEventCommand |
aaf2fc59a39a
fixes #77 and adds extendable base Dn with custom uid specification
Marcin Kuzminski <marcin@python-works.com>
parents:
830
diff
changeset
|
102 |
0 | 103 """, |
104 ) |