-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* travis and optimal sets and reps * removed the most complicated stuff * removed repellent generator * added tests, decorator-based API * added first notebook example * jupyter conversion * ran black * less variation on reps * removed min reps consistency setting * fixed travis file * removed backslash * bash in travis fix * added sudo * added underscore to name * cleaned up travis * chmod * bash * test for notebooks * parameterized notebook tests * replaced scalers with functions * using pytest in all files * deploy script and two notebooks * bash in travis * python 3.5 support? * ran black * condition black on python version * removed f strings * many python versions * updated templates. python 35+ working
- Loading branch information
Showing
18 changed files
with
2,763 additions
and
723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: python | ||
|
||
notifications: | ||
email: false | ||
|
||
language: python | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
|
||
# The Travis CI job lifecycle specifies the order of the commands below phases. | ||
# https://docs.travis-ci.com/user/job-lifecycle/#the-job-lifecycle | ||
|
||
# -------------------- install: install any dependencies required ------------- | ||
before_install: | ||
- uname --all # Print system information | ||
- python --version # Print python information | ||
|
||
# -------------------- script: run the build script --------------------------- | ||
before_script: | ||
- pip install jupyter matplotlib pytest | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then pip install black; fi | ||
- pip install . # Install the package | ||
- pip show streprogen # Show information about the package | ||
|
||
script: | ||
# Check that code is formatted correctly w.r.t. black (not avaiable on Py35) | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then black . --check; fi | ||
- pytest streprogen --verbose --doctest-modules --color=yes # Run all tests | ||
- pytest examples --verbose --doctest-modules --color=yes # Run the notebooks | ||
|
||
# -------------------- deploy: deploy to PyPI --------- | ||
deploy: | ||
provider: script | ||
script: bash deploy.sh | ||
on: | ||
branch: master |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
pip install twine | ||
python setup.py sdist | ||
twine check dist/* | ||
python -m twine upload dist/* --username tommyod --password $TWINE --skip-existing |
Oops, something went wrong.