-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (70 loc) · 1.89 KB
/
Copy pathsetup.py
File metadata and controls
86 lines (70 loc) · 1.89 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"""
Pontus
------
Flask utility for signing Amazon S3 POST requests and validating Amazon S3
files.
"""
import os
import re
import subprocess
from setuptools import Command, setup
with open('README.rst', 'r') as fh:
long_description = fh.read()
def get_version():
filename = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'pontus',
'__init__.py'
)
contents = open(filename).read()
pattern = r"^__version__ = '(.*?)'$"
return re.search(pattern, contents, re.MULTILINE).group(1)
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test'])
raise SystemExit(errno)
extras_require = {
'test': [
'flexmock>=0.9.7',
'freezegun>=0.1.18',
'py>=1.4.20',
'pytest>=2.5.2',
'moto[s3]>=4,<5',
]
}
setup(
name='Pontus',
version=get_version(),
url='https://github.com/fastmonkeys/pontus',
author='Vesa Uimonen',
author_email='vesa@fastmonkeys.com',
description='Flask utility for Amazon S3.',
long_description=long_description,
long_description_content_type='text/x-rst',
license='MIT',
packages=['pontus'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask>=0.10.1',
'python-magic>=0.4.6',
'boto3>=1.4.7'
],
extras_require=extras_require,
cmdclass={'test': PyTest},
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'
]
)