-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (36 loc) · 1.16 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
import re
import setuptools
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open("getnet/__init__.py", "r") as f:
text = f.read()
match = re.search(version_regex, text)
if match:
VERSION = match.group(1)
else:
raise RuntimeError("No version number found!")
print("Version: {}".format(VERSION))
APP_NAME = "getnet-python"
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=APP_NAME,
version=VERSION,
description="A Getnet SDK",
long_description=long_description,
long_description_content_type="text/markdown",
author="Fabio Vitor",
author_email="[email protected]",
url="https://github.com/FVitor7/getnet-python",
packages=setuptools.find_packages(),
python_requires=">=3.6",
install_requires=["requests>=2.0.0", "requests-oauthlib>=1.2.0", "python-dateutil==2.8.1"],
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
zip_safe=False,
)