Merge branch 'develop' into convert-to-pytest

This commit is contained in:
Janne Sinivirta 2017-10-01 16:14:50 +03:00
commit 463123adc5
7 changed files with 29 additions and 18 deletions

View File

@ -1,17 +1,20 @@
FROM python:3.6.2 FROM python:3.6.2
RUN pip install numpy
RUN apt-get update RUN apt-get update
RUN apt-get -y install build-essential RUN apt-get -y install build-essential
# Install TA-lib
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
RUN tar zxvf ta-lib-0.4.0-src.tar.gz RUN tar zxvf ta-lib-0.4.0-src.tar.gz
RUN cd ta-lib && ./configure && make && make install RUN cd ta-lib && ./configure && make && make install
ENV LD_LIBRARY_PATH /usr/local/lib ENV LD_LIBRARY_PATH /usr/local/lib
RUN mkdir -p /freqtrade # Prepare environment
RUN mkdir /freqtrade
COPY . /freqtrade/
WORKDIR /freqtrade WORKDIR /freqtrade
ADD ./requirements.txt /freqtrade/requirements.txt # Install dependencies and execute
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ADD . /freqtrade RUN pip install -e .
CMD python main.py CMD ["freqtrade"]

View File

@ -1,3 +1,6 @@
include LICENSE include LICENSE
include README.md include README.md
include config.json.example include config.json.example
include freqtrade/rpc/*.py
include freqtrade/tests/*.py
include freqtrade/tests/testdata/*.json

View File

@ -65,7 +65,8 @@ $ cp config.json.example config.json
$ python -m venv .env $ python -m venv .env
$ source .env/bin/activate $ source .env/bin/activate
$ pip install -r requirements.txt $ pip install -r requirements.txt
$ ./main.py $ pip install -e .
$ ./freqtrade/main.py
``` ```
There is also an [article](https://www.sales4k.com/blockchain/high-frequency-trading-bot-tutorial/) about how to setup the bot (thanks [@gurghet](https://github.com/gurghet)). There is also an [article](https://www.sales4k.com/blockchain/high-frequency-trading-bot-tutorial/) about how to setup the bot (thanks [@gurghet](https://github.com/gurghet)).
@ -73,7 +74,7 @@ There is also an [article](https://www.sales4k.com/blockchain/high-frequency-tra
#### Execute tests #### Execute tests
``` ```
$ python -m unittest $ python setup.py test
``` ```
#### Docker #### Docker

0
bin/freqtrade Normal file → Executable file
View File

View File

@ -9,6 +9,7 @@ pandas==0.20.3
scikit-learn==0.19.0 scikit-learn==0.19.0
scipy==0.19.1 scipy==0.19.1
jsonschema==2.6.0 jsonschema==2.6.0
numpy==1.13.3
TA-Lib==0.4.10 TA-Lib==0.4.10
pytest==3.2.2 pytest==3.2.2
pytest-mock==1.6.3 pytest-mock==1.6.3

3
setup.cfg Normal file
View File

@ -0,0 +1,3 @@
[aliases]
test=pytest