Skip to content

Merge master's changes into CAVE branch #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 247 commits into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
ef5de59
1. plots grouped by agents/metrics, 2. code refactoring
sguttikon Aug 31, 2020
634fa0f
code refactoring, documentation & plots cosmetic changes
sguttikon Sep 2, 2020
cf43064
made changes to display 4 plots per row
Sep 22, 2020
b1c776a
clear jupyter notebook plot output
Sep 22, 2020
17fd57c
clear jupyter notebook plot output
Sep 22, 2020
bbbc35d
spider (radar) plot changes
sguttikon Nov 19, 2020
a8133bb
updated code to plot multiple meta features
sguttikon Nov 24, 2020
a18c1e1
clear the plots
sguttikon Dec 7, 2020
c6b5976
clear plots
sguttikon Dec 7, 2020
11fb42f
fault tolerance & subsampling code
sguttikon Dec 9, 2020
799bcbd
latex code generation
sguttikon Dec 15, 2020
720b562
updated latex gen code
sguttikon Dec 21, 2020
62fa566
pulled changed from master and single_launcher branches (1)
sguttikon Dec 21, 2020
5efe021
improved fault tolerance check code
sguttikon Jan 18, 2021
ae6e3e5
Merge remote-tracking branch 'origin/master' into mdpp_plots
sguttikon Feb 1, 2021
57ba4bd
Merge remote-tracking branch 'origin/single_launcher' into mdpp_plots
sguttikon Feb 1, 2021
90c25f4
fixed auc error in radar plot
sguttikon Feb 4, 2021
558c6dd
checkpoint changes
sguttikon Feb 8, 2021
79da2bb
Added a finite horizon=100 env registered in Gym.
RaghuSpaceRajan Feb 25, 2021
7694f98
Undo ICML changes
RaghuSpaceRajan Feb 25, 2021
87b1484
Merge branch 'experimental' into mdpp_plots
RaghuSpaceRajan Feb 25, 2021
e540813
Merge pull request #1 from RaghuSpaceRajan/mdpp_plots
RaghuSpaceRajan Feb 25, 2021
a766c59
Made package a PyPI package: installable by pip
RaghuSpaceRajan Mar 30, 2021
5b4821b
Removed some problems from merge of Suresh and Jessica's branches. Ad…
RaghuSpaceRajan Apr 23, 2021
c9e0969
fixed reqs, removed unused seed function, see https://github.com/ray-…
vonHartz Apr 30, 2021
4f6a7d9
udated for new ray version
vonHartz Apr 30, 2021
2c00d1c
moving toward pep8 compatability
vonHartz Apr 30, 2021
85afe97
some more pep8
vonHartz Apr 30, 2021
4215f84
Added loading of stats when using random search agent configs instead…
RaghuSpaceRajan May 4, 2021
a842e44
Jupyter notebook that should have been in last commit: added Hydra an…
RaghuSpaceRajan May 4, 2021
de50ad1
Added tests for run_experiments.py and reverted it to pre-merge code …
RaghuSpaceRajan May 4, 2021
8e77535
# 310 Hydra configs on qbert: test run
RaghuSpaceRajan May 5, 2021
5130549
# 310 actual
RaghuSpaceRajan May 5, 2021
5533df9
MAJOR: Added config_processor.py to move config processing to 1 place…
RaghuSpaceRajan May 10, 2021
a9d38a7
Removed bug and small changes
RaghuSpaceRajan May 11, 2021
b7f2d9a
config_processor: Moved most hacks out of run_experiments.py
RaghuSpaceRajan May 11, 2021
e350c5e
Small changes
RaghuSpaceRajan May 11, 2021
c10806e
pikcle the tune analysis file
vonHartz May 14, 2021
7c5e807
added docs
vonHartz May 14, 2021
360b5ba
Set theme jekyll-theme-slate
RaghuSpaceRajan May 14, 2021
176d7a0
merged experimental into dev/jan
vonHartz May 14, 2021
1e544b0
Merge branch 'dev/jan' of github.com:RaghuSpaceRajan/mdp-playground i…
vonHartz May 14, 2021
0ea0a3d
removed old imports
vonHartz May 14, 2021
c996b9a
added framework option lost in merge
vonHartz May 14, 2021
3a938a7
fixes for ray 1.3.0
vonHartz May 14, 2021
ad41027
Merge pull request #2 from RaghuSpaceRajan/dev/jan
RaghuSpaceRajan May 14, 2021
3c9ec83
Undo lost #TODOs
RaghuSpaceRajan May 14, 2021
45500ce
added log level command line arg
vonHartz May 18, 2021
2a56a1f
Small changes
RaghuSpaceRajan May 20, 2021
8144206
MAJOR: Added random and sobol generation for configs; updated require…
RaghuSpaceRajan May 20, 2021
aa91f54
# 311 Rainbow 100 random configs on qbert
RaghuSpaceRajan May 20, 2021
6a8d95e
# 311 Minor bug removed
RaghuSpaceRajan May 21, 2021
d53800c
# 311 actual
RaghuSpaceRajan May 21, 2021
d79b12d
MAJOR: Added column mem_used_mb to CSV stats files.
RaghuSpaceRajan May 21, 2021
65870c4
# 312 DQN R noises with varying lrs
RaghuSpaceRajan May 24, 2021
7c7c20c
# 312 actual: Rolled back writing mem_used_mb to CSV stats to be comp…
RaghuSpaceRajan May 24, 2021
aa73bda
Transferred ownership to automl and updated bibtex.
RaghuSpaceRajan May 25, 2021
cd4839a
Small changes
RaghuSpaceRajan May 25, 2021
8f080e2
# 312 actual
RaghuSpaceRajan May 25, 2021
8f18596
testing poetry
vonHartz May 26, 2021
1cdaa6a
playing with toml
vonHartz May 26, 2021
628ab31
mutex problem
vonHartz May 26, 2021
ba13f35
fixed mutex extras
vonHartz May 26, 2021
d8a58c3
version bump for pypi test
vonHartz May 26, 2021
a78cd0e
Added test workflow
vonHartz May 26, 2021
dbcf8b4
Added publish.yml test version
vonHartz May 26, 2021
730d2a0
added status badges
vonHartz May 26, 2021
87dc50c
Changed trigger condtion, fixed token
vonHartz May 26, 2021
ef74a63
Updated poetry instal
vonHartz May 26, 2021
d242a93
rebuild docs
vonHartz May 26, 2021
f74537b
rebuild docs
vonHartz May 26, 2021
b55e8d2
# 313 DQN P noises with varying lrs
RaghuSpaceRajan May 26, 2021
c7eaa10
# 313 actual
RaghuSpaceRajan May 26, 2021
c804624
added build docs to git for subtree use
vonHartz May 26, 2021
9b09064
updated doc
vonHartz May 26, 2021
cdb34be
added nojekyll
vonHartz May 26, 2021
0ccd74d
fixed command
vonHartz May 26, 2021
9926e40
fixed cov link
vonHartz May 26, 2021
60759b2
Added poetry to path
vonHartz May 26, 2021
6eb1888
Fixed poetry installation
vonHartz May 26, 2021
1d6506b
Only run on dev/jan for now
vonHartz May 26, 2021
27a1615
Only run on dev/jan for now
vonHartz May 26, 2021
1e1ad4a
added workflows from master
vonHartz May 26, 2021
6a486a8
# 296: with clip_rewards=False
RaghuSpaceRajan May 26, 2021
6fdc196
added missing build command
vonHartz May 26, 2021
f01f041
# 314: test run
RaghuSpaceRajan May 26, 2021
462df3d
bumped versions for deploy test, moved tests
vonHartz May 26, 2021
183f803
fixed typo
vonHartz May 26, 2021
4749c21
mujoco installation
vonHartz May 26, 2021
ed0bc10
debug mujoco install
vonHartz May 26, 2021
3c861be
debug mujoco install
vonHartz May 26, 2021
0759c98
Removed bug with GymEnvWrapper
RaghuSpaceRajan May 26, 2021
991116b
# 315 DQN R noises with clip_rewards=False
RaghuSpaceRajan May 27, 2021
c2e075b
# 314 actual
RaghuSpaceRajan May 27, 2021
5604327
# 296 actual
RaghuSpaceRajan May 27, 2021
76571b9
added pypi isntall instructions, entry point (NOT FUNCTIONAL YET)
vonHartz May 28, 2021
9b2837f
skip test, publish only when creating release
vonHartz May 28, 2021
f6f5e08
added author
vonHartz May 28, 2021
6fe8ace
rm mujoco installation
vonHartz May 28, 2021
3a17423
MAJOR: Added image_representations for cont. envs, removed some bugs …
RaghuSpaceRajan May 28, 2021
b9ad471
merged experimental into dev/jan
vonHartz May 30, 2021
1663b8f
created main function
vonHartz May 30, 2021
6b6cc90
ensured prev_reward is always defined
vonHartz May 30, 2021
237c33f
another test commit to testpypi for testing installation via pip
vonHartz May 30, 2021
793b744
reset build and release condition
vonHartz May 30, 2021
deb866c
renamed test workflow, added pypi installation test flow
vonHartz May 30, 2021
012ea3c
removed ununsed packages"
vonHartz May 30, 2021
115c6a5
ray installation fixed
vonHartz May 30, 2021
4ddf94f
added entry point to pyproject for poetry
vonHartz May 30, 2021
bca0ccc
version bump, deploy for pypi test
vonHartz May 30, 2021
d085e44
reset trigger condition
vonHartz May 30, 2021
77df7a2
typo
vonHartz May 30, 2021
c25e69b
generated lock file
vonHartz May 30, 2021
22a4939
added init to find run_exp
vonHartz May 30, 2021
cd5cca4
reset trigger condition
vonHartz May 30, 2021
030b78b
synced setup: updated urls, copied packages from poetry build
vonHartz May 30, 2021
3ca5af3
moved scripts around to fix entry point
vonHartz May 30, 2021
94ce46d
version bump for pypi test
vonHartz May 30, 2021
4c475cd
reset trigger condition
vonHartz May 30, 2021
070792c
added cov to worklfow, fixed test for new script dir
vonHartz May 30, 2021
a6cc098
allow to call main with args in other python scripts
vonHartz May 30, 2021
5a0a259
Removed bug, small changes
RaghuSpaceRajan Jun 2, 2021
7316e1c
Add License
RaghuSpaceRajan Jun 2, 2021
a901d16
MAJOR: Added grid environments
RaghuSpaceRajan Jun 3, 2021
21168c2
Update LICENSE
RaghuSpaceRajan Jun 3, 2021
19e18d8
moved scripts to top level, adapted setups
vonHartz Jun 4, 2021
032ef4b
Merge branch 'experimental' into dev/jan
vonHartz Jun 4, 2021
2d2104a
Revert "moved scripts to top level, adapted setups"
vonHartz Jun 4, 2021
57e9d45
removed redundant import
vonHartz Jun 4, 2021
651b5ac
reapplied cli change
vonHartz Jun 4, 2021
a312d22
reapplied cli entry point
vonHartz Jun 4, 2021
55a0250
set version for pypi
vonHartz Jun 4, 2021
47c8e68
updated workflows for release prp, fixed old arg, made comment more s…
vonHartz Jun 4, 2021
b4726ac
unified ray init that is version agnostic
vonHartz Jun 4, 2021
48878f0
updated readmes
vonHartz Jun 4, 2021
03ce4d6
removed other scripts for test
vonHartz Jun 4, 2021
9ea98eb
deps defined in setup.py, so use this to install
vonHartz Jun 4, 2021
eafe368
need np for configspace
vonHartz Jun 4, 2021
d4c8aea
need np for configspace
vonHartz Jun 4, 2021
f52ac34
fixed gcc version, updated scipy version, added numpy to build reqs"
vonHartz Jun 4, 2021
e905008
install setuptools, not np
vonHartz Jun 4, 2021
caf519d
added setup requirement
vonHartz Jun 4, 2021
ad5373a
need manual numpy install
vonHartz Jun 4, 2021
2e6f42e
moved to toml
vonHartz Jun 4, 2021
0457d34
auto-install doesnt work
vonHartz Jun 4, 2021
35977ca
added ray extras"
vonHartz Jun 4, 2021
43a8516
used ray 0.9 for test due to beta_annealing_factor being depreceated
vonHartz Jun 4, 2021
2740bd0
dont use mujoco in tests
vonHartz Jun 4, 2021
6ec6be1
manual tf install, fixed tmp_dir arg for ray 0.x
vonHartz Jun 4, 2021
611b815
updated authors
vonHartz Jun 4, 2021
d01b9d1
rebuild docs
vonHartz Jun 4, 2021
24618cf
gym version
vonHartz Jun 4, 2021
3e83971
ray versions for test
vonHartz Jun 4, 2021
98f04cf
updated ray version
vonHartz Jun 4, 2021
337e497
typo
vonHartz Jun 4, 2021
af56610
updated dep for test
vonHartz Jun 4, 2021
400ac6e
install atari
vonHartz Jun 4, 2021
02ff4f7
Merge pull request #4 from automl/dev/jan
vonHartz Jun 4, 2021
ca120a5
added exp branch to test workflow
vonHartz Jun 4, 2021
6251be4
Added grid env example and improved example.py
RaghuSpaceRajan Jun 4, 2021
227906f
Changed grid envs to only allow motion in 1 dimension at a time.
RaghuSpaceRajan Jun 4, 2021
67198f0
Merge branch 'experimental' of git+ssh://github.com/automl/mdp-playgr…
RaghuSpaceRajan Jun 4, 2021
27252d0
Merge branch 'master' into experimental
RaghuSpaceRajan Jun 4, 2021
961efc8
Merge branch 'experimental' of git+ssh://github.com/automl/mdp-playgr…
RaghuSpaceRajan Jun 4, 2021
6e39896
Fixes for failing tests.
RaghuSpaceRajan Jun 4, 2021
991a8e6
Added experimental branch to workflow tests
RaghuSpaceRajan Jun 4, 2021
f83c588
Trying to ignore the scripts to be kept in experimental
RaghuSpaceRajan Jun 4, 2021
3ea3f39
Merge branch 'master' into experimental
RaghuSpaceRajan Jun 4, 2021
4411494
temporarily delete cluster script
RaghuSpaceRajan Jun 4, 2021
061b6ec
Merge branch 'experimental' of git+ssh://github.com/automl/mdp-playgr…
RaghuSpaceRajan Jun 4, 2021
336ac42
Merge changes from experimental into master (#5)
RaghuSpaceRajan Jun 4, 2021
432a7ee
Merge branch 'master' into dev/jan
vonHartz Jun 5, 2021
264c0ba
added pyplot
vonHartz Jun 5, 2021
18dfe84
bumped pillow
vonHartz Jun 5, 2021
3b7d32e
Fixed failing tests. Added run_experiments.py to root dir
RaghuSpaceRajan Jun 5, 2021
15cb2ad
Fixed failing tests. Added run_experiments.py to root dir
RaghuSpaceRajan Jun 5, 2021
a2db493
trying to fix missing roms
vonHartz Jun 7, 2021
8e40956
rar name
vonHartz Jun 7, 2021
eb96afe
adding atari-py to toml
vonHartz Jun 7, 2021
6669568
removed manual rom fix
vonHartz Jun 7, 2021
3f1d494
trying gym 0.14 for tests"
vonHartz Jun 7, 2021
4ce7738
undo install req of matplotlib
vonHartz Jun 7, 2021
927a203
pull request Dev/jan into experimental (#7)
RaghuSpaceRajan Jun 7, 2021
a8700e5
added nojekyll for doc rendering
vonHartz Jun 7, 2021
fa7b05b
updated pypi install test
vonHartz Jun 7, 2021
52dac29
fixed publish
vonHartz Jun 7, 2021
f4a4058
Merge branch 'experimental'
RaghuSpaceRajan Jun 7, 2021
f5515e7
Merge branch 'master' of git+ssh://github.com/automl/mdp-playground
RaghuSpaceRajan Jun 7, 2021
0d3b0cd
Remove merge conflicts
RaghuSpaceRajan Jun 7, 2021
a850e35
Merge branch 'master' into dev/jan
vonHartz Jun 7, 2021
45f2b5d
Merge pull request #9 from automl/dev/jan
RaghuSpaceRajan Jun 7, 2021
e1c6da8
Improved formatting.
RaghuSpaceRajan Jun 7, 2021
231d511
Merge branch 'experimental' of git+ssh://github.com/automl/mdp-playgr…
RaghuSpaceRajan Jun 7, 2021
cbdb368
Merge pull request #8 from automl/experimental
RaghuSpaceRajan Jun 7, 2021
a282a3a
Small changes
RaghuSpaceRajan Jun 7, 2021
b0059f0
Code formatted with black and autopep8
RaghuSpaceRajan Jun 7, 2021
8990669
Merge pull request #10 from automl/experimental
RaghuSpaceRajan Jun 7, 2021
136fbec
added manual trigger
vonHartz Jun 7, 2021
50de919
fixed syntax
vonHartz Jun 7, 2021
115242c
updated poetry lock
vonHartz Jun 7, 2021
6ea3730
added manual trigger
vonHartz Jun 7, 2021
3e74338
install np for configspace
vonHartz Jun 7, 2021
1a25b35
Fix README to work.
RaghuSpaceRajan Jun 7, 2021
d167485
Clean plot_experiments.ipynb
RaghuSpaceRajan Jun 7, 2021
9991ad6
Merge pull request #11 from automl/experimental
RaghuSpaceRajan Jun 7, 2021
664e0ec
Fix dependencies
RaghuSpaceRajan Jun 7, 2021
ad44635
Fix crashing plots
RaghuSpaceRajan Jun 8, 2021
7b3d64f
Fix plotting code bugs
RaghuSpaceRajan Jun 24, 2021
068723b
Merge pull request #12 from automl/experimental
RaghuSpaceRajan Jun 24, 2021
a4e7261
Update arxiv bibtex
RaghuSpaceRajan Jun 30, 2021
d839acd
Updated README with links to documentation.
RaghuSpaceRajan Jul 8, 2021
a58d97b
Merge branch 'master' of git+ssh://github.com/automl/mdp-playground
RaghuSpaceRajan Jul 8, 2021
b12647a
Update docs and README.
RaghuSpaceRajan Jul 9, 2021
99485b2
Updated Gym wrapper for irrelevant dims
RaghuSpaceRajan Jul 10, 2021
6949888
# 316 test expt
RaghuSpaceRajan Jul 10, 2021
fc0088a
# 316 SAC HalfCheetah irr_dims actual
RaghuSpaceRajan Jul 10, 2021
b8f548d
# 317 test run
RaghuSpaceRajan Jul 11, 2021
8b9cc83
# 318 test
RaghuSpaceRajan Jul 11, 2021
37766ae
# 318 DDPG on HalfCheetahV3 time unit and action max
RaghuSpaceRajan Jul 11, 2021
0b707b0
# 319 DQN image_transforms on space_invaders
RaghuSpaceRajan Jul 12, 2021
b3dfb70
# 316 actual/re-launch
RaghuSpaceRajan Jul 12, 2021
9d9e95e
# 319 speed test 1
RaghuSpaceRajan Jul 12, 2021
5c8ebcf
# 320 speed test
RaghuSpaceRajan Jul 12, 2021
d230fe4
# 319 actual
RaghuSpaceRajan Jul 12, 2021
2b30a8d
# 320 actual
RaghuSpaceRajan Jul 12, 2021
3e358a6
# 319, 320 re-launch
RaghuSpaceRajan Jul 12, 2021
bcaf60c
# 319, 320 with diff. resolutions
RaghuSpaceRajan Jul 12, 2021
4bc01e8
# 321 DQN image_representations re-launch
RaghuSpaceRajan Jul 12, 2021
8f11ae3
# 322 A3C space_invaders image_transforms
RaghuSpaceRajan Jul 12, 2021
f3f2e8f
# 322 A3C Atari image_transforms
RaghuSpaceRajan Jul 12, 2021
94f417c
# 323 A3C on Atari image_transforms sh_quant
RaghuSpaceRajan Jul 13, 2021
6598163
# 324, 325: DQN, Rainbow on Atari image_transforms sh_quant
RaghuSpaceRajan Jul 13, 2021
84f361b
Create codecov.yml
vonHartz Aug 2, 2021
6fec0f4
Removed small bugs in example.py
RaghuSpaceRajan Aug 26, 2021
403219c
Merge branch 'master' of git+ssh://github.com/automl/mdp-playground
RaghuSpaceRajan Aug 26, 2021
71628e5
install mujoco-py in test workflow to fix import
vonHartz Aug 27, 2021
8d6b40a
Fix failing mujoco test
RaghuSpaceRajan Aug 27, 2021
e576057
Improve example.py
RaghuSpaceRajan Aug 28, 2021
4240c87
Merge pull request #13 from automl/master
RaghuSpaceRajan Sep 24, 2021
2241e59
Added minigrid example
RaghuSpaceRajan Sep 24, 2021
e029d8a
Merge branch 'new_expts' of git+ssh://github.com/automl/mdp-playgroun…
RaghuSpaceRajan Sep 24, 2021
adae364
Improved example.py by adding MiniGrid and ProcGen examples
RaghuSpaceRajan Sep 24, 2021
3f19fd5
Remove cluster scripts
RaghuSpaceRajan Sep 24, 2021
488781f
Add test case for image_transforms for Gym envs
RaghuSpaceRajan Sep 24, 2021
4313fae
Updated test case
RaghuSpaceRajan Sep 24, 2021
0754b42
update tests
RaghuSpaceRajan Sep 24, 2021
fdc0d08
Merge image transforms dimensions for image representation envs; also…
RaghuSpaceRajan Sep 24, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .github/workflows/gh-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test

on:
push:
branches: [ master, dev/jan, experimental ]
pull_request:
branches: [ master, dev/jan, experimental ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov setuptools numpy
pip install -e .[extras_disc]
pip install ray[rllib,debug]==0.7.3
pip install tensorflow==1.13.0rc1
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
# --max-complexity=10 --max-line-length=127
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest tests
- name: Cov report
run: |
pytest --cov=./ --cov-report=xml tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
directory: ./coverage/reports/
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.txt
verbose: true
31 changes: 31 additions & 0 deletions .github/workflows/install-from-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test PyPI Installation

on:
workflow_dispatch:

push:
branches: [ master, dev/jan ]
pull_request:
branches: [ master, dev/jan ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy
- name: Install from PyPI
run: |
pip install mdp-playground[extras]
- name: Basic functionality test
run: |
run-mdpp-experiments --help
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Publish

on:
workflow_dispatch:

release:
types:
- created # see https://docs.github.com/en/rest/reference/repos#create-a-release and https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release


jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.6"
- name: Install Poetry
run: |
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py -y
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Configure poetry
run: poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v1
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
- name: Install dependencies
run: poetry install --no-interaction
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

Expand Down Expand Up @@ -106,3 +103,7 @@ venv.bak/

# mypy
.mypy_cache/

# Pickled files from me
*pickle*dat

2 changes: 2 additions & 0 deletions .pep8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pycodestyle]
max_line_length = 127
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Contributing

## Developer Installation

For development, manual installation is the easiest way to stay up-to-date:
```bash
pip install -e .[extras]
```

In addition to the standard dependencies, please install the following:
```bash
pip install sphinx, sphinx-book-theme # for generating documentation
pip install pytest-cov # for coverage report
# install poetry for packaging and publishing to PyPI
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
```

## Packaging

The `pyproject.toml` is set up using `poetry`.

Build via `poetry build`, and publish via `poetry publish`. There are automatic workflows in place to build and publish on new package revisions.

To enable manual installation with `poetry`, we also include a `setup.py` which needs to be kept up-to-date.


## Docs

The documentation can be built using sphinx via:
```bash
cd docs
make html
```

To clean up:
```bash
make clean
rm -rf _autosummary # optional
```

To publish:
```bash
git subtree push --prefix docs/_build/html/ origin gh-pages
```
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 MDP Playground developers

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading