First stab at packaging

This commit is contained in:
Jarret Raim 2013-05-30 09:42:04 -05:00
parent 55679a2129
commit 2fd122f15d
4 changed files with 41 additions and 12 deletions

4
MANIFEST.in Normal file
View File

@ -0,0 +1,4 @@
include README.md
include LICENSE
include tox.ini
recursive-include tools *

View File

@ -26,15 +26,24 @@ def read(fname):
setuptools.setup(
name=name,
version="0.1",
version="0.1dev",
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='OpenStack, LLC.',
author_email='openstack-admins@lists.launchpad.net',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
install_requires=['eventlet', 'requests', 'python-keystoneclient'],
packages=setuptools.find_packages(exclude=['tests', 'tests.*', 'examples', 'examples.*']),
install_requires=[
'eventlet>=0.12.1',
'httplib2>=0.7.7',
'argparse>=1.2.1',
'python-keystoneclient>=0.2.3',
'iso8601>=0.1.4'
],
test_suite='nose.collector',
tests_require=['nose'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
@ -46,4 +55,4 @@ setuptools.setup(
'Programming Language :: Python :: 2.7',
'Environment :: No Input/Output (Daemon)',
]
)
)

View File

@ -1,8 +1,20 @@
distribute>=0.6.24
# Install bounded pep8/pyflakes first, then let flake8 install
pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.3,<0.6
coverage
discover
mox
mock>=1.0.1
sphinx>=1.1.2
nose>=1.2.1
nosexcover>=1.0.7
openstack.nose_plugin>=0.11
pep8==1.1
sphinx>=1.1.2
unittest2>=0.5.1
testtools
mock>=1.0.1
tox

12
tox.ini
View File

@ -16,16 +16,20 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*egg .
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = nosetests --with-coverage --cover-package=marconiclient
[tox:jenkins]
downloadcache = ~/cache/pip
downloadcache = ~/cache/pip
[flake8]
ignore = F,H
show-source = True
exclude = .venv,.tox,dist,doc,*egg