blob: f5f709bfbe84f884c2b587a709b918681d0860ff [file] [log] [blame]
Monty Taylorda3bada2012-11-22 09:38:22 -08001# Copyright (c) 2012 Hewlett-Packard Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import os
16import setuptools
17
18
19from gerritx.openstack.common import setup
20from gerritx.version import version_info as version
21
22requires = setup.parse_requirements()
23tests_require = setup.parse_requirements(['tools/test-requires'])
24depend_links = setup.parse_dependency_links()
25
26
27def read_file(file_name):
28 return open(os.path.join(os.path.dirname(__file__), file_name)).read()
29
30
31setuptools.setup(
32 name="gerritx",
33 version=version.canonical_version_string(always=True),
34 author='Hewlett-Packard Development Company, L.P.',
35 author_email='openstack@lists.launchpad.net',
36 description="Tools for managing gerrit projects and external sources.",
37 license="Apache License, Version 2.0",
38 url="https://github.com/openstack-ci/gerritx",
39 packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
40 include_package_data=True,
41 setup_requires=['setuptools_git>=0.4'],
42 cmdclass=setup.get_cmdclass(),
43 install_requires=requires,
44 dependency_links=depend_links,
45 tests_require=tests_require,
46 test_suite="nose.collector",
47 classifiers=[
48 "Environment :: Console",
49 "Intended Audience :: Developers",
50 "Intended Audience :: Information Technology",
51 "License :: OSI Approved :: Apache Software License",
52 "Operating System :: OS Independent",
53 "Programming Language :: Python"
54 ],
55 entry_points={
56 'console_scripts': [
57 'close-pull-requests=gerritx.cmd.close_pull_requests:main',
58 'expire-old-reviews=gerritx.cmd.expire_old_reviews:main',
59 'fetch-remotes=gerritx.cmd.fetch_remotes:main',
60 'manage-projects=gerritx.cmd.manage_projects:main',
61 'notify-impact=gerritx.cmd.notify_impact:main',
Monty Taylora140e1a2012-11-22 10:00:22 -080062 'process-cache=gerritx.cmd.process_cache:main',
Monty Taylorda3bada2012-11-22 09:38:22 -080063 'run-mirror=gerritx.cmd.run_mirror:main',
Jeremy Stanleya2b0de62012-11-22 10:31:13 -080064 'trivial-rebase=gerritx.cmd.trivial_rebase:main',
Monty Taylorda3bada2012-11-22 09:38:22 -080065 'update-blueprint=gerritx.cmd.update_blueprint:main',
66 'update-bug=gerritx.cmd.update_bug:main',
67 ],
68 }
69)