-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
58 lines (54 loc) · 1.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
r"""
File required to relese on PyPI. More info here:
https://packaging.python.org/distributing/#packaging-your-project
To push a new release, assuming running on Windows:
1. Increment the `VERSION` below appropriately.
2. Delete old distributions:
del dist
3. Build the `source` and `wheel` distributions with:
python setup.py sdist bdist_wheel
4. Update the registered package on PyPI with `twine`:
twine register dist\swagger_conformance-<VERSION>-py3-none-any.whl
5. Upload the new packages:
twine upload dist\*
"""
from setuptools import find_packages, setup
try:
import pypandoc
except ImportError:
pypandoc = None
VERSION = '0.2.5'
URL = 'https://github.com/olipratt/swagger-conformance'
SHORT_DESC = ("Tool for testing whether your API conforms to its swagger "
"specification")
if pypandoc is not None:
LONG_DESC = pypandoc.convert('readme.md', 'rst').replace('\r\n', '\n')
else:
LONG_DESC = SHORT_DESC
setup(
name='swagger-conformance',
packages=find_packages(exclude=['examples', 'docs', 'tests']),
install_requires=['hypothesis>=3.4.2',
'pyswagger>=0.8.38',
'requests>=2.13.0'],
version=VERSION,
description=SHORT_DESC,
long_description=LONG_DESC,
author='Oli Pratt',
author_email='[email protected]',
url=URL,
download_url='{}/archive/{}.tar.gz'.format(URL, VERSION),
keywords=['swagger', 'testing', 'OpenAPI', 'hypothesis'],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Testing',
],
)