diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-05-11 15:35:37 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2013-08-14 19:10:07 -0300 |
commit | 4332bff3f500f062e7e06edccf0da5a9d9379d79 (patch) | |
tree | ac5c161dbc21a6a4be76059dcb471593f3d779b8 /setup.py | |
parent | 8a8499805b8b8fddd0caa88ed8a2fafb98795fff (diff) | |
download | swift-4332bff3f500f062e7e06edccf0da5a9d9379d79.tar.gz |
Migrate to pbr for build
pbr is the libification of what was openstack.common.setup. If provides
the build information in a delcarative form, instead of as executable python
code, which works around the chicken and egg problem of needing setup
libraries present to run setup, but needing to run setup to tell if you
need setup libraries.
One of the features that comes along with this is versioning based on
git tags. If the current revision is a signed git tag, then that is the
version of the package. If it is not, the version is equal to the most
recent git tag, plus a commit count, plus a git sha (similar to git
describe, but scrubbed for python version rules compliance)
pbr updates are also part of the upcoming automation around ensuring
global requirements stay in sync.
Closes-Bug: #1179007
Change-Id: Ia473960be7e8aa44f09d48cea72ed3c8845f82fa
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 110 |
1 files changed, 7 insertions, 103 deletions
@@ -1,5 +1,5 @@ -#!/usr/bin/python -# Copyright (c) 2010-2012 OpenStack, LLC. +#!/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. @@ -14,105 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from setuptools import setup, find_packages +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import setuptools -from swift import __canonical_version__ as version - - -name = 'swift' - - -with open('requirements.txt', 'r') as f: - requires = [x.strip() for x in f if x.strip()] - - -setup( - name=name, - version=version, - description='Swift', - license='Apache License (2.0)', - author='OpenStack, LLC.', - author_email='openstack-admins@lists.launchpad.net', - url='https://launchpad.net/swift', - packages=find_packages(exclude=['test', 'bin']), - test_suite='nose.collector', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Environment :: No Input/Output (Daemon)', - 'Environment :: OpenStack', - ], - install_requires=requires, - scripts=[ - 'bin/swift-account-audit', - 'bin/swift-account-auditor', - 'bin/swift-account-reaper', - 'bin/swift-account-replicator', - 'bin/swift-account-server', - 'bin/swift-bench', - 'bin/swift-bench-client', - 'bin/swift-config', - 'bin/swift-container-auditor', - 'bin/swift-container-replicator', - 'bin/swift-container-server', - 'bin/swift-container-sync', - 'bin/swift-container-updater', - 'bin/swift-dispersion-populate', - 'bin/swift-dispersion-report', - 'bin/swift-drive-audit', - 'bin/swift-form-signature', - 'bin/swift-get-nodes', - 'bin/swift-init', - 'bin/swift-object-auditor', - 'bin/swift-object-expirer', - 'bin/swift-object-info', - 'bin/swift-object-replicator', - 'bin/swift-object-server', - 'bin/swift-object-updater', - 'bin/swift-oldies', - 'bin/swift-orphans', - 'bin/swift-proxy-server', - 'bin/swift-recon', - 'bin/swift-recon-cron', - 'bin/swift-ring-builder', - 'bin/swift-temp-url', - ], - entry_points={ - 'paste.app_factory': [ - 'proxy=swift.proxy.server:app_factory', - 'object=swift.obj.server:app_factory', - 'container=swift.container.server:app_factory', - 'account=swift.account.server:app_factory', - ], - 'paste.filter_factory': [ - 'healthcheck=swift.common.middleware.healthcheck:filter_factory', - 'crossdomain=swift.common.middleware.crossdomain:filter_factory', - 'memcache=swift.common.middleware.memcache:filter_factory', - 'ratelimit=swift.common.middleware.ratelimit:filter_factory', - 'cname_lookup=swift.common.middleware.cname_lookup:filter_factory', - 'catch_errors=swift.common.middleware.catch_errors:filter_factory', - 'domain_remap=swift.common.middleware.domain_remap:filter_factory', - 'staticweb=swift.common.middleware.staticweb:filter_factory', - 'tempauth=swift.common.middleware.tempauth:filter_factory', - 'keystoneauth=swift.common.middleware.keystoneauth:filter_factory', - 'recon=swift.common.middleware.recon:filter_factory', - 'tempurl=swift.common.middleware.tempurl:filter_factory', - 'formpost=swift.common.middleware.formpost:filter_factory', - 'name_check=swift.common.middleware.name_check:filter_factory', - 'bulk=swift.common.middleware.bulk:filter_factory', - 'container_quotas=swift.common.middleware.container_quotas:' - 'filter_factory', - 'account_quotas=swift.common.middleware.account_quotas:' - 'filter_factory', - 'proxy_logging=swift.common.middleware.proxy_logging:' - 'filter_factory', - 'slo=swift.common.middleware.slo:filter_factory', - 'list_endpoints=swift.common.middleware.list_endpoints:' - 'filter_factory', - ], - }, -) +setuptools.setup( + setup_requires=['pbr>=0.5.21,<1.0'], + pbr=True) |