diff options
author | Donald Stufft <donald@stufft.io> | 2014-01-03 11:23:38 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-01-03 11:42:56 -0500 |
commit | a66681bf4d4e74103e941dd265886df2e79817f9 (patch) | |
tree | 52c47d58b1828efe686d911028fdeaf718907ec1 /setup.py | |
parent | 7964073cc7a0a27e07d34dfe95b467e12fc50348 (diff) | |
download | python-barbicanclient-a66681bf4d4e74103e941dd265886df2e79817f9.tar.gz |
Migrate to pbr
Change-Id: Id914183a5098e2fdc3f325fc83ecc5161886733d
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 61 |
1 files changed, 3 insertions, 58 deletions
@@ -15,65 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools - -name = 'python-barbicanclient' - - -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() - -def get_version(): - PKG = "barbicanclient" - VERSIONFILE = os.path.join(PKG, "version.py") - version = "unknown" - try: - version_file = open(VERSIONFILE, "r") - for line in version_file: - if '__version__' in line: - version = line.split("'")[1] - break - except EnvironmentError: - pass # Okay, there is no version file. - return version - setuptools.setup( - name=name, - version=get_version(), - description='Client Library for OpenStack Barbican Key Management API', - long_description=read('README.md'), - keywords="openstack encryption key-management secret", - url='https://github.com/cloudkeep/barbican', - license='Apache License (2.0)', - author='Rackspace, Inc.', - author_email='openstack-dev@lists.openstack.org', - packages=setuptools.find_packages( - exclude=['tests', 'tests.*', 'examples', 'examples.*'] - ), - install_requires=[ - 'argparse>=1.2.1', - 'eventlet>=0.13.0', - 'requests>=1.2.3', - 'python-keystoneclient>=0.3.2', - ], - test_suite='nose.collector', - tests_require=['nose'], - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: OpenStack', - 'Intended Audience :: Developers', - 'Intended Audience :: Information Technology', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2.7', - 'Environment :: No Input/Output (Daemon)', - ], - entry_points={ - "console_scripts": [ - "barbican = barbicanclient.barbican:main", - ], - }, + setup_requires=['pbr'], + pbr=True, ) |