Skip to content

Commit 1e98b66

Browse files
committed
- Added pyqt5 + pyqt-distutils + click-datetime via pip (non existent in PyPi) to solve xeroc#17
- Added 'package' make target to build executables
1 parent e11d7d1 commit 1e98b66

File tree

6 files changed

+26
-21
lines changed

6 files changed

+26
-21
lines changed

.travis.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ matrix:
88
language: generic
99
before_install:
1010
- python --version
11-
- brew install python3
12-
- alias python=python3
13-
- python --version
11+
- brew upgrade python
1412
install:
15-
- python --version
16-
- pip install click-datetime PyQt5 pyinstaller
17-
- python setup.py install
13+
- make install
1814
script:
1915
- echo "@TODO - Running tests..."
2016
- pyinstaller --distpath dist/$TRAVIS_OS_NAME app.spec

Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ clean-pyc:
1212
find . -name '*.pyc' -exec rm -f {} +
1313
find . -name '*.pyo' -exec rm -f {} +
1414
find . -name '*~' -exec rm -f {} +
15+
pip:
16+
pip install -r requirements.txt
1517

1618
lint:
1719
flake8 dexbot/
1820

19-
build:
21+
build: pip
2022
python3 setup.py build
2123

2224
install: build
@@ -29,10 +31,14 @@ git:
2931
git push --all
3032
git push --tags
3133

32-
check:
34+
check: pip
3335
python3 setup.py check
3436

35-
dist:
37+
package: build
38+
pyinstaller app.spec
39+
pyinstaller cli.spec
40+
41+
dist: pip
3642
python3 setup.py sdist upload -r pypi
3743
python3 setup.py bdist_wheel upload
3844

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ Trading Bot for the BitShares Decentralized Exchange
66
## Build status
77

88
master:
9-
[![Build Status](https://travis-ci.org/svdev/DEXBot.svg?branch=master)](https://travis-ci.org/svdev/DEXBot)
9+
[![Build Status](https://travis-ci.org/Codaone/DEXBot.svg?branch=master)](https://travis-ci.org/Codaone/DEXBot)
1010

11-
develop:
12-
[![Build Status](https://travis-ci.org/svdev/DEXBot.svg?branch=develop)](https://travis-ci.org/svdev/DEXBot)
1311

1412
**Warning**: This is highly experimental code! Use at your OWN risk!
1513

1614
## Installation
1715

18-
git clone https://github.com/codaone/dexbot
19-
cd dexbot
20-
python3 setup.py install
21-
# or
22-
python3 setup.py install --user
16+
Python 3.4+ + pip are required.
17+
18+
$ git clone https://github.com/codaone/dexbot
19+
$ cd dexbot
20+
$ make install
21+
22+
or
23+
24+
$ make install-user
2325

2426
## Configuration
2527

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ configuration: Release
2020
install:
2121
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
2222
- "python --version"
23-
- "pip install pyinstaller click-datetime PyQt5"
23+
- "pip install pyinstaller click-datetime PyQt5 pyqt-distutils"
2424
- "python setup.py install"
2525

2626
after_test:

requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pyqt5==5.10
2+
pyqt-distutils==0.7.3
3+
click-datetime==0.2
4+
pyinstaller==3.3.1

setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ def run(self):
5252
"bitshares==0.1.11.beta",
5353
"uptick>=0.1.4",
5454
"click",
55-
"click-datetime",
5655
"sqlalchemy",
5756
"appdirs",
58-
"pyqt5",
59-
'pyqt-distutils',
6057
"ruamel.yaml"
6158
],
6259
dependency_links=[

0 commit comments

Comments
 (0)