-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathsetup.py
93 lines (84 loc) · 2.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
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
87
88
89
90
91
92
93
import os.path
import re
from setuptools import find_packages, setup
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_long_description():
return open(os.path.join(ROOT_DIR, "README.md"), encoding="utf-8").read()
def get_version():
"""Read the version from a file (mollie/api/version.py) in the repository.
We can't import here since we might import from an installed version.
"""
version_file = open(os.path.join(ROOT_DIR, "mollie", "api", "version.py"), encoding="utf=8")
contents = version_file.read()
match = re.search(r'VERSION = [\'"]([^\'"]+)', contents)
if match:
return match.group(1)
else:
raise RuntimeError("Can't determine package version")
setup(
name="mollie-api-python",
version=get_version(),
license="BSD",
long_description=get_long_description(),
long_description_content_type="text/markdown",
packages=find_packages(include=["mollie", "mollie.*"]),
include_package_data=True,
package_data={
"mollie": ["py.typed"],
},
description="Mollie API client for Python",
author="Mollie B.V.",
author_email="[email protected]",
maintainer="Four Digits B.V.",
maintainer_email="[email protected]",
keywords=[
"mollie",
"payment",
"service",
"ideal",
"creditcard",
"mistercash",
"bancontact",
"sofort",
"sofortbanking",
"sepa",
"paypal",
"paysafecard",
"podiumcadeaukaart",
"banktransfer",
"direct debit",
"belfius",
"belfius direct net",
"kbc",
"cbc",
"refunds",
"payments",
"gateway",
"gift cards",
"intersolve",
"fashioncheque",
"podium cadeaukaart",
"yourgift",
"vvv giftcard",
"webshop giftcard",
"nationale entertainment card",
"klarna pay later",
"klarna pay now",
"klarna slice it",
"przelewy24",
],
url="https://github.com/mollie/mollie-api-python",
install_requires=[
"requests",
"urllib3",
"requests_oauthlib",
],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Office/Business :: Financial",
],
)