-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
93 lines (67 loc) · 2.46 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-
# Author: Timur Gilmullin
# Build with Travis CI
from setuptools import setup
import os
__version__ = "1.1"
devStatus = "4 - Beta"
if "TRAVIS_BUILD_NUMBER" in os.environ and "TRAVIS_BRANCH" in os.environ:
print("This is TRAVIS-CI build")
print("TRAVIS_BUILD_NUMBER = {}".format(os.environ["TRAVIS_BUILD_NUMBER"]))
print("TRAVIS_BRANCH = {}".format(os.environ["TRAVIS_BRANCH"]))
__version__ += ".{}{}".format(
"" if "release" in os.environ["TRAVIS_BRANCH"] or os.environ["TRAVIS_BRANCH"] == "master" else "dev",
os.environ["TRAVIS_BUILD_NUMBER"],
)
devStatus = "5 - Production/Stable" if "release" in os.environ["TRAVIS_BRANCH"] or os.environ["TRAVIS_BRANCH"] == "master" else devStatus
else:
print("This is local build")
__version__ += ".dev0" # set version as major.minor.localbuild if local build: python setup.py install
print("AVStockParser build version = {}".format(__version__))
setup(
name="avstockparser",
version=__version__,
description="Get time series with stock history data in .json-format from www.alphavantage.co and convert into pandas dataframe or .csv file with OHLCV-candlestick in every strings. Also you can draw an interactive chart.",
long_description="GitHub Pages: https://tim55667757.github.io/AVStockParser",
license="MIT",
author="Timur Gilmullin",
author_email="[email protected]",
url="https://github.com/Tim55667757/AVStockParser/",
download_url="https://github.com/Tim55667757/AVStockParser.git",
entry_points={"console_scripts": ["avstockparser = avstockparser.AVStockParser:Main"]},
classifiers=[
"Development Status :: {}".format(devStatus),
"Environment :: Console",
"Intended Audience :: Financial and Insurance Industry",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
],
keywords=[
"broker",
"history",
"csv",
"stock",
"trade",
"candlestick",
"chart",
"parser",
"alphavantage",
],
tests_require=[
"pytest>=6.2.2",
"requests>=2.25.1",
"pandas>=1.2.2",
"pricegenerator>=1.2.46",
],
install_requires=[
"requests>=2.25.1",
"pandas>=1.2.2",
"pricegenerator>=1.2.46",
],
packages=[
"avstockparser",
],
zip_safe=True,
)