-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
51 lines (42 loc) · 1.26 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found")
read_md = lambda f: open(f, 'r').read()
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python3 setup.py sdist upload')
sys.exit()
readme = read_md('README.md')
setup(
name='bottle_errorsrest',
version='0.0.3',
description='ErrorsRest plugin for bottle',
long_description=readme,
author='Alberto Galera Jimenez',
author_email='[email protected]',
url='https://github.com/agalera/bottle-errorsrest',
py_modules=['bottle_errorsrest'],
include_package_data=True,
install_requires=['bottle'],
license="GPL",
zip_safe=False,
keywords='bottle_errorsrest',
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Programming Language :: Python :: 3'
],
entry_points={}
)