Show More
@@ -1,48 +1,52 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.__init__ |
|
3 | rhodecode.__init__ | |
4 | ~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | RhodeCode, a web based repository management based on pylons |
|
6 | RhodeCode, a web based repository management based on pylons | |
7 | versioning implementation: http://semver.org/ |
|
7 | versioning implementation: http://semver.org/ | |
8 |
|
8 | |||
9 | :created_on: Apr 9, 2010 |
|
9 | :created_on: Apr 9, 2010 | |
10 | :author: marcink |
|
10 | :author: marcink | |
11 | :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> |
|
11 | :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> | |
12 | :license: GPLv3, see COPYING for more details. |
|
12 | :license: GPLv3, see COPYING for more details. | |
13 | """ |
|
13 | """ | |
14 | # This program is free software; you can redistribute it and/or |
|
14 | # This program is free software; you can redistribute it and/or | |
15 | # modify it under the terms of the GNU General Public License |
|
15 | # modify it under the terms of the GNU General Public License | |
16 | # as published by the Free Software Foundation; version 2 |
|
16 | # as published by the Free Software Foundation; version 2 | |
17 | # of the License or (at your opinion) any later version of the license. |
|
17 | # of the License or (at your opinion) any later version of the license. | |
18 | # |
|
18 | # | |
19 | # This program is distributed in the hope that it will be useful, |
|
19 | # This program is distributed in the hope that it will be useful, | |
20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | # GNU General Public License for more details. |
|
22 | # GNU General Public License for more details. | |
23 | # |
|
23 | # | |
24 | # You should have received a copy of the GNU General Public License |
|
24 | # You should have received a copy of the GNU General Public License | |
25 | # along with this program; if not, write to the Free Software |
|
25 | # along with this program; if not, write to the Free Software | |
26 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
26 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
27 | # MA 02110-1301, USA. |
|
27 | # MA 02110-1301, USA. | |
28 |
|
28 | |||
29 |
|
29 | |||
30 | VERSION = (1, 1, 0, 'beta') |
|
30 | VERSION = (1, 1, 0, 'beta') | |
31 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
31 | __version__ = '.'.join((str(each) for each in VERSION[:4])) | |
32 | __dbversion__ = 2 #defines current db version for migrations |
|
32 | __dbversion__ = 2 #defines current db version for migrations | |
33 |
|
33 | |||
34 | from rhodecode.lib.utils import get_current_revision |
|
34 | try: | |
35 | _rev = get_current_revision() |
|
35 | from rhodecode.lib.utils import get_current_revision | |
|
36 | _rev = get_current_revision() | |||
|
37 | except ImportError: | |||
|
38 | #this is needed when doing some setup.py operations | |||
|
39 | _rev = False | |||
36 |
|
40 | |||
37 | if len(VERSION) > 3 and _rev: |
|
41 | if len(VERSION) > 3 and _rev: | |
38 | __version__ += ' [rev:%s]' % _rev[0] |
|
42 | __version__ += ' [rev:%s]' % _rev[0] | |
39 |
|
43 | |||
40 | def get_version(): |
|
44 | def get_version(): | |
41 | """Returns shorter version (digit parts only) as string.""" |
|
45 | """Returns shorter version (digit parts only) as string.""" | |
42 |
|
46 | |||
43 | return '.'.join((str(each) for each in VERSION[:3])) |
|
47 | return '.'.join((str(each) for each in VERSION[:3])) | |
44 |
|
48 | |||
45 | BACKENDS = { |
|
49 | BACKENDS = { | |
46 | 'hg': 'Mercurial repository', |
|
50 | 'hg': 'Mercurial repository', | |
47 | #'git': 'Git repository', |
|
51 | #'git': 'Git repository', | |
48 | } |
|
52 | } |
@@ -1,103 +1,103 b'' | |||||
1 | import sys |
|
1 | import sys | |
2 | py_version = sys.version_info |
|
2 | py_version = sys.version_info | |
3 |
|
3 | |||
4 | from rhodecode import get_version |
|
4 | from rhodecode import get_version | |
5 |
|
5 | |||
6 | requirements = [ |
|
6 | requirements = [ | |
7 | "Pylons==1.0.0", |
|
7 | "Pylons==1.0.0", | |
8 | "SQLAlchemy==0.6.5", |
|
8 | "SQLAlchemy==0.6.5", | |
9 | "Mako==0.3.6", |
|
9 | "Mako==0.3.6", | |
10 | "vcs==0.1.10", |
|
10 | "vcs==0.1.10", | |
11 | "pygments==1.3.1", |
|
11 | "pygments==1.3.1", | |
12 | "mercurial==1.7.2", |
|
12 | "mercurial==1.7.2", | |
13 | "whoosh==1.3.4", |
|
13 | "whoosh==1.3.4", | |
14 | "celery==2.1.4", |
|
14 | "celery==2.1.4", | |
15 | "py-bcrypt", |
|
15 | "py-bcrypt", | |
16 | "babel", |
|
16 | "babel", | |
17 | ] |
|
17 | ] | |
18 |
|
18 | |||
19 | classifiers = ['Development Status :: 4 - Beta', |
|
19 | classifiers = ['Development Status :: 4 - Beta', | |
20 |
|
|
20 | 'Environment :: Web Environment', | |
21 |
|
|
21 | 'Framework :: Pylons', | |
22 |
|
|
22 | 'Intended Audience :: Developers', | |
23 |
|
|
23 | 'License :: OSI Approved :: BSD License', | |
24 |
|
|
24 | 'Operating System :: OS Independent', | |
25 |
|
|
25 | 'Programming Language :: Python', ] | |
26 |
|
26 | |||
27 | if sys.version_info < (2, 6): |
|
27 | if sys.version_info < (2, 6): | |
28 | requirements.append("simplejson") |
|
28 | requirements.append("simplejson") | |
29 | requirements.append("pysqlite") |
|
29 | requirements.append("pysqlite") | |
30 |
|
30 | |||
31 | #additional files from project that goes somewhere in the filesystem |
|
31 | #additional files from project that goes somewhere in the filesystem | |
32 | #relative to sys.prefix |
|
32 | #relative to sys.prefix | |
33 | data_files = [] |
|
33 | data_files = [] | |
34 |
|
34 | |||
35 | #additional files that goes into package itself |
|
35 | #additional files that goes into package itself | |
36 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
|
36 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } | |
37 |
|
37 | |||
38 | description = ('Mercurial repository browser/management with ' |
|
38 | description = ('Mercurial repository browser/management with ' | |
39 | 'build in push/pull server and full text search') |
|
39 | 'build in push/pull server and full text search') | |
40 | #long description |
|
40 | #long description | |
41 | try: |
|
41 | try: | |
42 | readme_file = 'README.rst' |
|
42 | readme_file = 'README.rst' | |
43 | changelog_file = 'docs/changelog.rst' |
|
43 | changelog_file = 'docs/changelog.rst' | |
44 | long_description = open(readme_file).read() + '/n/n' + \ |
|
44 | long_description = open(readme_file).read() + '/n/n' + \ | |
45 | open(changelog_file).read() |
|
45 | open(changelog_file).read() | |
46 |
|
46 | |||
47 | except IOError, err: |
|
47 | except IOError, err: | |
48 | sys.stderr.write("[WARNING] Cannot find file specified as " |
|
48 | sys.stderr.write("[WARNING] Cannot find file specified as " | |
49 | "long_description (%s)\n or changelog (%s) skipping that file" \ |
|
49 | "long_description (%s)\n or changelog (%s) skipping that file" \ | |
50 | % (readme_file, changelog_file)) |
|
50 | % (readme_file, changelog_file)) | |
51 | long_description = description |
|
51 | long_description = description | |
52 |
|
52 | |||
53 |
|
53 | |||
54 | try: |
|
54 | try: | |
55 | from setuptools import setup, find_packages |
|
55 | from setuptools import setup, find_packages | |
56 | except ImportError: |
|
56 | except ImportError: | |
57 | from ez_setup import use_setuptools |
|
57 | from ez_setup import use_setuptools | |
58 | use_setuptools() |
|
58 | use_setuptools() | |
59 | from setuptools import setup, find_packages |
|
59 | from setuptools import setup, find_packages | |
60 | #packages |
|
60 | #packages | |
61 | packages = find_packages(exclude=['ez_setup']) |
|
61 | packages = find_packages(exclude=['ez_setup']) | |
62 |
|
62 | |||
63 | setup( |
|
63 | setup( | |
64 | name='RhodeCode', |
|
64 | name='RhodeCode', | |
65 | version=get_version(), |
|
65 | version=get_version(), | |
66 | description=description, |
|
66 | description=description, | |
67 | long_description=long_description, |
|
67 | long_description=long_description, | |
68 | keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode', |
|
68 | keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode', | |
69 | license='BSD', |
|
69 | license='BSD', | |
70 | author='Marcin Kuzminski', |
|
70 | author='Marcin Kuzminski', | |
71 | author_email='marcin@python-works.com', |
|
71 | author_email='marcin@python-works.com', | |
72 | url='http://hg.python-works.com', |
|
72 | url='http://hg.python-works.com', | |
73 | install_requires=requirements, |
|
73 | install_requires=requirements, | |
74 | classifiers=classifiers, |
|
74 | classifiers=classifiers, | |
75 | setup_requires=["PasteScript>=1.6.3"], |
|
75 | setup_requires=["PasteScript>=1.6.3"], | |
76 | data_files=data_files, |
|
76 | data_files=data_files, | |
77 | packages=packages, |
|
77 | packages=packages, | |
78 | include_package_data=True, |
|
78 | include_package_data=True, | |
79 | test_suite='nose.collector', |
|
79 | test_suite='nose.collector', | |
80 | package_data=package_data, |
|
80 | package_data=package_data, | |
81 | message_extractors={'rhodecode': [ |
|
81 | message_extractors={'rhodecode': [ | |
82 | ('**.py', 'python', None), |
|
82 | ('**.py', 'python', None), | |
83 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), |
|
83 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
84 | ('public/**', 'ignore', None)]}, |
|
84 | ('public/**', 'ignore', None)]}, | |
85 | zip_safe=False, |
|
85 | zip_safe=False, | |
86 | paster_plugins=['PasteScript', 'Pylons'], |
|
86 | paster_plugins=['PasteScript', 'Pylons'], | |
87 | entry_points=""" |
|
87 | entry_points=""" | |
88 | [paste.app_factory] |
|
88 | [paste.app_factory] | |
89 | main = rhodecode.config.middleware:make_app |
|
89 | main = rhodecode.config.middleware:make_app | |
90 |
|
90 | |||
91 | [paste.app_install] |
|
91 | [paste.app_install] | |
92 | main = pylons.util:PylonsInstaller |
|
92 | main = pylons.util:PylonsInstaller | |
93 |
|
93 | |||
94 | [paste.global_paster_command] |
|
94 | [paste.global_paster_command] | |
95 | make-index = rhodecode.lib.indexers:MakeIndex |
|
95 | make-index = rhodecode.lib.indexers:MakeIndex | |
96 | upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb |
|
96 | upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb | |
97 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
|
97 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand | |
98 | celerybeat=rhodecode.lib.celerypylons.commands:CeleryBeatCommand |
|
98 | celerybeat=rhodecode.lib.celerypylons.commands:CeleryBeatCommand | |
99 | camqadm=rhodecode.lib.celerypylons.commands:CAMQPAdminCommand |
|
99 | camqadm=rhodecode.lib.celerypylons.commands:CAMQPAdminCommand | |
100 | celeryev=rhodecode.lib.celerypylons.commands:CeleryEventCommand |
|
100 | celeryev=rhodecode.lib.celerypylons.commands:CeleryEventCommand | |
101 |
|
101 | |||
102 | """, |
|
102 | """, | |
103 | ) |
|
103 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now