PriceGenerator
/
setup.py
119 строк · 4.1 Кб
1# -*- coding: utf-8 -*-
2# Author: Timur Gilmullin
3
4# Build with Travis CI
5
6
7from setuptools import setup8import os9
10__version__ = "1.4"11
12devStatus = "4 - Beta"13
14if "TRAVIS_BUILD_NUMBER" in os.environ and "TRAVIS_BRANCH" in os.environ:15print("This is TRAVIS-CI build")16print("TRAVIS_BUILD_NUMBER = {}".format(os.environ["TRAVIS_BUILD_NUMBER"]))17print("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",21os.environ["TRAVIS_BUILD_NUMBER"],22)23
24devStatus = "5 - Production/Stable" if "release" in os.environ["TRAVIS_BRANCH"] or os.environ["TRAVIS_BRANCH"] == "master" else devStatus25
26else:27print("This is local build")28__version__ += ".dev0" # set version as major.minor.localbuild if local build: python setup.py install29
30print("PriceGenerator build version = {}".format(__version__))31
32setup(33name="pricegenerator",34
35version=__version__,36
37description="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
39long_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
41license="Apache-2.0",42
43author="Timur Gilmullin",44
45author_email="tim55667757@gmail.com",46
47url="https://github.com/Tim55667757/PriceGenerator/",48
49download_url="https://github.com/Tim55667757/PriceGenerator.git",50
51entry_points={"console_scripts": ["pricegenerator = pricegenerator.PriceGenerator:Main"]},52
53classifiers=[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
63keywords=[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
79tests_require=[80"pytest >= 6.2.2",81"requests >= 2.25.1", # Apache-2.0 license82"pandas >= 1.5.2",83"bokeh >= 3.0.3", # BSD-3-Clause license84"bkcharts >= 0.2", # New BSD License85"numpy >= 1.23.5", # BSD-3-Clause license86"matplotlib >= 3.3.4", # PSF license87"python-dateutil >= 2.8.1", # Apache-2.0 license88"jinja2 >= 2.11.3", # BSD-3-Clause license89"pandas_ta >= 0.2.45b0", # MIT License90"notebook >= 6.5.2", # BSD License91],92
93install_requires=[94"requests >= 2.25.1", # Apache-2.0 license95"pandas >= 1.5.2", # MIT License96"bokeh >= 3.0.3", # BSD-3-Clause license97"bkcharts >= 0.2", # New BSD License98"numpy >= 1.23.5", # BSD-3-Clause license99"matplotlib >= 3.3.4", # PSF license100"python-dateutil >= 2.8.1", # Apache-2.0 license101"jinja2 >= 2.11.3", # BSD-3-Clause license102"pandas_ta >= 0.2.45b0", # MIT License103"notebook >= 6.5.2", # BSD License104],105
106packages=[107"pricegenerator",108],109
110package_data={111"pricegenerator": [112"*.j2",113],114},115
116include_package_data=True,117
118zip_safe=True,119)
120