Skip to content

Commit

Permalink
Merge pull request #277 from enekomartinmartinez/update_req
Browse files Browse the repository at this point in the history
Update requirements
  • Loading branch information
enekomartinmartinez authored Jul 2, 2021
2 parents d90abbc + 83a4762 commit 1227a9f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ install:
- pip install cython
- pip install --upgrade pip setuptools wheel
- pip install -e .
- pip install progressbar
- pip install pytest pytest-cov
- pip install coveralls
# command to run tests
Expand Down
12 changes: 9 additions & 3 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ PySD calls on the core Python data analytics stack, and a third party parsing li
* Numpy
* Scipy
* Pandas
* Matplotlib
* Parsimonious
* xarray
* xlrd
* lxml
* regex
* chardet
* black
* openpyxl
* progressbar

These modules should build automatically if you are installing via `pip`. If you are building from
the source code, or if pip fails to load them, they can be loaded with the same `pip` syntax as
Expand All @@ -50,9 +55,10 @@ above.

Optional Dependencies
---------------------
In order to be able to print the progress of a model integration process:
In order to plot results from the model as shown in :doc:`basic usage <../basic_usage>`:

* Matplotlib

* progressbar

These Python libraries bring additional data analytics capabilities to the analysis of SD models:

Expand Down
2 changes: 1 addition & 1 deletion pysd/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.5.0"
__version__ = "1.6.0"
4 changes: 1 addition & 3 deletions pysd/py_backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import warnings
import keyword
import regex as re
import progressbar

import xarray as xr

Expand Down Expand Up @@ -717,9 +718,6 @@ def __init__(self, maxval=None):

self.counter = 0

# this way we made the package optional
import progressbar

self.bar = progressbar.ProgressBar(
maxval=self.maxval,
widgets=[
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pandas
parsimonious
xarray
xlrd
lxml
xlrd==1.2.0
xlwt
regex
chardet
black
openpyxl
scipy
progressbar

0 comments on commit 1227a9f

Please sign in to comment.