annotate setup.py @ 8984:55715fe0a8e1 stable

meta: update copyrights
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 31 Mar 2023 21:17:02 +0200
parents 11cae16e5a5d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8173
aa6f17a53b49 py3: switch to use Python 3 interpreter, temporarily leaving many things very broken until they have been migrated/fixed in a reviewable way
Mads Kiilerich <mads@kiilerich.com>
parents: 8172
diff changeset
1 #!/usr/bin/env python3
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
2 # -*- coding: utf-8 -*-
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
3 import os
7811
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
4 import platform
8728
f3fab7b124f2 imports: try to use global imports unless it is a layering violation
Mads Kiilerich <mads@kiilerich.com>
parents: 8706
diff changeset
5 import re
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
6 import sys
7811
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
7
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
8 import setuptools
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
9 # monkey patch setuptools to use distutils owner/group functionality
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
10 from setuptools.command import sdist
0a277465fddf scripts: initial run of import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7809
diff changeset
11
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
12
8173
aa6f17a53b49 py3: switch to use Python 3 interpreter, temporarily leaving many things very broken until they have been migrated/fixed in a reviewable way
Mads Kiilerich <mads@kiilerich.com>
parents: 8172
diff changeset
13 if sys.version_info < (3, 6):
aa6f17a53b49 py3: switch to use Python 3 interpreter, temporarily leaving many things very broken until they have been migrated/fixed in a reviewable way
Mads Kiilerich <mads@kiilerich.com>
parents: 8172
diff changeset
14 raise Exception('Kallithea requires Python 3.6 or later')
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
15
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
16
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
17 here = os.path.abspath(os.path.dirname(__file__))
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
18
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
19
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
20 def _get_meta_var(name, data, callback_handler=None):
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
21 matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
22 if matches:
8270
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
23 s = eval(matches.groups()[0])
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
24 if callable(callback_handler):
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
25 return callback_handler(s)
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
26 return s
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
27
8124
a553bc3a3d0e py3: open files as binary or not, depending on how we want to use them
Mads Kiilerich <mads@kiilerich.com>
parents: 8033
diff changeset
28 _meta = open(os.path.join(here, 'kallithea', '__init__.py'), 'r')
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
29 _metadata = _meta.read()
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
30 _meta.close()
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
31
8270
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
32 def callback(V):
5725fa4cfecd cleanup: minimize use of lambda expressions - we have 'def' for that purpose
Mads Kiilerich <mads@kiilerich.com>
parents: 8268
diff changeset
33 return '.'.join(map(str, V[:3])) + '.'.join(V[3:])
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
34 __version__ = _get_meta_var('VERSION', _metadata, callback)
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
35 __license__ = _get_meta_var('__license__', _metadata)
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
36 __author__ = _get_meta_var('__author__', _metadata)
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
37 __url__ = _get_meta_var('__url__', _metadata)
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
38 # defines current platform
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
39 __platform__ = platform.system()
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
40
3892
3a1cf70e0f42 Fix check statements from () which had no effect really
Marcin Kuzminski <marcin@python-works.com>
parents: 3840
diff changeset
41 is_windows = __platform__ in ['Windows']
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
42
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
43 requirements = [
8228
d122a9532630 setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8209
diff changeset
44 "alembic >= 1.0.10, < 1.5",
7929
8e0efe7b3b10 setup: set explicit minimum version for all dependencies
Mads Kiilerich <mads@kiilerich.com>
parents: 7899
diff changeset
45 "gearbox >= 0.1.0, < 1",
8228
d122a9532630 setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8209
diff changeset
46 "waitress >= 0.8.8, < 1.5",
8129
b72e8b7c33ae setup: bump WebOb minimum version to 1.8
Mads Kiilerich <mads@kiilerich.com>
parents: 8124
diff changeset
47 "WebOb >= 1.8, < 1.9",
7372
55fc0bcce916 setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents: 7371
diff changeset
48 "backlash >= 0.1.2, < 1",
8130
af1b0a59e605 setup: bump TurboGears minimum version to 2.4
Mads Kiilerich <mads@kiilerich.com>
parents: 8129
diff changeset
49 "TurboGears2 >= 2.4, < 2.5",
7372
55fc0bcce916 setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents: 7371
diff changeset
50 "tgext.routes >= 0.2.0, < 1",
8133
390b99920d02 setup: bump beaker minimum version to 1.10.1 to get py3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8132
diff changeset
51 "Beaker >= 1.10.1, < 2",
7805
b077cf7e7f90 helpers: use WebHelpers2 as much as possible - it supports Python3, and WebHelpers is dead
Mads Kiilerich <mads@kiilerich.com>
parents: 7791
diff changeset
52 "WebHelpers2 >= 2.0, < 2.1",
8912
7ef14c1fe99f setup: support FormEncode 2.0.0 for Python 3.10 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8882
diff changeset
53 "FormEncode >= 1.3.1, < 2.1",
8141
ed67d1df7125 setup: bump sqlalchemy minimum version to 1.2.9 to get rid of py3 warning
Mads Kiilerich <mads@kiilerich.com>
parents: 8140
diff changeset
54 "SQLAlchemy >= 1.2.9, < 1.4",
8228
d122a9532630 setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8209
diff changeset
55 "Mako >= 0.9.1, < 1.2",
8557
42312c8d070d setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8545
diff changeset
56 "Pygments >= 2.2.0, < 2.7",
8136
1d1f5598702d setup: bump whoosh minimum version to 2.7.1 to get py3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8135
diff changeset
57 "Whoosh >= 2.7.1, < 2.8",
8835
385d1b31f386 celery: upgrade to Celery 5.0 ... and adjust for Click API
Mads Kiilerich <mads@kiilerich.com>
parents: 8728
diff changeset
58 "celery >= 5, < 5.1",
8228
d122a9532630 setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8209
diff changeset
59 "Babel >= 1.3, < 2.9",
8134
64b76a3150da setup: bump python-dateutil minimum version to 2.1.0 to get py3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8133
diff changeset
60 "python-dateutil >= 2.1.0, < 2.9",
7742
b302d4254bd0 setup: bump some setup.py dependency versions
Mads Kiilerich <mads@kiilerich.com>
parents: 7712
diff changeset
61 "Markdown >= 2.2.1, < 3.2",
8228
d122a9532630 setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8209
diff changeset
62 "docutils >= 0.11, < 0.17",
7372
55fc0bcce916 setup: bump all upper pip dependency versions to minor updates of what currently is available and testable on pypi
Mads Kiilerich <mads@kiilerich.com>
parents: 7371
diff changeset
63 "URLObject >= 2.3.4, < 2.5",
7993
a99b7e388979 setup: upgrade to Routes > 2 - all blockers have been fixed
Mads Kiilerich <mads@kiilerich.com>
parents: 7978
diff changeset
64 "Routes >= 2.0, < 2.5",
8138
55b4e5cb4866 setup: bump dulwich minimum version to 0.19.0 to get good py3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8136
diff changeset
65 "dulwich >= 0.19.0, < 0.20",
8919
c63a982b2e6c setup: support Mercurial 6.1 for continuously improved Python 3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8917
diff changeset
66 "mercurial >= 5.2, < 6.2",
8139
b015fa0bfecb setup: bump decorator minimum version to 4.2.1 to get rid of py3 warning
Mads Kiilerich <mads@kiilerich.com>
parents: 8138
diff changeset
67 "decorator >= 4.2.1, < 4.5",
8557
42312c8d070d setup: bump version numbers to current max
Mads Kiilerich <mads@kiilerich.com>
parents: 8545
diff changeset
68 "Paste >= 2.0.3, < 3.5",
8913
7a4e2c6ec02f setup: support Bleach 4.2 for Python 3.10 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8912
diff changeset
69 "bleach >= 3.2, < 4.2",
7405
e4b9a1d1fea1 cli: initial introduction of 'kallithea-cli' command
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7404
diff changeset
70 "Click >= 7.0, < 8",
8131
f254dd2f9dcb setup: bump ipaddr minium version to 2.2.0 to get py3 support
Mads Kiilerich <mads@kiilerich.com>
parents: 8130
diff changeset
71 "ipaddr >= 2.2.0, < 2.3",
7978
7433775cc53b page: minimal change to move from webhelpers.paginate to paginate
Mads Kiilerich <mads@kiilerich.com>
parents: 7929
diff changeset
72 "paginate >= 0.5, < 0.6",
7433775cc53b page: minimal change to move from webhelpers.paginate to paginate
Mads Kiilerich <mads@kiilerich.com>
parents: 7929
diff changeset
73 "paginate_sqlalchemy >= 0.3.0, < 0.4",
8272
1e0632b6ec27 auth: also use safe password hashing on Windows using bcrypt
Mads Kiilerich <mads@kiilerich.com>
parents: 8270
diff changeset
74 "bcrypt >= 3.1.0, < 3.2",
8339
65b0d79ff293 setup: install pip in virtualenv to make sure we have the latest version
Mads Kiilerich <mads@kiilerich.com>
parents: 8307
diff changeset
75 "pip >= 20.0, < 999",
8882
81e6b5e62a2c setup: make chardet a mandatory dependency
Mads Kiilerich <mads@kiilerich.com>
parents: 8870
diff changeset
76 "chardet >= 3",
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
77 ]
8970
11cae16e5a5d setup: use old importlib_metadata version to fix kombu failing on python < 3.8
Mads Kiilerich <mads@kiilerich.com>
parents: 8919
diff changeset
78 if sys.version_info < (3, 8):
11cae16e5a5d setup: use old importlib_metadata version to fix kombu failing on python < 3.8
Mads Kiilerich <mads@kiilerich.com>
parents: 8919
diff changeset
79 requirements.append("importlib-metadata < 5")
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
80
1456
880a39e5d8df fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents: 1449
diff changeset
81 dependency_links = [
880a39e5d8df fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents: 1449
diff changeset
82 ]
880a39e5d8df fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents: 1449
diff changeset
83
1966
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
84 classifiers = [
4246
cc48c1541c7e Fixes for pypi - increment version to 0.0
Mads Kiilerich <madski@unity3d.com>
parents: 4245
diff changeset
85 'Development Status :: 4 - Beta',
1966
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
86 'Environment :: Web Environment',
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
87 'Framework :: Pylons',
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
88 'Intended Audience :: Developers',
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
89 'License :: OSI Approved :: GNU General Public License (GPL)',
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
90 'Operating System :: OS Independent',
8209
01aca0a4f876 py3: officially support Python 3
Mads Kiilerich <mads@kiilerich.com>
parents: 8173
diff changeset
91 'Programming Language :: Python :: 3.6',
01aca0a4f876 py3: officially support Python 3
Mads Kiilerich <mads@kiilerich.com>
parents: 8173
diff changeset
92 'Programming Language :: Python :: 3.7',
01aca0a4f876 py3: officially support Python 3
Mads Kiilerich <mads@kiilerich.com>
parents: 8173
diff changeset
93 'Programming Language :: Python :: 3.8',
4246
cc48c1541c7e Fixes for pypi - increment version to 0.0
Mads Kiilerich <madski@unity3d.com>
parents: 4245
diff changeset
94 'Topic :: Software Development :: Version Control',
1966
fc6063e6630b code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1964
diff changeset
95 ]
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
96
1118
b0e2c949c34b Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier"
Marcin Kuzminski <marcin@python-works.com>
parents: 1103
diff changeset
97
1792
2afa6b8c2ade code garden
Marcin Kuzminski <marcin@python-works.com>
parents: 1790
diff changeset
98 # additional files from project that goes somewhere in the filesystem
2afa6b8c2ade code garden
Marcin Kuzminski <marcin@python-works.com>
parents: 1790
diff changeset
99 # relative to sys.prefix
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
100 data_files = []
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
101
4212
24c0d584ba86 General renaming to Kallithea
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4189
diff changeset
102 description = ('Kallithea is a fast and powerful management tool '
4937
326a9336fbe5 spelling: use correct Git capitalisation where appropriate
Andrew Shadura <andrew@shadura.me>
parents: 4830
diff changeset
103 'for Mercurial and Git with a built in push/pull server, '
3310
faad9dd06b58 fixed broken syntax in setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 3305
diff changeset
104 'full text search and code-review.')
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
105
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
106 keywords = ' '.join([
4186
7e5f8c12a3fc First step in two-part process to rename directories to kallithea.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4185
diff changeset
107 'kallithea', 'mercurial', 'git', 'code review',
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
108 'repo groups', 'ldap', 'repository management', 'hgweb replacement',
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
109 'hgwebdir', 'gitweb replacement', 'serving hgweb',
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
110 ])
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
111
1792
2afa6b8c2ade code garden
Marcin Kuzminski <marcin@python-works.com>
parents: 1790
diff changeset
112 # long description
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
113 README_FILE = 'README.rst'
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
114 try:
6037
7c732f2047f8 docs: drop empty Changelog in the documentation
Mads Kiilerich <madski@unity3d.com>
parents: 6033
diff changeset
115 long_description = open(README_FILE).read()
5374
d69aa464f373 cleanup: consistently use 'except ... as ...:'
Mads Kiilerich <madski@unity3d.com>
parents: 5357
diff changeset
116 except IOError as err:
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
117 sys.stderr.write(
8238
27c4ad3e584f cleanup: trivial fixes for some pyflakes warnings
Mads Kiilerich <mads@kiilerich.com>
parents: 8228
diff changeset
118 "[WARNING] Cannot find file specified as long_description (%s): %s\n"
27c4ad3e584f cleanup: trivial fixes for some pyflakes warnings
Mads Kiilerich <mads@kiilerich.com>
parents: 8228
diff changeset
119 % (README_FILE, err)
4005
266a3cbc0302 Fixes some issues with keywords generation, and cleaned the code
Marcin Kuzminski <marcin@python-works.com>
parents: 3960
diff changeset
120 )
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
121 long_description = description
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
122
5501
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
123
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
124 sdist_org = sdist.sdist
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
125 class sdist_new(sdist_org):
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
126 def initialize_options(self):
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
127 sdist_org.initialize_options(self)
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
128 self.owner = self.group = 'root'
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
129 sdist.sdist = sdist_new
c79e4f89bfd3 setup: monkey patch setuptools to make distutils set owner/group to root
Mads Kiilerich <madski@unity3d.com>
parents: 5461
diff changeset
130
6033
a922e91a4f02 setup: drop ez_setup
Mads Kiilerich <madski@unity3d.com>
parents: 6032
diff changeset
131 packages = setuptools.find_packages(exclude=['ez_setup'])
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
132
6033
a922e91a4f02 setup: drop ez_setup
Mads Kiilerich <madski@unity3d.com>
parents: 6032
diff changeset
133 setuptools.setup(
4212
24c0d584ba86 General renaming to Kallithea
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4189
diff changeset
134 name='Kallithea',
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
135 version=__version__,
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
136 description=description,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
137 long_description=long_description,
1078
2d7a94f3eaae added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 1069
diff changeset
138 keywords=keywords,
1205
f4807acf643d added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents: 1204
diff changeset
139 license=__license__,
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
140 author=__author__,
4245
3315e9263a53 Use Conservancy's Kallithea Committee address as author_email.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4212
diff changeset
141 author_email='kallithea@sfconservancy.org',
1456
880a39e5d8df fixed setup so it'll fetch tip of vcs for easier installation of beta version
Marcin Kuzminski <marcin@python-works.com>
parents: 1449
diff changeset
142 dependency_links=dependency_links,
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2379
diff changeset
143 url=__url__,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
144 install_requires=requirements,
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
145 classifiers=classifiers,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
146 data_files=data_files,
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
147 packages=packages,
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
148 include_package_data=True,
4186
7e5f8c12a3fc First step in two-part process to rename directories to kallithea.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4185
diff changeset
149 message_extractors={'kallithea': [
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
150 ('**.py', 'python', None),
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
151 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
1143
0e6035a85980 added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents: 1118
diff changeset
152 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
153 ('public/**', 'ignore', None)]},
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
154 zip_safe=False,
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
155 entry_points="""
2379
7ac09514a178 created rhodecode-api binary script for working with api via cli
Marcin Kuzminski <marcin@python-works.com>
parents: 2289
diff changeset
156 [console_scripts]
4189
9793473d74be Rename helper tools (and fix inconsistent naming)
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4186
diff changeset
157 kallithea-api = kallithea.bin.kallithea_api:main
9793473d74be Rename helper tools (and fix inconsistent naming)
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4186
diff changeset
158 kallithea-gist = kallithea.bin.kallithea_gist:main
7405
e4b9a1d1fea1 cli: initial introduction of 'kallithea-cli' command
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7404
diff changeset
159 kallithea-cli = kallithea.bin.kallithea_cli:cli
2379
7ac09514a178 created rhodecode-api binary script for working with api via cli
Marcin Kuzminski <marcin@python-works.com>
parents: 2289
diff changeset
160
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
161 [paste.app_factory]
8545
3a02b678b5e7 tg: move make_app to kallithea/config/application.py per TG 2.4 convention
Mads Kiilerich <mads@kiilerich.com>
parents: 8437
diff changeset
162 main = kallithea.config.application:make_app
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
163 """,
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
164 )