Modernize to curent build standards
Migrate to pbr, flake8 and hacking. Clean up hacking warnings. Rename
requirements files. Remove cruft from tox.ini.
Change-Id: Ide78ad47de7f275240f729a2bc02745063b084ac
Reviewed-on: https://review.openstack.org/31439
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
diff --git a/setup.py b/setup.py
index cb35457..59a0090 100644
--- a/setup.py
+++ b/setup.py
@@ -1,70 +1,21 @@
-# Copyright (c) 2012 Hewlett-Packard Development Company, L.P.
+#!/usr/bin/env python
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
import setuptools
-
-from jeepyb.openstack.common import setup
-from jeepyb.version import version_info as version
-
-requires = setup.parse_requirements()
-tests_require = setup.parse_requirements(['tools/test-requires'])
-depend_links = setup.parse_dependency_links()
-
-
-def read_file(file_name):
- return open(os.path.join(os.path.dirname(__file__), file_name)).read()
-
-
setuptools.setup(
- name="jeepyb",
- version=version.canonical_version_string(always=True),
- author='Hewlett-Packard Development Company, L.P.',
- author_email='openstack@lists.launchpad.net',
- description="Tools for managing gerrit projects and external sources.",
- license="Apache License, Version 2.0",
- url="https://github.com/openstack-ci/jeepyb",
- packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
- include_package_data=True,
- setup_requires=['setuptools_git>=0.4'],
- cmdclass=setup.get_cmdclass(),
- install_requires=requires,
- dependency_links=depend_links,
- tests_require=tests_require,
- test_suite="nose.collector",
- classifiers=[
- "Environment :: Console",
- "Intended Audience :: Developers",
- "Intended Audience :: Information Technology",
- "License :: OSI Approved :: Apache Software License",
- "Operating System :: OS Independent",
- "Programming Language :: Python"
- ],
- entry_points={
- 'console_scripts': [
- 'close-pull-requests=jeepyb.cmd.close_pull_requests:main',
- 'expire-old-reviews=jeepyb.cmd.expire_old_reviews:main',
- 'fetch-remotes=jeepyb.cmd.fetch_remotes:main',
- 'manage-projects=jeepyb.cmd.manage_projects:main',
- 'notify-impact=jeepyb.cmd.notify_impact:main',
- 'openstackwatch=jeepyb.cmd.openstackwatch:main',
- 'process-cache=jeepyb.cmd.process_cache:main',
- 'run-mirror=jeepyb.cmd.run_mirror:main',
- 'trivial-rebase=jeepyb.cmd.trivial_rebase:main',
- 'update-blueprint=jeepyb.cmd.update_blueprint:main',
- 'update-bug=jeepyb.cmd.update_bug:main',
- ],
- }
-)
+ setup_requires=['d2to1', 'pbr'],
+ d2to1=True)