-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
50 lines (42 loc) · 1.61 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
from setuptools import setup
with open("gcloud_requests/__init__.py", "r") as f:
version_marker = "__version__ = "
for line in f:
if line.startswith(version_marker):
_, version = line.split(version_marker)
version = version.strip().strip('"')
break
else:
raise RuntimeError("Version marker not found.")
def parse_dependencies(filename):
with open(filename) as reqs:
for line in reqs:
if line.startswith("#"):
continue
yield line.strip()
dependencies = list(parse_dependencies("requirements.txt"))
setup(
name="gcloud_requests",
description="Thread-safe client functionality for gcloud-python via requests.",
long_description="""For documentation and usage examples, see the project on GitHub_.
.. _GitHub: https://github.com/leadpages/gcloud_requests""",
version=version,
url="https://github.com/leadpages/gcloud_requests",
author="Leadpages",
author_email="[email protected]",
license="MIT",
packages=["gcloud_requests"],
install_requires=dependencies,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
)