setup.py
124 lines
| 3.8 KiB
| text/x-python
|
PythonLexer
r553 | import sys | |||
r1078 | from rhodecode import get_version | |||
r1118 | from rhodecode import __platform__ | |||
r1205 | from rhodecode import __license__ | |||
r1223 | from rhodecode import PLATFORM_OTHERS | |||
r1078 | ||||
r564 | py_version = sys.version_info | |||
r552 | ||||
r1163 | if py_version < (2, 5): | |||
raise Exception('RhodeCode requires python 2.5 or later') | ||||
r552 | requirements = [ | |||
r818 | "Pylons==1.0.0", | |||
r931 | "WebHelpers>=1.2", | |||
r1511 | "formencode==1.2.4", | |||
r1457 | "SQLAlchemy>=0.7.2,<0.8", | |||
r1456 | "Mako>=0.4.2", | |||
r957 | "pygments>=1.4", | |||
r1512 | "mercurial>=1.9.3,<2.0", | |||
r1449 | "whoosh<1.8", | |||
r1413 | "celery>=2.2.5,<2.3", | |||
r565 | "babel", | |||
r1188 | "python-dateutil>=1.5.0,<2.0.0", | |||
r1457 | "dulwich>=0.8.0", | |||
r1512 | "vcs>=0.2.1", | |||
r1479 | "webob==1.0.8" | |||
r552 | ] | |||
r1456 | dependency_links = [ | |||
] | ||||
r857 | classifiers = ['Development Status :: 5 - Production/Stable', | |||
r852 | 'Environment :: Web Environment', | |||
'Framework :: Pylons', | ||||
'Intended Audience :: Developers', | ||||
r1512 | 'License :: OSI Approved :: BSD License', | |||
r852 | 'Operating System :: OS Independent', | |||
r1188 | 'Programming Language :: Python', | |||
'Programming Language :: Python :: 2.5', | ||||
'Programming Language :: Python :: 2.6', | ||||
'Programming Language :: Python :: 2.7', ] | ||||
r572 | ||||
r1078 | if py_version < (2, 6): | |||
r564 | requirements.append("simplejson") | |||
requirements.append("pysqlite") | ||||
r1223 | if __platform__ in PLATFORM_OTHERS: | |||
r1118 | requirements.append("py-bcrypt") | |||
r553 | #additional files from project that goes somewhere in the filesystem | |||
#relative to sys.prefix | ||||
data_files = [] | ||||
#additional files that goes into package itself | ||||
package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } | ||||
r552 | ||||
r717 | description = ('Mercurial repository browser/management with ' | |||
r681 | 'build in push/pull server and full text search') | |||
r1204 | keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', | |||
r1078 | 'repository management', 'hgweb replacement' | |||
r1204 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) | |||
r553 | #long description | |||
try: | ||||
readme_file = 'README.rst' | ||||
r682 | changelog_file = 'docs/changelog.rst' | |||
r868 | long_description = open(readme_file).read() + '\n\n' + \ | |||
r682 | open(changelog_file).read() | |||
r553 | except IOError, err: | |||
r589 | sys.stderr.write("[WARNING] Cannot find file specified as " | |||
r682 | "long_description (%s)\n or changelog (%s) skipping that file" \ | |||
% (readme_file, changelog_file)) | ||||
r565 | long_description = description | |||
r552 | ||||
Marcin Kuzminski
|
r0 | try: | ||
from setuptools import setup, find_packages | ||||
except ImportError: | ||||
from ez_setup import use_setuptools | ||||
use_setuptools() | ||||
from setuptools import setup, find_packages | ||||
r553 | #packages | |||
packages = find_packages(exclude=['ez_setup']) | ||||
Marcin Kuzminski
|
r0 | |||
setup( | ||||
r552 | name='RhodeCode', | |||
r185 | version=get_version(), | |||
r565 | description=description, | |||
r552 | long_description=long_description, | |||
r1078 | keywords=keywords, | |||
r1205 | license=__license__, | |||
r552 | author='Marcin Kuzminski', | |||
r244 | author_email='marcin@python-works.com', | |||
r1456 | dependency_links=dependency_links, | |||
r1143 | url='http://rhodecode.org', | |||
r552 | install_requires=requirements, | |||
r572 | classifiers=classifiers, | |||
r127 | setup_requires=["PasteScript>=1.6.3"], | |||
r552 | data_files=data_files, | |||
r553 | packages=packages, | |||
r127 | include_package_data=True, | |||
test_suite='nose.collector', | ||||
r553 | package_data=package_data, | |||
r547 | message_extractors={'rhodecode': [ | |||
Marcin Kuzminski
|
r0 | ('**.py', 'python', None), | ||
('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | ||||
r1143 | ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), | |||
Marcin Kuzminski
|
r0 | ('public/**', 'ignore', None)]}, | ||
r127 | zip_safe=False, | |||
paster_plugins=['PasteScript', 'Pylons'], | ||||
entry_points=""" | ||||
Marcin Kuzminski
|
r0 | [paste.app_factory] | ||
r547 | main = rhodecode.config.middleware:make_app | |||
Marcin Kuzminski
|
r0 | |||
[paste.app_install] | ||||
main = pylons.util:PylonsInstaller | ||||
r683 | ||||
[paste.global_paster_command] | ||||
make-index = rhodecode.lib.indexers:MakeIndex | ||||
r833 | upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb | |||
r775 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand | |||
Marcin Kuzminski
|
r0 | """, | ||
) | ||||