Skip to content

Commit

Permalink
Switch to pbr
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information
jd committed Aug 11, 2016
1 parent d5aa9a3 commit 0ec10fa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 58 deletions.
30 changes: 30 additions & 0 deletions setup.cfg
@@ -0,0 +1,30 @@
[metadata]
name = tenacity
url = https://github.com/jd/tenacity
summary = Retry code until it succeeeds
description-file =
README.rst
author = Julien Danjou
author-email = julien@danjou.info
home-page = https://github.com/jd/tenacity
classifier =
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Topic :: Utilities

[global]
setup-hooks =
pbr.hooks.setup_hook

[files]
packages = tenacity

[wheel]
universal = 1
77 changes: 19 additions & 58 deletions setup.py
@@ -1,59 +1,20 @@
#!/usr/bin/env python

import os
import sys

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

settings = dict()

# Publish Helper.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()

CLASSIFIERS = [
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet',
'Topic :: Utilities',
]

with open('README.rst') as file_readme:
readme = file_readme.read()

with open('HISTORY.rst') as file_history:
history = file_history.read()

with open('requirements.txt') as file_requirements:
requirements = file_requirements.read().splitlines()

settings.update(
name='tenacity',
version='1.3.4-dev',
description='Tenacity',
long_description=readme + '\n\n' + history,
author='Julien Danjou',
license='Apache 2.0',
url='https://github.com/jd/tenacity',
classifiers=CLASSIFIERS,
keywords="decorator decorators retry retrying "
"tenacity exception exponential backoff",
py_modules=['tenacity'],
test_suite="test_tenacity",
install_requires=requirements,
)


setup(**settings)
#
# 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
#
# 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.
# See the License for the specific language governing permissions and
# limitations under the License.

import setuptools

setuptools.setup(
setup_requires=['pbr'],
pbr=True)

0 comments on commit 0ec10fa

Please sign in to comment.