Mercurial > public > src > rhodecode
annotate setup.py @ 612:ba7e24cd4786
refactor codes and setup for python 2.5
readme update
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 09 Oct 2010 16:05:14 +0200 |
parents | 65c27fd21769 |
children | ad2e97c6f17f |
rev | line source |
---|---|
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
1 from rhodecode import get_version |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
2 import sys |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
3 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
|
4 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
5 requirements = [ |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
6 "Pylons>=1.0.0", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
7 "SQLAlchemy>=0.6", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
8 "babel", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
9 "Mako>=0.3.2", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
10 "vcs>=0.1.7", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
11 "pygments>=1.3.0", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
12 "mercurial>=1.6", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
13 "whoosh==1.0.0", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
14 "py-bcrypt", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
15 "celery", |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
16 ] |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
17 |
612
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
18 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
|
19 requirements.append("simplejson") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
20 requirements.append("pysqlite") |
ba7e24cd4786
refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents:
602
diff
changeset
|
21 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
22 #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
|
23 #relative to sys.prefix |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
24 data_files = [] |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
25 |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
26 #additional files that goes into package itself |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
27 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
|
28 |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
29 #long description |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
30 try: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
31 readme_file = 'README.rst' |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
32 long_description = open(readme_file).read() |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
33 except IOError, err: |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
34 sys.stderr.write("[ERROR] Cannot find file specified as " |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
35 "long_description (%s)\n" % readme_file) |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
36 sys.exit(1) |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
37 |
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
38 |
0 | 39 try: |
40 from setuptools import setup, find_packages | |
41 except ImportError: | |
42 from ez_setup import use_setuptools | |
43 use_setuptools() | |
44 from setuptools import setup, find_packages | |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
45 #packages |
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
46 packages = find_packages(exclude=['ez_setup']) |
0 | 47 |
48 setup( | |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
49 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
|
50 version=get_version(), |
344
674e0085ccc7
updated setup.py
Marcin Kuzminski <marcin@python-works.com>
parents:
342
diff
changeset
|
51 description='Mercurial repository serving and browsing app', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
52 long_description=long_description, |
598
f99075170eb4
more renames for rhode code !!
Marcin Kuzminski <marcin@python-works.com>
parents:
596
diff
changeset
|
53 keywords='mercurial web hgwebdir replacement serving hgweb rhodecode', |
344
674e0085ccc7
updated setup.py
Marcin Kuzminski <marcin@python-works.com>
parents:
342
diff
changeset
|
54 license='BSD', |
601
2642f128ad46
removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents:
598
diff
changeset
|
55 author='Marcin Kuzminski', |
244
782f0692b29c
fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents:
185
diff
changeset
|
56 author_email='marcin@python-works.com', |
342 | 57 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
|
58 install_requires=requirements, |
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
|
59 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
|
60 data_files=data_files, |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
61 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
|
62 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
|
63 test_suite='nose.collector', |
602
65c27fd21769
small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents:
601
diff
changeset
|
64 package_data=package_data, |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
65 message_extractors={'rhodecode': [ |
0 | 66 ('**.py', 'python', None), |
67 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
68 ('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
|
69 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
|
70 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
|
71 entry_points=""" |
0 | 72 [paste.app_factory] |
596
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
586
diff
changeset
|
73 main = rhodecode.config.middleware:make_app |
0 | 74 |
75 [paste.app_install] | |
76 main = pylons.util:PylonsInstaller | |
77 """, | |
78 ) |