PriceGenerator

Форк
0
/
setup.py 
119 строк · 4.1 Кб
1
# -*- coding: utf-8 -*-
2
# Author: Timur Gilmullin
3

4
# Build with Travis CI
5

6

7
from setuptools import setup
8
import os
9

10
__version__ = "1.4"
11

12
devStatus = "4 - Beta"
13

14
if "TRAVIS_BUILD_NUMBER" in os.environ and "TRAVIS_BRANCH" in os.environ:
15
    print("This is TRAVIS-CI build")
16
    print("TRAVIS_BUILD_NUMBER = {}".format(os.environ["TRAVIS_BUILD_NUMBER"]))
17
    print("TRAVIS_BRANCH = {}".format(os.environ["TRAVIS_BRANCH"]))
18

19
    __version__ += ".{}{}".format(
20
        "" if "release" in os.environ["TRAVIS_BRANCH"] or os.environ["TRAVIS_BRANCH"] == "master" else "dev",
21
        os.environ["TRAVIS_BUILD_NUMBER"],
22
    )
23

24
    devStatus = "5 - Production/Stable" if "release" in os.environ["TRAVIS_BRANCH"] or os.environ["TRAVIS_BRANCH"] == "master" else devStatus
25

26
else:
27
    print("This is local build")
28
    __version__ += ".dev0"  # set version as major.minor.localbuild if local build: python setup.py install
29

30
print("PriceGenerator build version = {}".format(__version__))
31

32
setup(
33
    name="pricegenerator",
34

35
    version=__version__,
36

37
    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.",
38

39
    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",
40

41
    license="Apache-2.0",
42

43
    author="Timur Gilmullin",
44

45
    author_email="tim55667757@gmail.com",
46

47
    url="https://github.com/Tim55667757/PriceGenerator/",
48

49
    download_url="https://github.com/Tim55667757/PriceGenerator.git",
50

51
    entry_points={"console_scripts": ["pricegenerator = pricegenerator.PriceGenerator:Main"]},
52

53
    classifiers=[
54
        "Development Status :: {}".format(devStatus),
55
        "Environment :: Console",
56
        "Intended Audience :: Financial and Insurance Industry",
57
        "Topic :: Utilities",
58
        "License :: OSI Approved :: Apache Software License",
59
        "Natural Language :: English",
60
        "Programming Language :: Python :: 3",
61
    ],  # classifiers are from here: https://pypi.org/classifiers/
62

63
    keywords=[
64
        "history",
65
        "csv",
66
        "stock",
67
        "forex",
68
        "prices",
69
        "candlesticks",
70
        "parser",
71
        "generator",
72
        "statistics",
73
        "testing",
74
        "testdata",
75
        "OHLCV",
76
        "generator",
77
    ],
78

79
    tests_require=[
80
        "pytest >= 6.2.2",
81
        "requests >= 2.25.1",  # Apache-2.0 license
82
        "pandas >= 1.5.2",
83
        "bokeh >= 3.0.3",  # BSD-3-Clause license
84
        "bkcharts >= 0.2",  # New BSD License
85
        "numpy >= 1.23.5",  # BSD-3-Clause license
86
        "matplotlib >= 3.3.4",  # PSF license
87
        "python-dateutil >= 2.8.1",  # Apache-2.0 license
88
        "jinja2 >= 2.11.3",  # BSD-3-Clause license
89
        "pandas_ta >= 0.2.45b0",  # MIT License
90
        "notebook >= 6.5.2",  # BSD License
91
    ],
92

93
    install_requires=[
94
        "requests >= 2.25.1",  # Apache-2.0 license
95
        "pandas >= 1.5.2",  # MIT License
96
        "bokeh >= 3.0.3",  # BSD-3-Clause license
97
        "bkcharts >= 0.2",  # New BSD License
98
        "numpy >= 1.23.5",  # BSD-3-Clause license
99
        "matplotlib >= 3.3.4",  # PSF license
100
        "python-dateutil >= 2.8.1",  # Apache-2.0 license
101
        "jinja2 >= 2.11.3",  # BSD-3-Clause license
102
        "pandas_ta >= 0.2.45b0",  # MIT License
103
        "notebook >= 6.5.2",  # BSD License
104
    ],
105

106
    packages=[
107
        "pricegenerator",
108
    ],
109

110
    package_data={
111
        "pricegenerator": [
112
            "*.j2",
113
        ],
114
    },
115

116
    include_package_data=True,
117

118
    zip_safe=True,
119
)
120

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.