-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (31 loc) · 1000 Bytes
/
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
import setuptools
import re
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
# https://stackoverflow.com/a/7071358
VERSION = "Unknown"
VERSION_RE = r"^__version__ = ['\"]([^'\"]*)['\"]"
with open("planetterp/version.py") as f:
match = re.search(VERSION_RE, f.read())
if match:
VERSION = match.group(1)
else:
raise RuntimeError("Unable to find version string in planetterp/version.py")
setuptools.setup(
name="planetterp",
version=VERSION,
author="PlanetTerp",
author_email="admin@planetterp.com",
description="PlanetTerp API Python wrapper",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/planetterp/PlanetTerp-API-Python-Wrapper",
packages=setuptools.find_packages(),
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
"requests"
]
)