setup.py
100 lines
| 3.3 KiB
| text/x-python
|
PythonLexer
r553 | import sys | |||
r1078 | from rhodecode import get_version | |||
r1205 | from rhodecode import __license__ | |||
r1965 | from rhodecode import __py_version__ | |||
r1915 | from rhodecode import requirements | |||
r1078 | ||||
r1965 | if __py_version__ < (2, 5): | |||
r1163 | raise Exception('RhodeCode requires python 2.5 or later') | |||
r552 | ||||
r1456 | dependency_links = [ | |||
] | ||||
r857 | classifiers = ['Development Status :: 5 - Production/Stable', | |||
r852 | 'Environment :: Web Environment', | |||
'Framework :: Pylons', | ||||
'Intended Audience :: Developers', | ||||
r1565 | 'License :: OSI Approved :: GNU General Public License (GPL)', | |||
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 | ||||
r1118 | ||||
r1797 | # additional files from project that goes somewhere in the filesystem | |||
# relative to sys.prefix | ||||
r553 | data_files = [] | |||
r1797 | # additional files that goes into package itself | |||
r553 | 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', | |||
r1797 | 'code review', 'repo groups', 'ldap' | |||
r1078 | 'repository management', 'hgweb replacement' | |||
r1204 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) | |||
r1797 | # long description | |||
r553 | 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 | ||||
r1797 | # packages | |||
r553 | 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 | """, | ||
) | ||||