-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
43 lines (38 loc) · 1.39 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 os.path
import pathlib
import subprocess
import setuptools
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# get module version from git tag
client_version = subprocess.run(['git', 'describe', '--tags'],
stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
# The text of the README file
README = (HERE / "README.md").read_text()
# assert "." in alphavantage_api_client_version
# assert os.path.isfile("alphavantage_api_client/version.py")
# with open("alphavantage_api_client/VERSION","w", encoding="utf-8") as fh:
# fh.write(f'{alphavantage_api_client_version}\n')
# This call to setup() does all the work
setup(
name="alphavantage_api_client",
version=client_version,
description="Interact with Alpha Vantage REST API",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/xrgarcia/alphavantage-api-client",
author="Slashbin, LLC",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
packages=setuptools.find_packages(),
py_modules=["alphavantage_api_client"],
include_package_data=True,
install_requires=["requests","pydantic"],
python_requires=">=3.9"
)