Skip to content

Commit

Permalink
Updated python package requirements for support of Python 3.7, 3.8 an…
Browse files Browse the repository at this point in the history
…d 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 <[email protected]>
  • Loading branch information
juliettejames and Juliette James authored Oct 7, 2021
1 parent beab13f commit 7f193b5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

Expand All @@ -19,28 +19,29 @@ 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).

## conda

[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
Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -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
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
]
)

0 comments on commit 7f193b5

Please sign in to comment.