##// END OF EJS Templates
install-iis: use logging.config.fileConfig instead of paste.script copy...
install-iis: use logging.config.fileConfig instead of paste.script copy paste.script.util.logging_config is an old copy of logging.config from Python 2.5.1 (see [1]). There are no paste-specific details in it. In other places, we are always using logging.config directly, there is no reason not to do it in install-iis. [1] https://bitbucket.org/wilig/pastescript/commits/04d0db6b2f5ab360bdaa5b10511d969a24fde0ec

File last commit:

r7374:e5406853 default
r7417:5e7eb3df default
Show More
setup.py
161 lines | 4.8 KiB | text/x-python | PythonLexer
Mads Kiilerich
minor fixes - mainly wording
r4267 #!/usr/bin/env python2
Fixes some issues with keywords generation, and cleaned the code
r4005 # -*- coding: utf-8 -*-
removed import rhodecode from setup.py
r2563 import os
small fixes for distutils
r553 import sys
removed import rhodecode from setup.py
r2563 import platform
Mads Kiilerich
setup: drop ez_setup...
r5996 if sys.version_info < (2, 6) or sys.version_info >= (3,):
Mads Kiilerich
setup: clarify that we only support 2.6 and 2.7
r4522 raise Exception('Kallithea requires python 2.6 or 2.7')
removed import rhodecode from setup.py
r2563
here = os.path.abspath(os.path.dirname(__file__))
def _get_meta_var(name, data, callback_handler=None):
import re
matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
if matches:
if not callable(callback_handler):
callback_handler = lambda v: v
return callback_handler(eval(matches.groups()[0]))
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 _meta = open(os.path.join(here, 'kallithea', '__init__.py'), 'rb')
removed import rhodecode from setup.py
r2563 _metadata = _meta.read()
_meta.close()
callback = lambda V: ('.'.join(map(str, V[:3])) + '.'.join(V[3:]))
__version__ = _get_meta_var('VERSION', _metadata, callback)
__license__ = _get_meta_var('__license__', _metadata)
__author__ = _get_meta_var('__author__', _metadata)
__url__ = _get_meta_var('__url__', _metadata)
# defines current platform
__platform__ = platform.system()
Fix check statements from () which had no effect really
r3892 is_windows = __platform__ in ['Windows']
added docs to manifest, updated setup script
r1078
removed import rhodecode from setup.py
r2563 requirements = [
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "alembic >= 0.8.0, < 1.1",
Mads Kiilerich
setup: normalize casing of dependencies and formatting of constraints...
r7269 "gearbox < 1",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "waitress >= 0.8.8, < 1.2",
"WebOb >= 1.7, < 1.8", # turbogears2 2.3.12 requires WebOb<1.8.0
"backlash >= 0.1.2, < 1",
"TurboGears2 >= 2.3.10, < 3",
"tgext.routes >= 0.2.0, < 1",
Mads Kiilerich
setup: normalize casing of dependencies and formatting of constraints...
r7269 "Beaker >= 1.7.0, < 2",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "WebHelpers >= 1.3, < 1.4",
"FormEncode >= 1.2.4, < 1.4",
"SQLAlchemy >= 1.1, < 1.3",
"Mako >= 0.9.0, < 1.1",
"Pygments >= 1.5, < 2.3",
"Whoosh >= 2.5.0, < 2.8",
Mads Kiilerich
celery: clarify that celery 4 doesn't work...
r7292 "celery >= 3.1, < 4.0", # celery 4 doesn't work
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "Babel >= 0.9.6, < 2.7",
"python-dateutil >= 1.5.0, < 2.8",
"Markdown >= 2.2.1, < 2.7",
"docutils >= 0.8.1, < 0.15",
"URLObject >= 2.3.4, < 2.5",
Mads Kiilerich
setup: clarify that we require Routes less than 2.0...
r7293 "Routes >= 1.13, < 2",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "dulwich >= 0.14.1, < 0.20",
Mads Kiilerich
hg: support Mercurial 4.8
r7316 "mercurial >= 4.1.1, < 4.9",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "decorator >= 3.3.2, < 4.4",
"Paste >= 2.0.3, < 3",
Mads Kiilerich
lib: use bleach to sanitize HTML generated from markdown - fix XSS issue when repo front page shows README.md...
r7322 "bleach >= 3.0, < 3.1",
Thomas De Schampheleire
cli: initial introduction of 'kallithea-cli' command...
r7326 "Click >= 7.0, < 8",
removed import rhodecode from setup.py
r2563 ]
fixed condition for installing unittests2
r2772 if sys.version_info < (2, 7):
Mads Kiilerich
setup: normalize casing of dependencies and formatting of constraints...
r7269 requirements.append("importlib == 1.0.1")
added argparse for python version <2.7
r3230 requirements.append("argparse")
removed import rhodecode from setup.py
r2563
Sean Farley
setup: remove duplicate logic for mercurial dependency
r4820 if not is_windows:
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 requirements.append("bcrypt >= 3.1.0, < 3.2")
added check for python <2.5 in setup file
r1163
fixed setup so it'll fetch tip of vcs for easier installation of beta version
r1456 dependency_links = [
]
code cleanup
r1966 classifiers = [
Mads Kiilerich
Fixes for pypi - increment version to 0.0
r4246 'Development Status :: 4 - Beta',
code cleanup
r1966 'Environment :: Web Environment',
'Framework :: Pylons',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
Mads Kiilerich
Fixes for pypi - increment version to 0.0
r4246 'Topic :: Software Development :: Version Control',
code cleanup
r1966 ]
more docs update
r572
Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier"...
r1118
code garden...
r1792 # additional files from project that goes somewhere in the filesystem
# relative to sys.prefix
small fixes for distutils
r553 data_files = []
Bradley M. Kuhn
General renaming to Kallithea
r4212 description = ('Kallithea is a fast and powerful management tool '
Andrew Shadura
spelling: use correct Git capitalisation where appropriate
r4937 'for Mercurial and Git with a built in push/pull server, '
fixed broken syntax in setup.py
r3310 'full text search and code-review.')
Fixes some issues with keywords generation, and cleaned the code
r4005
keywords = ' '.join([
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 'kallithea', 'mercurial', 'git', 'code review',
Fixes some issues with keywords generation, and cleaned the code
r4005 'repo groups', 'ldap', 'repository management', 'hgweb replacement',
'hgwebdir', 'gitweb replacement', 'serving hgweb',
])
code garden...
r1792 # long description
Fixes some issues with keywords generation, and cleaned the code
r4005 README_FILE = 'README.rst'
small fixes for distutils
r553 try:
Mads Kiilerich
docs: drop empty Changelog in the documentation...
r6000 long_description = open(README_FILE).read()
Mads Kiilerich
cleanup: consistently use 'except ... as ...:'...
r5374 except IOError as err:
Fixes some issues with keywords generation, and cleaned the code
r4005 sys.stderr.write(
Mads Kiilerich
docs: drop empty Changelog in the documentation...
r6000 "[WARNING] Cannot find file specified as long_description (%s)\n"
% README_FILE
Fixes some issues with keywords generation, and cleaned the code
r4005 )
small fix for setup
r565 long_description = description
removed egg info, update files for distutils build...
r552
Mads Kiilerich
setup: drop ez_setup...
r5996 import setuptools
Mads Kiilerich
setup: monkey patch setuptools to make distutils set owner/group to root
r5501
# monkey patch setuptools to use distutils owner/group functionality
from setuptools.command import sdist
sdist_org = sdist.sdist
class sdist_new(sdist_org):
def initialize_options(self):
sdist_org.initialize_options(self)
self.owner = self.group = 'root'
sdist.sdist = sdist_new
Mads Kiilerich
setup: drop ez_setup...
r5996 packages = setuptools.find_packages(exclude=['ez_setup'])
Marcin Kuzminski
initial commit.
r0
Mads Kiilerich
setup: drop ez_setup...
r5996 setuptools.setup(
Bradley M. Kuhn
General renaming to Kallithea
r4212 name='Kallithea',
removed import rhodecode from setup.py
r2563 version=__version__,
small fix for setup
r565 description=description,
removed egg info, update files for distutils build...
r552 long_description=long_description,
added docs to manifest, updated setup script
r1078 keywords=keywords,
added __license__ into main of rhodecode, PEP8ify
r1205 license=__license__,
removed import rhodecode from setup.py
r2563 author=__author__,
Bradley M. Kuhn
Use Conservancy's Kallithea Committee address as author_email....
r4245 author_email='kallithea@sfconservancy.org',
fixed setup so it'll fetch tip of vcs for easier installation of beta version
r1456 dependency_links=dependency_links,
removed import rhodecode from setup.py
r2563 url=__url__,
removed egg info, update files for distutils build...
r552 install_requires=requirements,
more docs update
r572 classifiers=classifiers,
removed egg info, update files for distutils build...
r552 data_files=data_files,
small fixes for distutils
r553 packages=packages,
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 include_package_data=True,
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 message_extractors={'kallithea': [
Marcin Kuzminski
initial commit.
r0 ('**.py', 'python', None),
('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
added changes made in production branch back into beta
r1143 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
Marcin Kuzminski
initial commit.
r0 ('public/**', 'ignore', None)]},
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 zip_safe=False,
entry_points="""
created rhodecode-api binary script for working with api via cli...
r2379 [console_scripts]
Bradley M. Kuhn
Rename helper tools (and fix inconsistent naming)
r4189 kallithea-api = kallithea.bin.kallithea_api:main
kallithea-gist = kallithea.bin.kallithea_gist:main
kallithea-config = kallithea.bin.kallithea_config:main
Thomas De Schampheleire
cli: initial introduction of 'kallithea-cli' command...
r7326 kallithea-cli = kallithea.bin.kallithea_cli:cli
created rhodecode-api binary script for working with api via cli...
r2379
Marcin Kuzminski
initial commit.
r0 [paste.app_factory]
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 main = kallithea.config.middleware:make_app
Marcin Kuzminski
initial commit.
r0 """,
)