-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from JamesPHoughton/dev
General improvements
- Loading branch information
Showing
30 changed files
with
1,973 additions
and
2,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.0.0" | ||
__version__ = "3.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ | |
author_email='[email protected]', | ||
packages=find_packages(exclude=['docs', 'tests', 'dist', 'build']), | ||
url='https://github.com/JamesPHoughton/pysd', | ||
license='LICENSE.txt', | ||
license='LICENSE', | ||
description='System Dynamics Modeling in Python', | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
keywords=['System Dynamics', 'Vensim', 'XMILE'], | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Development Status :: 4 - Beta', | ||
'License :: OSI Approved :: MIT License', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
|
@@ -26,6 +26,7 @@ | |
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
], | ||
install_requires=open('requirements.txt').read().strip().split('\n'), | ||
package_data={ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,48 @@ | ||
Tests use [unittest](https://docs.python.org/3/library/unittest.html), [pytest](https://docs.pytest.org/en/stable/), [pytest-cov](https://pytest-cov.readthedocs.io/en/latest/) and [pytest-xdist](https://docs.pytest.org/en/2.1.0/xdist.html). | ||
Test suite | ||
========== | ||
|
||
Preparing the test suite | ||
------------------------ | ||
|
||
In order to run the test: | ||
|
||
1. Clone the repo with the --recursive flag (if not done yet). | ||
2. Potentially create or enter a virtual environment. | ||
3. Install test dependencies using *pip install -r tests/requirements.txt* or *conda install --file tests/requirements.txt*. | ||
|
||
Running the test suite | ||
---------------------- | ||
|
||
To run tests: | ||
``` | ||
|
||
```shell | ||
make tests | ||
``` | ||
|
||
To have coverage information: | ||
``` | ||
|
||
```shell | ||
make cover | ||
``` | ||
|
||
To have information of visit lines in HTML files in `htmlcov` folder: | ||
``` | ||
|
||
```shell | ||
make coverhtml | ||
``` | ||
|
||
To run in multiple CPUs (e.g: for 4 CPUs): | ||
``` | ||
|
||
```shell | ||
make command NUM_PROC=4 | ||
``` | ||
|
||
where `command` is any of above. | ||
|
||
You can also run the test using `pytest`: | ||
|
||
```shell | ||
python -m pytest test/ | ||
``` | ||
|
||
for running individual test, filtering warnings or some other configurations check [pytest documentation](https://docs.pytest.org). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[pytest] | ||
python_files = unit_test_*.py pytest_*/**/*.py pytest_*/*.py | ||
python_files = pytest_*/**/*.py pytest_*/*.py | ||
filterwarnings = | ||
error | ||
ignore:Creating an ndarray from ragged nested sequences |
Oops, something went wrong.