Show More
@@ -0,0 +1,17 b'' | |||||
|
1 | Pylons==1.0.0 | |||
|
2 | Beaker==1.6.2 | |||
|
3 | WebHelpers>=1.2 | |||
|
4 | formencode==1.2.4 | |||
|
5 | SQLAlchemy==0.7.3 | |||
|
6 | Mako==0.5.0 | |||
|
7 | pygments>=1.4 | |||
|
8 | mercurial>=2.0,<2.1 | |||
|
9 | whoosh<1.8 | |||
|
10 | celery>=2.2.5,<2.3 | |||
|
11 | babel | |||
|
12 | python-dateutil>=1.5.0,<2.0.0 | |||
|
13 | dulwich>=0.8.0,<0.9.0 | |||
|
14 | vcs>=0.2.3.dev | |||
|
15 | webob==1.0.8 | |||
|
16 | markdown==2.0.3 | |||
|
17 | docutils==0.8.1 No newline at end of file |
@@ -1,61 +1,82 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-2011 Marcin Kuzminski <marcin@python-works.com> |
|
11 | :copyright: (C) 2009-2011 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 modify |
|
14 | # This program is free software: you can redistribute it and/or modify | |
15 | # it under the terms of the GNU General Public License as published by |
|
15 | # it under the terms of the GNU General Public License as published by | |
16 | # the Free Software Foundation, either version 3 of the License, or |
|
16 | # the Free Software Foundation, either version 3 of the License, or | |
17 | # (at your option) any later version. |
|
17 | # (at your option) any later version. | |
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, see <http://www.gnu.org/licenses/>. |
|
25 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
26 | import platform |
|
26 | import platform | |
27 |
|
27 | |||
28 | VERSION = (1, 3, 0, 'beta') |
|
28 | VERSION = (1, 3, 0, 'beta') | |
29 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
29 | __version__ = '.'.join((str(each) for each in VERSION[:4])) | |
30 | __dbversion__ = 4 # defines current db version for migrations |
|
30 | __dbversion__ = 4 # defines current db version for migrations | |
31 | __platform__ = platform.system() |
|
31 | __platform__ = platform.system() | |
32 | __license__ = 'GPLv3' |
|
32 | __license__ = 'GPLv3' | |
33 |
|
33 | |||
34 | PLATFORM_WIN = ('Windows') |
|
34 | PLATFORM_WIN = ('Windows') | |
35 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
|
35 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') | |
36 |
|
36 | |||
|
37 | requirements = [ | |||
|
38 | "Pylons==1.0.0", | |||
|
39 | "Beaker==1.6.2", | |||
|
40 | "WebHelpers>=1.2", | |||
|
41 | "formencode==1.2.4", | |||
|
42 | "SQLAlchemy==0.7.3", | |||
|
43 | "Mako==0.5.0", | |||
|
44 | "pygments>=1.4", | |||
|
45 | "mercurial>=2.0,<2.1", | |||
|
46 | "whoosh<1.8", | |||
|
47 | "celery>=2.2.5,<2.3", | |||
|
48 | "babel", | |||
|
49 | "python-dateutil>=1.5.0,<2.0.0", | |||
|
50 | "dulwich>=0.8.0,<0.9.0", | |||
|
51 | "vcs>=0.2.3.dev", | |||
|
52 | "webob==1.0.8", | |||
|
53 | "markdown==2.0.3", | |||
|
54 | "docutils==0.8.1", | |||
|
55 | ] | |||
|
56 | ||||
|
57 | ||||
37 | try: |
|
58 | try: | |
38 | from rhodecode.lib import get_current_revision |
|
59 | from rhodecode.lib import get_current_revision | |
39 | _rev = get_current_revision() |
|
60 | _rev = get_current_revision() | |
40 | except ImportError: |
|
61 | except ImportError: | |
41 | # this is needed when doing some setup.py operations |
|
62 | # this is needed when doing some setup.py operations | |
42 | _rev = False |
|
63 | _rev = False | |
43 |
|
64 | |||
44 | if len(VERSION) > 3 and _rev: |
|
65 | if len(VERSION) > 3 and _rev: | |
45 | __version__ += ' [rev:%s]' % _rev[0] |
|
66 | __version__ += ' [rev:%s]' % _rev[0] | |
46 |
|
67 | |||
47 |
|
68 | |||
48 | def get_version(): |
|
69 | def get_version(): | |
49 | """Returns shorter version (digit parts only) as string.""" |
|
70 | """Returns shorter version (digit parts only) as string.""" | |
50 |
|
71 | |||
51 | return '.'.join((str(each) for each in VERSION[:3])) |
|
72 | return '.'.join((str(each) for each in VERSION[:3])) | |
52 |
|
73 | |||
53 | BACKENDS = { |
|
74 | BACKENDS = { | |
54 | 'hg': 'Mercurial repository', |
|
75 | 'hg': 'Mercurial repository', | |
55 | 'git': 'Git repository', |
|
76 | 'git': 'Git repository', | |
56 | } |
|
77 | } | |
57 |
|
78 | |||
58 | CELERY_ON = False |
|
79 | CELERY_ON = False | |
59 |
|
80 | |||
60 | # link to config for pylons |
|
81 | # link to config for pylons | |
61 | CONFIG = None |
|
82 | CONFIG = None |
@@ -1,130 +1,112 b'' | |||||
1 | import sys |
|
1 | import sys | |
2 | from rhodecode import get_version |
|
2 | from rhodecode import get_version | |
3 | from rhodecode import __platform__ |
|
3 | from rhodecode import __platform__ | |
4 | from rhodecode import __license__ |
|
4 | from rhodecode import __license__ | |
5 | from rhodecode import PLATFORM_OTHERS |
|
5 | from rhodecode import PLATFORM_OTHERS | |
|
6 | from rhodecode import requirements | |||
6 |
|
7 | |||
7 | py_version = sys.version_info |
|
8 | py_version = sys.version_info | |
8 |
|
9 | |||
9 | if py_version < (2, 5): |
|
10 | if py_version < (2, 5): | |
10 | raise Exception('RhodeCode requires python 2.5 or later') |
|
11 | raise Exception('RhodeCode requires python 2.5 or later') | |
11 |
|
12 | |||
12 | requirements = [ |
|
|||
13 | "Pylons==1.0.0", |
|
|||
14 | "Beaker==1.6.2", |
|
|||
15 | "WebHelpers>=1.2", |
|
|||
16 | "formencode==1.2.4", |
|
|||
17 | "SQLAlchemy==0.7.3", |
|
|||
18 | "Mako==0.5.0", |
|
|||
19 | "pygments>=1.4", |
|
|||
20 | "mercurial>=2.0,<2.1", |
|
|||
21 | "whoosh<1.8", |
|
|||
22 | "celery>=2.2.5,<2.3", |
|
|||
23 | "babel", |
|
|||
24 | "python-dateutil>=1.5.0,<2.0.0", |
|
|||
25 | "dulwich>=0.8.0,<0.9.0", |
|
|||
26 | "vcs>=0.2.3.dev", |
|
|||
27 | "webob==1.0.8", |
|
|||
28 | "markdown==2.0.3", |
|
|||
29 | "docutils==0.8.1", |
|
|||
30 | ] |
|
|||
31 |
|
13 | |||
32 | dependency_links = [ |
|
14 | dependency_links = [ | |
33 | "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev", |
|
15 | "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev", | |
34 | "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev", |
|
16 | "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev", | |
35 | ] |
|
17 | ] | |
36 |
|
18 | |||
37 | classifiers = ['Development Status :: 4 - Beta', |
|
19 | classifiers = ['Development Status :: 4 - Beta', | |
38 | 'Environment :: Web Environment', |
|
20 | 'Environment :: Web Environment', | |
39 | 'Framework :: Pylons', |
|
21 | 'Framework :: Pylons', | |
40 | 'Intended Audience :: Developers', |
|
22 | 'Intended Audience :: Developers', | |
41 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
|
23 | 'License :: OSI Approved :: GNU General Public License (GPL)', | |
42 | 'Operating System :: OS Independent', |
|
24 | 'Operating System :: OS Independent', | |
43 | 'Programming Language :: Python', |
|
25 | 'Programming Language :: Python', | |
44 | 'Programming Language :: Python :: 2.5', |
|
26 | 'Programming Language :: Python :: 2.5', | |
45 | 'Programming Language :: Python :: 2.6', |
|
27 | 'Programming Language :: Python :: 2.6', | |
46 | 'Programming Language :: Python :: 2.7', ] |
|
28 | 'Programming Language :: Python :: 2.7', ] | |
47 |
|
29 | |||
48 | if py_version < (2, 6): |
|
30 | if py_version < (2, 6): | |
49 | requirements.append("simplejson") |
|
31 | requirements.append("simplejson") | |
50 | requirements.append("pysqlite") |
|
32 | requirements.append("pysqlite") | |
51 |
|
33 | |||
52 | if __platform__ in PLATFORM_OTHERS: |
|
34 | if __platform__ in PLATFORM_OTHERS: | |
53 | requirements.append("py-bcrypt") |
|
35 | requirements.append("py-bcrypt") | |
54 |
|
36 | |||
55 |
|
37 | |||
56 | # additional files from project that goes somewhere in the filesystem |
|
38 | # additional files from project that goes somewhere in the filesystem | |
57 | # relative to sys.prefix |
|
39 | # relative to sys.prefix | |
58 | data_files = [] |
|
40 | data_files = [] | |
59 |
|
41 | |||
60 | # additional files that goes into package itself |
|
42 | # additional files that goes into package itself | |
61 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
|
43 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } | |
62 |
|
44 | |||
63 | description = ('Mercurial repository browser/management with ' |
|
45 | description = ('Mercurial repository browser/management with ' | |
64 | 'build in push/pull server and full text search') |
|
46 | 'build in push/pull server and full text search') | |
65 | keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
|
47 | keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', | |
66 | 'code review', 'repo groups', 'ldap' |
|
48 | 'code review', 'repo groups', 'ldap' | |
67 | 'repository management', 'hgweb replacement' |
|
49 | 'repository management', 'hgweb replacement' | |
68 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
|
50 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) | |
69 | # long description |
|
51 | # long description | |
70 | try: |
|
52 | try: | |
71 | readme_file = 'README.rst' |
|
53 | readme_file = 'README.rst' | |
72 | changelog_file = 'docs/changelog.rst' |
|
54 | changelog_file = 'docs/changelog.rst' | |
73 | long_description = open(readme_file).read() + '\n\n' + \ |
|
55 | long_description = open(readme_file).read() + '\n\n' + \ | |
74 | open(changelog_file).read() |
|
56 | open(changelog_file).read() | |
75 |
|
57 | |||
76 | except IOError, err: |
|
58 | except IOError, err: | |
77 | sys.stderr.write("[WARNING] Cannot find file specified as " |
|
59 | sys.stderr.write("[WARNING] Cannot find file specified as " | |
78 | "long_description (%s)\n or changelog (%s) skipping that file" \ |
|
60 | "long_description (%s)\n or changelog (%s) skipping that file" \ | |
79 | % (readme_file, changelog_file)) |
|
61 | % (readme_file, changelog_file)) | |
80 | long_description = description |
|
62 | long_description = description | |
81 |
|
63 | |||
82 |
|
64 | |||
83 | try: |
|
65 | try: | |
84 | from setuptools import setup, find_packages |
|
66 | from setuptools import setup, find_packages | |
85 | except ImportError: |
|
67 | except ImportError: | |
86 | from ez_setup import use_setuptools |
|
68 | from ez_setup import use_setuptools | |
87 | use_setuptools() |
|
69 | use_setuptools() | |
88 | from setuptools import setup, find_packages |
|
70 | from setuptools import setup, find_packages | |
89 | # packages |
|
71 | # packages | |
90 | packages = find_packages(exclude=['ez_setup']) |
|
72 | packages = find_packages(exclude=['ez_setup']) | |
91 |
|
73 | |||
92 | setup( |
|
74 | setup( | |
93 | name='RhodeCode', |
|
75 | name='RhodeCode', | |
94 | version=get_version(), |
|
76 | version=get_version(), | |
95 | description=description, |
|
77 | description=description, | |
96 | long_description=long_description, |
|
78 | long_description=long_description, | |
97 | keywords=keywords, |
|
79 | keywords=keywords, | |
98 | license=__license__, |
|
80 | license=__license__, | |
99 | author='Marcin Kuzminski', |
|
81 | author='Marcin Kuzminski', | |
100 | author_email='marcin@python-works.com', |
|
82 | author_email='marcin@python-works.com', | |
101 | dependency_links=dependency_links, |
|
83 | dependency_links=dependency_links, | |
102 | url='http://rhodecode.org', |
|
84 | url='http://rhodecode.org', | |
103 | install_requires=requirements, |
|
85 | install_requires=requirements, | |
104 | classifiers=classifiers, |
|
86 | classifiers=classifiers, | |
105 | setup_requires=["PasteScript>=1.6.3"], |
|
87 | setup_requires=["PasteScript>=1.6.3"], | |
106 | data_files=data_files, |
|
88 | data_files=data_files, | |
107 | packages=packages, |
|
89 | packages=packages, | |
108 | include_package_data=True, |
|
90 | include_package_data=True, | |
109 | test_suite='nose.collector', |
|
91 | test_suite='nose.collector', | |
110 | package_data=package_data, |
|
92 | package_data=package_data, | |
111 | message_extractors={'rhodecode': [ |
|
93 | message_extractors={'rhodecode': [ | |
112 | ('**.py', 'python', None), |
|
94 | ('**.py', 'python', None), | |
113 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), |
|
95 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
114 | ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
|
96 | ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), | |
115 | ('public/**', 'ignore', None)]}, |
|
97 | ('public/**', 'ignore', None)]}, | |
116 | zip_safe=False, |
|
98 | zip_safe=False, | |
117 | paster_plugins=['PasteScript', 'Pylons'], |
|
99 | paster_plugins=['PasteScript', 'Pylons'], | |
118 | entry_points=""" |
|
100 | entry_points=""" | |
119 | [paste.app_factory] |
|
101 | [paste.app_factory] | |
120 | main = rhodecode.config.middleware:make_app |
|
102 | main = rhodecode.config.middleware:make_app | |
121 |
|
103 | |||
122 | [paste.app_install] |
|
104 | [paste.app_install] | |
123 | main = pylons.util:PylonsInstaller |
|
105 | main = pylons.util:PylonsInstaller | |
124 |
|
106 | |||
125 | [paste.global_paster_command] |
|
107 | [paste.global_paster_command] | |
126 | make-index = rhodecode.lib.indexers:MakeIndex |
|
108 | make-index = rhodecode.lib.indexers:MakeIndex | |
127 | upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb |
|
109 | upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb | |
128 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
|
110 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand | |
129 | """, |
|
111 | """, | |
130 | ) |
|
112 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now