-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup.py
32 lines (28 loc) · 1019 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
import setuptools
with open("requirements.txt", "r") as f:
requirements = [line.replace("\n", "") for line in f.readlines()]
with open("README.md", "r") as fh:
long_description = fh.read()
with open("gdeltdoc/_version.py", "r") as g:
version = "1.0.0"
for line in g.readlines():
if "version" in line:
version = line.split("=")[1].replace("\n", "").replace('"', "").replace(" ", "")
setuptools.setup(
name="gdeltdoc",
version=version,
author="Alex Smith",
author_email="alex@alexsmith.dev",
description="A client for the GDELT 2.0 Doc API",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/alex9smith/gdelt-doc-api",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=requirements,
)