-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
119 lines (91 loc) · 4.15 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# -*- coding: utf-8 -*-
# Author: Timur Gilmullin
# Build with Travis CI
from setuptools import setup
import os
__version__ = "1.4"
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("PriceGenerator build version = {}".format(__version__))
setup(
name="pricegenerator",
version=__version__,
description="PriceGenerator is the platform for generating prices similar to real stock prices, but you can control the statistics of their distribution. Generates chain of candlesticks with predefined statistical parameters, return Pandas DataFrame or saving as .CSV-file with OHLCV-candlestick in every string. Use PriceGenerator to generate synthetic data to test your trading strategy.",
long_description="See full documentation with examples: https://github.com/Tim55667757/PriceGenerator/blob/master/README.md\n\nPriceGenerator module documentation: https://tim55667757.github.io/PriceGenerator/docs/pricegenerator/PriceGenerator.html\n\nПодробная документация на русском с примерами: https://github.com/Tim55667757/PriceGenerator/blob/master/README_RU.md\n\nДокументация на модуль PriceGenerator: https://tim55667757.github.io/PriceGenerator/docs/pricegenerator/PriceGenerator.html",
license="Apache-2.0",
author="Timur Gilmullin",
author_email="[email protected]",
url="https://github.com/Tim55667757/PriceGenerator/",
download_url="https://github.com/Tim55667757/PriceGenerator.git",
entry_points={"console_scripts": ["pricegenerator = pricegenerator.PriceGenerator:Main"]},
classifiers=[
"Development Status :: {}".format(devStatus),
"Environment :: Console",
"Intended Audience :: Financial and Insurance Industry",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
], # classifiers are from here: https://pypi.org/classifiers/
keywords=[
"history",
"csv",
"stock",
"forex",
"prices",
"candlesticks",
"parser",
"generator",
"statistics",
"testing",
"testdata",
"OHLCV",
"generator",
],
tests_require=[
"pytest >= 6.2.2",
"requests >= 2.25.1", # Apache-2.0 license
"pandas >= 1.5.2",
"bokeh >= 3.0.3", # BSD-3-Clause license
"bkcharts >= 0.2", # New BSD License
"numpy >= 1.23.5", # BSD-3-Clause license
"matplotlib >= 3.3.4", # PSF license
"python-dateutil >= 2.8.1", # Apache-2.0 license
"jinja2 >= 2.11.3", # BSD-3-Clause license
"pandas_ta >= 0.2.45b0", # MIT License
"notebook >= 6.5.2", # BSD License
],
install_requires=[
"requests >= 2.25.1", # Apache-2.0 license
"pandas >= 1.5.2", # MIT License
"bokeh >= 3.0.3", # BSD-3-Clause license
"bkcharts >= 0.2", # New BSD License
"numpy >= 1.23.5", # BSD-3-Clause license
"matplotlib >= 3.3.4", # PSF license
"python-dateutil >= 2.8.1", # Apache-2.0 license
"jinja2 >= 2.11.3", # BSD-3-Clause license
"pandas_ta >= 0.2.45b0", # MIT License
"notebook >= 6.5.2", # BSD License
],
packages=[
"pricegenerator",
],
package_data={
"pricegenerator": [
"*.j2",
],
},
include_package_data=True,
zip_safe=True,
)