-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·55 lines (47 loc) · 1.34 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
#!/usr/bin/env python
"""
Bottle-SSLify
------------
Simple Bottle extension to redirect all incoming requests for an app to HTTPS.
"""
from setuptools import setup, find_packages
import re
# gather the package information
main_py = open('bottle_sslify.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py))
# convert the readme to pypi compatible rst
try:
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except ImportError:
readme = open('README.md').read()
except:
print 'something went wrong reading the README.md file.'
readme = ''
setup(
name='Bottle-SSLify',
version=metadata['version'],
url='https://github.com/ali01/bottle-sslify',
license='MIT License',
author=metadata['author'],
author_email=metadata['email'],
description='Force SSL on any Bottle app.',
long_description=readme,
py_modules=['bottle_sslify'],
include_package_data=True,
platforms='any',
install_requires=[
'bottle==0.10.11',
'nose==1.2.1',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)