forked from fastmonkeys/python-verkkomaksut
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
58 lines (47 loc) · 1.43 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
"""
checkout
============
Python wrapper for the Checkout Finland API.
Links
-----
* `documentation <http://packages.python.org/checkout>`_
* `development version
<http://github.com/tuomasb/python-checkout/zipball/master#egg=checkout-dev>`_
"""
import os
import re
from setuptools import setup
HERE = os.path.dirname(os.path.abspath(__file__))
def get_version():
filename = os.path.join(HERE, 'checkout', '__init__.py')
contents = open(filename).read()
pattern = r"^__version__ = '(.*?)'$"
return re.search(pattern, contents, re.MULTILINE).group(1)
setup(
name='checkout',
version=get_version(),
description='Python wrapper for the Checkout Finland API.',
long_description=(
open('README.rst').read() + '\n' +
open('CHANGES.rst').read()
),
author='Tuomas Blomqvist, Janne Vanhala',
author_email='[email protected], [email protected]',
url='http://github.com/tuomasb/python-checkout',
packages=['checkout'],
include_package_data=True,
license='BSD',
zip_safe=False,
platforms='any',
install_requires=[
'requests',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)