Skip to content

Commit

Permalink
Unified pipfile packages and added custom scripts (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilcardella committed Jan 18, 2020
1 parent 741fc40 commit 2c1acf6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ python:

install:
- export PIPENV_IGNORE_VIRTUALENVS=1
- pipenv install --dev
- pipenv install

script:
- pipenv run pytest
- pipenv run sphinx-build -b dummy doc doc/_build/html
- pipenv run test
- pipenv run docs
- python setup.py install
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## []
### Changed
- Updated Pipfile unifying packages and adding custom scripts

## [2.1.1] - 2020-01-13
### Changed
- Removed unused resource files
Expand Down
9 changes: 6 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
[packages]
sphinx-rtd-theme = "*"
requests-mock = "*"
pytest = "*"
docutils = "*"
m2r = "*"
Sphinx = "*"

[packages]
alpha_vantage = "*"
pygtail = "*"

[requires]
python_version = "3"

[scripts]
test = "pytest"
docs = "sphinx-build -b html doc doc/_build/html"

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ sudo -H pip3 install -U pipenv
Create the virtual environment
```
cd /path/to/repository
pipenv install --dev
pipenv install
```

### Test

You can run the test from the workspace with:
```
pipenv run pytest
pipenv run test
```

### Documentation
Expand All @@ -115,7 +115,7 @@ https://tradingmate.readthedocs.io

You can build it locally from the repo root folder:
```
pipenv run sphinx-build -nWT -b html doc doc/_build/html
pipenv run docs
```

The generated html files will be under `doc/_build/html`.
Expand Down
6 changes: 3 additions & 3 deletions dev-requirements.txt → requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-i https://pypi.org/simple
alabaster==0.7.12
atomicwrites==1.3.0
alpha-vantage==2.1.3
attrs==19.3.0
babel==2.8.0
certifi==2019.11.28
chardet==3.0.4
docutils==0.16
idna==2.8
imagesize==1.2.0
importlib-metadata==1.4.0
importlib-metadata==1.4.0 ; python_version < '3.8'
jinja2==2.10.3
m2r==0.2.1
markupsafe==1.1.1
Expand All @@ -18,6 +18,7 @@ packaging==20.0
pluggy==0.13.1
py==1.8.1
pygments==2.5.2
pygtail==0.11.1
pyparsing==2.4.6
pytest==5.3.3
pytz==2019.3
Expand All @@ -36,4 +37,3 @@ sphinxcontrib-serializinghtml==1.1.3
urllib3==1.25.7
wcwidth==0.1.8
zipp==1.0.0
pygtail==0.11.1

0 comments on commit 2c1acf6

Please sign in to comment.