From 7f193b5c1be4eef253f30e2c6d2a871d3bb33280 Mon Sep 17 00:00:00 2001 From: juliettejames Date: Thu, 7 Oct 2021 11:25:28 +0100 Subject: [PATCH] Updated python package requirements for support of Python 3.7, 3.8 and 3.9.. (#372) * Updated python package requirements for support of Python 3.7, 3.8 and 3.9. * updated python package dependencies * updated version number Co-authored-by: Juliette James --- README.md | 15 ++++++++------- requirements/base.txt | 8 ++++---- setup.py | 11 +++++------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 95b36b5c..5ba359fd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ | Development | Details | | ------------- | ------------- | | Test Status | [![Build Status](https://img.shields.io/travis/mhallsmoore/qstrader?label=TravisCI&style=flat-square)](https://travis-ci.org/mhallsmoore/qstrader) [![Coverage Status](https://img.shields.io/coveralls/github/mhallsmoore/qstrader?style=flat-square&label=Coverage)](https://coveralls.io/github/mhallsmoore/qstrader?branch=master) | -| Version Info | [![PyPI](https://img.shields.io/pypi/v/qstrader?style=flat-square&label=PyPI&color=blue)](https://pypi.org/project/qstrader) [![PyPI Downloads](https://img.shields.io/pypi/dm/qstrader?style=flat-square&label=PyPI%20Downloads)](https://pypi.org/project/qstrader) ![conda-forge](https://img.shields.io/conda/vn/conda-forge/qstrader) ![conda-forge Downloads](https://img.shields.io/conda/dn/conda-forge/qstrader?label=conda-forge%20Downloads) | +| Version Info | [![PyPI](https://img.shields.io/pypi/v/qstrader?style=flat-square&label=PyPI&color=blue)](https://pypi.org/project/qstrader) [![PyPI Downloads](https://img.shields.io/pypi/dm/qstrader?style=flat-square&label=PyPI%20Downloads)](https://pypi.org/project/qstrader) | | Compatibility | [![Python Version](https://img.shields.io/pypi/pyversions/qstrader?style=flat-square&label=Python%20Versions)](https://pypi.org/project/qstrader) | | License | ![GitHub](https://img.shields.io/github/license/mhallsmoore/qstrader?style=flat-square&label=License) | @@ -19,11 +19,11 @@ The software is currently under active development and is provided under a permi Please note that the previous version of QSTrader, which is utilised through the **Advanced Algorithmic Trading** ebook, can be found along with the appropriate installation instructions [here](https://github.com/mhallsmoore/qstrader/tree/advanced-algorithmic-trading). -It has recently been updated to support Python 3.5, 3.6 and 3.7 with up to date package dependencies. +It has recently been updated to support Python 3.7, 3.8 and 3.9 with up to date package dependencies. # Installation -Installation requires a Python3 environment. The simplest approach is to download a self-contained scientific Python distribution such as the [Anaconda Individual Edition](https://www.anaconda.com/products/individual#Downloads). You can then install QSTrader into an isolated [virtual environment](https://docs.python.org/3/tutorial/venv.html#virtual-environments-and-packages) using either conda or pip, as shown below. +Installation requires a Python3 environment. The simplest approach is to download a self-contained scientific Python distribution such as the [Anaconda Individual Edition](https://www.anaconda.com/products/individual#Downloads). You can then install QSTrader into an isolated [virtual environment](https://docs.python.org/3/tutorial/venv.html#virtual-environments-and-packages) using pip as shown below. Any issues with installation should be reported to the development team as issues [here](https://github.com/mhallsmoore/qstrader/issues). @@ -31,16 +31,17 @@ Any issues with installation should be reported to the development team as issue [conda](https://docs.conda.io/projects/conda/en/latest/) is a command-line tool that comes with the Anaconda distribution. It allows you to manage virtual environments as well as packages _using the same tool_. -The following command will create a brand new environment called `backtest` and install QSTrader along with its dependencies, all in one go. +The following command will create a brand new environment called `backtest`. ``` -conda create -n backtest -c conda-forge qstrader +conda create -n backtest ``` -In order to start using QSTrader, you need to activate this new environment. +In order to start using QSTrader, you need to activate this new environment and install QSTrader using pip. ``` conda activate backtest +pip install qstrader ``` ## pip @@ -55,7 +56,7 @@ pip install qstrader # Full Documentation -Comprehensive documentation for QSTrader can be found on QuantStart.com at [https://www.quantstart.com/qstrader/](https://www.quantstart.com/qstrader/). +Comprehensive documentation and beginner tutorials for QSTrader can be found on QuantStart.com at [https://www.quantstart.com/qstrader/](https://www.quantstart.com/qstrader/). # Quickstart diff --git a/requirements/base.txt b/requirements/base.txt index f3da57d7..6e55d6cd 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,5 +1,5 @@ Click>=7.0 -matplotlib>=3.0.3,!=3.3.3 -numpy>=1.17.1 -pandas>=1.1.5 -seaborn>=0.9.0 +matplotlib==3.4.3 +numpy==1.21.2 +pandas==1.3.3 +seaborn==0.11.2 diff --git a/setup.py b/setup.py index d6e77622..aebadd59 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="qstrader", - version="0.2.2", + version="0.2.3", description="QSTrader backtesting simulation engine", long_description=long_description, long_description_content_type="text/markdown", @@ -17,7 +17,6 @@ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", @@ -26,9 +25,9 @@ include_package_data=True, install_requires=[ "Click==7.1.2", - "matplotlib==3.0.3", - "numpy==1.18.4", - "pandas==1.1.5", - "seaborn==0.10.1" + "matplotlib>=3.3.4", + "numpy>=1.18.4", + "pandas>=1.3.3", + "seaborn>=0.10.1" ] )