-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
58 lines (47 loc) · 1.44 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
"""
verkkomaksut
============
Python wrapper for the JSON API of Suomen Verkkomaksut.
Links
-----
* `documentation <http://packages.python.org/verkkomaksut>`_
* `development version
<http://github.com/fastmonkeys/python-verkkomaksut/zipball/master#egg=verkkomaksut-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, 'verkkomaksut', '__init__.py')
contents = open(filename).read()
pattern = r"^__version__ = '(.*?)'$"
return re.search(pattern, contents, re.MULTILINE).group(1)
setup(
name='verkkomaksut',
version=get_version(),
description='Python wrapper for the JSON API of Suomen Verkkomaksut.',
long_description=(
open('README.rst').read() + '\n' +
open('CHANGES.rst').read()
),
author='Janne Vanhala',
author_email='[email protected]',
url='http://github.com/fastmonkeys/python-verkkomaksut',
packages=['verkkomaksut'],
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'
]
)