##// END OF EJS Templates
setup: support Mercurial 5.9 for continuously improved Python 3 support
setup: support Mercurial 5.9 for continuously improved Python 3 support

File last commit:

r8703:01759556 stable
r8703:01759556 stable
Show More
setup.py
162 lines | 4.6 KiB | text/x-python | PythonLexer
Mads Kiilerich
py3: switch to use Python 3 interpreter, temporarily leaving many things very broken until they have been migrated/fixed in a reviewable way...
r8053 #!/usr/bin/env python3
Fixes some issues with keywords generation, and cleaned the code
r4005 # -*- coding: utf-8 -*-
removed import rhodecode from setup.py
r2563 import os
Mads Kiilerich
scripts: initial run of import cleanup using isort
r7718 import platform
Mads Kiilerich
imports: try to use global imports unless it is a layering violation...
r8495 import re
small fixes for distutils
r553 import sys
Mads Kiilerich
scripts: initial run of import cleanup using isort
r7718
import setuptools
# monkey patch setuptools to use distutils owner/group functionality
from setuptools.command import sdist
removed import rhodecode from setup.py
r2563
Mads Kiilerich
py3: switch to use Python 3 interpreter, temporarily leaving many things very broken until they have been migrated/fixed in a reviewable way...
r8053 if sys.version_info < (3, 6):
raise Exception('Kallithea requires Python 3.6 or later')
removed import rhodecode from setup.py
r2563
here = os.path.abspath(os.path.dirname(__file__))
def _get_meta_var(name, data, callback_handler=None):
matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
if matches:
Mads Kiilerich
cleanup: minimize use of lambda expressions - we have 'def' for that purpose...
r8139 s = eval(matches.groups()[0])
if callable(callback_handler):
return callback_handler(s)
return s
removed import rhodecode from setup.py
r2563
Mads Kiilerich
py3: open files as binary or not, depending on how we want to use them...
r7991 _meta = open(os.path.join(here, 'kallithea', '__init__.py'), 'r')
removed import rhodecode from setup.py
r2563 _metadata = _meta.read()
_meta.close()
Mads Kiilerich
cleanup: minimize use of lambda expressions - we have 'def' for that purpose...
r8139 def callback(V):
return '.'.join(map(str, V[:3])) + '.'.join(V[3:])
removed import rhodecode from setup.py
r2563 __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 version numbers to current max...
r8097 "alembic >= 1.0.10, < 1.5",
Mads Kiilerich
setup: set explicit minimum version for all dependencies...
r7816 "gearbox >= 0.1.0, < 1",
Mads Kiilerich
setup: bump version numbers to current max...
r8097 "waitress >= 0.8.8, < 1.5",
Mads Kiilerich
setup: bump WebOb minimum version to 1.8...
r7996 "WebOb >= 1.8, < 1.9",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "backlash >= 0.1.2, < 1",
Mads Kiilerich
setup: bump TurboGears minimum version to 2.4...
r7997 "TurboGears2 >= 2.4, < 2.5",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "tgext.routes >= 0.2.0, < 1",
Mads Kiilerich
setup: bump beaker minimum version to 1.10.1 to get py3 support...
r8000 "Beaker >= 1.10.1, < 2",
Mads Kiilerich
helpers: use WebHelpers2 as much as possible - it supports Python3, and WebHelpers is dead...
r7712 "WebHelpers2 >= 2.0, < 2.1",
Mads Kiilerich
setup: support FormEncode 2.0.0 for Python 3.10 support...
r8698 "FormEncode >= 1.3.1, < 2.1",
Mads Kiilerich
setup: bump sqlalchemy minimum version to 1.2.9 to get rid of py3 warning...
r8008 "SQLAlchemy >= 1.2.9, < 1.4",
Mads Kiilerich
setup: bump version numbers to current max...
r8097 "Mako >= 0.9.1, < 1.2",
Mads Kiilerich
setup: bump version numbers to current max...
r8299 "Pygments >= 2.2.0, < 2.7",
Mads Kiilerich
setup: bump whoosh minimum version to 2.7.1 to get py3 support...
r8003 "Whoosh >= 2.7.1, < 2.8",
Mads Kiilerich
celery: upgrade to Celery 5.0 ... and adjust for Click API...
r8619 "celery >= 5, < 5.1",
Mads Kiilerich
setup: bump version numbers to current max...
r8097 "Babel >= 1.3, < 2.9",
Mads Kiilerich
setup: bump python-dateutil minimum version to 2.1.0 to get py3 support...
r8001 "python-dateutil >= 2.1.0, < 2.9",
Mads Kiilerich
setup: bump some setup.py dependency versions...
r7648 "Markdown >= 2.2.1, < 3.2",
Mads Kiilerich
setup: bump version numbers to current max...
r8097 "docutils >= 0.11, < 0.17",
Mads Kiilerich
setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi...
r7294 "URLObject >= 2.3.4, < 2.5",
Mads Kiilerich
setup: upgrade to Routes > 2 - all blockers have been fixed
r7873 "Routes >= 2.0, < 2.5",
Mads Kiilerich
setup: bump dulwich minimum version to 0.19.0 to get good py3 support...
r8005 "dulwich >= 0.19.0, < 0.20",
Mads Kiilerich
setup: support Mercurial 5.9 for continuously improved Python 3 support
r8703 "mercurial >= 5.2, < 5.10",
Mads Kiilerich
setup: bump decorator minimum version to 4.2.1 to get rid of py3 warning...
r8006 "decorator >= 4.2.1, < 4.5",
Mads Kiilerich
setup: bump version numbers to current max...
r8299 "Paste >= 2.0.3, < 3.5",
Mads Kiilerich
setup: support Bleach 4.2 for Python 3.10 support...
r8699 "bleach >= 3.2, < 4.2",
Thomas De Schampheleire
cli: initial introduction of 'kallithea-cli' command...
r7326 "Click >= 7.0, < 8",
Mads Kiilerich
setup: bump ipaddr minium version to 2.2.0 to get py3 support...
r7998 "ipaddr >= 2.2.0, < 2.3",
Mads Kiilerich
page: minimal change to move from webhelpers.paginate to paginate...
r7858 "paginate >= 0.5, < 0.6",
"paginate_sqlalchemy >= 0.3.0, < 0.4",
Mads Kiilerich
auth: also use safe password hashing on Windows using bcrypt...
r8141 "bcrypt >= 3.1.0, < 3.2",
Mads Kiilerich
setup: install pip in virtualenv to make sure we have the latest version...
r8208 "pip >= 20.0, < 999",
Mads Kiilerich
setup: make chardet a mandatory dependency...
r8675 "chardet >= 3",
removed import rhodecode from setup.py
r2563 ]
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',
Mads Kiilerich
py3: officially support Python 3...
r8089 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
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
cleanup: trivial fixes for some pyflakes warnings
r8107 "[WARNING] Cannot find file specified as long_description (%s): %s\n"
% (README_FILE, err)
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: monkey patch setuptools to make distutils set owner/group to root
r5501
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
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]
Mads Kiilerich
tg: move make_app to kallithea/config/application.py per TG 2.4 convention
r8287 main = kallithea.config.application:make_app
Marcin Kuzminski
initial commit.
r0 """,
)