File tree Expand file tree Collapse file tree 15 files changed +308
-242
lines changed Expand file tree Collapse file tree 15 files changed +308
-242
lines changed Original file line number Diff line number Diff line change 1+ INSTALL_AUTORELEASE=" python -m pip install autorelease==0.2.3"
2+ if [ -f autorelease-env.sh ]; then
3+ source autorelease-env.sh
4+ fi
5+
Original file line number Diff line number Diff line change 1+ name : Autorelease
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ deploy_pypi :
8+ runs-on : ubuntu-latest
9+ name : " Deploy to PyPI"
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions/setup-python@v2
13+ with :
14+ python-version : " 3.x"
15+ - run : | # TODO: move this to an action
16+ source ./.github/workflows/autorelease-default-env.sh
17+ cat autorelease-env.sh >> $GITHUB_ENV
18+ eval $INSTALL_AUTORELEASE
19+ name: "Install autorelease"
20+ - run : |
21+ python -m pip install twine wheel
22+ name: "Install release tools"
23+ - run : |
24+ python setup.py sdist bdist_wheel
25+ twine check dist/*
26+ name: "Build and check package"
27+ - uses : pypa/gh-action-pypi-publish@master
28+ with :
29+ password : ${{ secrets.pypi_password }}
30+ name : " Deploy to testpypi"
31+
Original file line number Diff line number Diff line change 1+ name : Autorelease
2+ on :
3+ push :
4+ branches :
5+ - stable
6+
7+ jobs :
8+ release-gh :
9+ runs-on : ubuntu-latest
10+ name : " Cut release"
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-python@v2
14+ with :
15+ python-version : " 3.7"
16+ - run : | # TODO: move this to an action
17+ source ./.github/workflows/autorelease-default-env.sh
18+ cat autorelease-env.sh >> $GITHUB_ENV
19+ eval $INSTALL_AUTORELEASE
20+ name: "Install autorelease"
21+ - run : |
22+ VERSION=`python setup.py --version`
23+ PROJECT=`python setup.py --name`
24+ echo $PROJECT $VERSION
25+ autorelease-release --project $PROJECT --version $VERSION --token $AUTORELEASE_TOKEN
26+ env:
27+ AUTORELEASE_TOKEN: ${{ secrets.AUTORELEASE_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : " Autorelease"
2+ on :
3+ pull_request :
4+ branches :
5+ - stable
6+
7+ defaults :
8+ run :
9+ shell : bash
10+
11+ jobs :
12+ deploy_testpypi :
13+ runs-on : ubuntu-latest
14+ name : " Deployment test"
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : actions/setup-python@v2
18+ with :
19+ python-version : " 3.x"
20+ - run : | # TODO: move this to an action
21+ source ./.github/workflows/autorelease-default-env.sh
22+ cat autorelease-env.sh >> $GITHUB_ENV
23+ eval $INSTALL_AUTORELEASE
24+ name: "Install autorelease"
25+ - run : |
26+ python -m pip install twine wheel
27+ name: "Install release tools"
28+ - run : |
29+ bump-dev-version
30+ python setup.py --version
31+ name: "Bump testpypi dev version"
32+ - run : |
33+ python setup.py sdist bdist_wheel
34+ twine check dist/*
35+ name: "Build and check package"
36+ - uses : pypa/gh-action-pypi-publish@master
37+ with :
38+ password : ${{ secrets.testpypi_password }}
39+ repository_url : https://test.pypi.org/legacy/
40+ name : " Deploy to testpypi"
41+ test_testpypi :
42+ runs-on : ubuntu-latest
43+ name : " Test deployed"
44+ needs : deploy_testpypi
45+ steps :
46+ - uses : actions/checkout@v2
47+ - uses : actions/setup-python@v2
48+ with :
49+ python-version : " 3.x"
50+ - run : | # TODO: move this to an action
51+ source ./.github/workflows/autorelease-default-env.sh
52+ cat autorelease-env.sh >> $GITHUB_ENV
53+ eval $INSTALL_AUTORELEASE
54+ name: "Install autorelease"
55+ - run : test-testpypi
56+
Original file line number Diff line number Diff line change 1+ name : " Tests"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ - stable
8+ push :
9+ branches :
10+ - master
11+ tags :
12+ - " v*"
13+ schedule :
14+ - cron : " 25 5 * * *"
15+
16+ defaults :
17+ run :
18+ shell : bash -l {0}
19+
20+ jobs :
21+ test_suite :
22+ runs-on : ubuntu-latest
23+ name : " Unit tests"
24+ strategy :
25+ matrix :
26+ CONDA_PY :
27+ - 3.9
28+ - 3.8
29+ - 3.7
30+ - 3.6
31+
32+ steps :
33+ - uses : actions/checkout@v2
34+ - uses : actions/setup-python@v2
35+ - uses : conda-incubator/setup-miniconda@v2
36+ with :
37+ auto-update-conda : true
38+ python-version : ${{ matrix.CONDA_PY }}
39+ - name : " Install testing tools"
40+ run : python -m pip install -r ./devtools/tests_require.txt
41+ - name : " Install"
42+ run : |
43+ conda install pip
44+ python -m pip install -e .
45+ - name : " Versions"
46+ run : conda list
47+ - name : " Autorelease check"
48+ env :
49+ PR_BRANCH : ${{ github.event.pull_request.base.ref }}
50+ REF : ${{ github.ref }}
51+ EVENT : ${{ github.event_name }}
52+ run : |
53+ if [ "$EVENT" != "pull_request" ]; then
54+ BRANCH=$REF
55+ else
56+ BRANCH=$PR_BRANCH
57+ fi
58+ python autorelease_check.py --branch $BRANCH --even ${EVENT}
59+ - name : " Unit tests"
60+ run : |
61+ python -c "import paths_cli"
62+ py.test -vv --cov --cov-report xml:cov.xml
63+ - name : " Report coverage"
64+ run : bash <(curl -s https://codecov.io/bash)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ INSTALL_AUTORELEASE=" python -m pip install autorelease==0.2.3 nose"
2+ PACKAGE_IMPORT_NAME=paths_cli
Original file line number Diff line number Diff line change 1+ .. _api :
2+
3+ API
4+ ===
5+
6+ .. currentmodule :: paths_cli
7+
8+ CLI and Plugins
9+ ---------------
10+
11+ .. autosummary ::
12+ :toctree: generated
13+
14+ OpenPathSamplingCLI
15+ plugin_management.CLIPluginLoader
16+ plugin_management.FilePluginLoader
17+ plugin_management.NamespacePluginLoader
18+
19+
20+ Parameter Decorators
21+ --------------------
22+
23+ These are the functions used to create the reusable parameter decorators.
24+ Note that you will probably never need to use these; instead, use the
25+ existing parameter decorators.
26+
27+ .. autosummary ::
28+ :toctree: generated
29+
30+ param_core.Option
31+ param_core.Argument
32+ param_core.AbstractLoader
33+ param_core.StorageLoader
34+ param_core.OPSStorageLoadNames
35+ param_core.OPSStorageLoadSingle
36+
37+ Search strategies
38+ -----------------
39+
40+ These are the various strategies for finding objects in a storage, in
41+ particular if we have to guess because the user didn't provide an explicit
42+ choice or didn't tag.
43+
44+ .. autosummary ::
45+ :toctree: generated
46+
47+ param_core.Getter
48+ param_core.GetByName
49+ param_core.GetByNumber
50+ param_core.GetPredefinedName
51+ param_core.GetOnly
52+ param_core.GetOnlyNamed
53+ param_core.GetOnlySnapshot
54+
55+
56+ Commands
57+ --------
58+
59+ .. autosummary ::
60+ :toctree: generated
61+ :recursive:
62+
63+ commands.visit_all
64+ commands.equilibrate
65+ commands.pathsampling
66+ commands.append
67+ commands.contents
Original file line number Diff line number Diff line change 4141# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4242# ones.
4343extensions = [
44+ 'sphinx.ext.autodoc' ,
45+ 'sphinx.ext.autosummary' ,
4446 'sphinx_click.ext' ,
4547]
4648
49+ autosummary_generate = True
50+
4751# Add any paths that contain templates here, relative to this directory.
4852templates_path = ['_templates' ]
4953
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments