setup.py
89 lines
| 2.7 KiB
| text/x-python
|
PythonLexer
r547 | from rhodecode import get_version | |||
r553 | import sys | |||
r564 | py_version = sys.version_info | |||
r552 | ||||
requirements = [ | ||||
"Pylons>=1.0.0", | ||||
r676 | "SQLAlchemy>=0.6.5", | |||
r635 | "Mako>=0.3.5", | |||
r643 | "vcs>=0.1.10", | |||
r552 | "pygments>=1.3.0", | |||
r661 | "mercurial>=1.6.4", | |||
"whoosh>=1.3.1", | ||||
r676 | "celery>=2.1.3", | |||
r552 | "py-bcrypt", | |||
r565 | "babel", | |||
r552 | ] | |||
r572 | classifiers = ['Development Status :: 4 - Beta', | |||
'Environment :: Web Environment', | ||||
'Framework :: Pylons', | ||||
'Intended Audience :: Developers', | ||||
'License :: OSI Approved :: BSD License', | ||||
'Operating System :: OS Independent', | ||||
'Programming Language :: Python', ] | ||||
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 | ||||
r681 | description = ('Mercurial and Git repository browser/management with ' | |||
'build in push/pull server and full text search') | ||||
r553 | #long description | |||
try: | ||||
readme_file = 'README.rst' | ||||
long_description = open(readme_file).read() | ||||
except IOError, err: | ||||
r589 | sys.stderr.write("[WARNING] Cannot find file specified as " | |||
"long_description (%s)\n skipping that file" % readme_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 | ||||
""", | ||||
) | ||||