setup.py
104 lines
| 3.2 KiB
| text/x-python
|
PythonLexer
r553 | import sys | |||
r564 | py_version = sys.version_info | |||
r552 | ||||
r775 | from rhodecode import get_version | |||
r552 | requirements = [ | |||
r818 | "Pylons==1.0.0", | |||
r940 | "WebHelpers==1.2", | |||
r1057 | "SQLAlchemy==0.6.6", | |||
r818 | "Mako==0.3.6", | |||
"vcs==0.1.10", | ||||
"pygments==1.3.1", | ||||
r1057 | "mercurial==1.7.5", | |||
r818 | "whoosh==1.3.4", | |||
"celery==2.1.4", | ||||
r552 | "py-bcrypt", | |||
r565 | "babel", | |||
r552 | ] | |||
r857 | classifiers = ['Development Status :: 5 - Production/Stable', | |||
r852 | 'Environment :: Web Environment', | |||
'Framework :: Pylons', | ||||
'Intended Audience :: Developers', | ||||
'License :: OSI Approved :: BSD License', | ||||
'Operating System :: OS Independent', | ||||
'Programming Language :: Python', ] | ||||
r572 | ||||
r564 | if sys.version_info < (2, 6): | |||
requirements.append("simplejson") | ||||
requirements.append("pysqlite") | ||||
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') | |||
r553 | #long description | |||
try: | ||||
readme_file = 'README.rst' | ||||
r682 | changelog_file = 'docs/changelog.rst' | |||
r867 | 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, | |||
r681 | keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode', | |||
r326 | license='BSD', | |||
r552 | author='Marcin Kuzminski', | |||
r244 | author_email='marcin@python-works.com', | |||
r325 | url='http://hg.python-works.com', | |||
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'}), | ||||
('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 | |||
celerybeat=rhodecode.lib.celerypylons.commands:CeleryBeatCommand | ||||
camqadm=rhodecode.lib.celerypylons.commands:CAMQPAdminCommand | ||||
celeryev=rhodecode.lib.celerypylons.commands:CeleryEventCommand | ||||
Marcin Kuzminski
|
r0 | """, | ||
) | ||||