Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 1 | # 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 | |
| 15 | import os |
| 16 | import setuptools |
| 17 | |
| 18 | |
| 19 | from gerritx.openstack.common import setup |
| 20 | from gerritx.version import version_info as version |
| 21 | |
| 22 | requires = setup.parse_requirements() |
| 23 | tests_require = setup.parse_requirements(['tools/test-requires']) |
| 24 | depend_links = setup.parse_dependency_links() |
| 25 | |
| 26 | |
| 27 | def read_file(file_name): |
| 28 | return open(os.path.join(os.path.dirname(__file__), file_name)).read() |
| 29 | |
| 30 | |
| 31 | setuptools.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 Taylor | a140e1a | 2012-11-22 10:00:22 -0800 | [diff] [blame^] | 62 | 'process-cache=gerritx.cmd.process_cache:main', |
Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 63 | 'run-mirror=gerritx.cmd.run_mirror:main', |
| 64 | 'update-blueprint=gerritx.cmd.update_blueprint:main', |
| 65 | 'update-bug=gerritx.cmd.update_bug:main', |
| 66 | ], |
| 67 | } |
| 68 | ) |