| 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 |  | 
| Monty Taylor | 674a648 | 2012-11-28 09:39:39 -0800 | [diff] [blame^] | 19 | from jeepyb.openstack.common import setup | 
|  | 20 | from jeepyb.version import version_info as version | 
| Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 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( | 
| Monty Taylor | 674a648 | 2012-11-28 09:39:39 -0800 | [diff] [blame^] | 32 | name="jeepyb", | 
| Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 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", | 
| Monty Taylor | 674a648 | 2012-11-28 09:39:39 -0800 | [diff] [blame^] | 38 | url="https://github.com/openstack-ci/jeepyb", | 
| Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 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': [ | 
| Monty Taylor | 674a648 | 2012-11-28 09:39:39 -0800 | [diff] [blame^] | 57 | 'close-pull-requests=jeepyb.cmd.close_pull_requests:main', | 
|  | 58 | 'expire-old-reviews=jeepyb.cmd.expire_old_reviews:main', | 
|  | 59 | 'fetch-remotes=jeepyb.cmd.fetch_remotes:main', | 
|  | 60 | 'manage-projects=jeepyb.cmd.manage_projects:main', | 
|  | 61 | 'notify-impact=jeepyb.cmd.notify_impact:main', | 
|  | 62 | 'process-cache=jeepyb.cmd.process_cache:main', | 
|  | 63 | 'run-mirror=jeepyb.cmd.run_mirror:main', | 
|  | 64 | 'trivial-rebase=jeepyb.cmd.trivial_rebase:main', | 
|  | 65 | 'update-blueprint=jeepyb.cmd.update_blueprint:main', | 
|  | 66 | 'update-bug=jeepyb.cmd.update_bug:main', | 
| Monty Taylor | da3bada | 2012-11-22 09:38:22 -0800 | [diff] [blame] | 67 | ], | 
|  | 68 | } | 
|  | 69 | ) |