Skip to content

Commit 0bd620a

Browse files
committed
more steps toward GH integrations
* travis improvements * use bettter coveralls tool * try to improve docs install for RTD * add autorelease integration
1 parent a8942f0 commit 0bd620a

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ env:
2020
# TWINE_PASSWORD
2121
# AUTORELEASE_TOKEN
2222
matrix:
23+
- CONDA_PY=3.8
2324
- CONDA_PY=3.6
2425
- CONDA_PY=3.7
25-
- CONDA_PY=3.8
2626

2727
before_install:
2828
- echo "before install"
@@ -39,8 +39,9 @@ install:
3939

4040
script:
4141
- python -c "import paths_cli"
42-
#- python autorelease_check.py --branch ${TRAVIS_BRANCH} --event ${TRAVIS_EVENT_TYPE} #--allow-patch-skip # allow-patch-skip if there was a testpypi problem
43-
- py.test -vv --cov=paths_cli --cov-report xml:cov.xml
42+
- python autorelease_check.py --branch ${TRAVIS_BRANCH} --event ${TRAVIS_EVENT_TYPE} #--allow-patch-skip # allow-patch-skip if there was a testpypi problem
43+
#- py.test -vv --cov=paths_cli --cov-report xml:cov.xml
44+
- py.test -vv --cov --cov-report xml:cov.xml
4445

4546
after_success:
4647
- COVERALLS_PARALLEL=true coveralls

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ miscellaneous operations on OPS output files.
2626
* `strip-snapshots`: Remove coordinates/velocities from an OPS storage
2727
* `append`: add objects from INPUT_FILE to another file
2828

29-
Full documentation is at ???; a brief summary is below.
29+
Full documentation is at https://openpathsampling-cli.readthedocs.io/; a brief
30+
summary is below.
3031

3132

3233
<!-- TODO: add TOC if the contents here get too long

autorelease_check.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import setup
2+
import paths_cli
3+
4+
import autorelease
5+
from packaging.version import Version
6+
7+
SETUP_VERSION = autorelease.version.get_setup_version(None, directory='.')
8+
9+
repo_path = '.'
10+
versions = {
11+
'package': paths_cli.version.version,
12+
'setup.py': SETUP_VERSION,
13+
}
14+
15+
RELEASE_BRANCHES = ['stable']
16+
RELEASE_TAG = "v" + Version(SETUP_VERSION).base_version
17+
18+
if __name__ == "__main__":
19+
checker = autorelease.DefaultCheckRunner(
20+
versions=versions,
21+
setup=setup,
22+
repo_path='.'
23+
)
24+
checker.release_branches = RELEASE_BRANCHES + [RELEASE_TAG]
25+
26+
tests = checker.select_tests_from_sysargs()
27+
n_fails = checker.run_as_test(tests)

devtools/tests_require.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ autorelease
22
nose
33
pytest
44
pytest-cov
5-
python-coveralls
5+
coveralls

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
cython # see if this helps MDTraj
2+
numpy
3+
14
sphinx-click

paths_cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
from .cli import OpenPathSamplingCLI
22
from . import commands
3+
from . import version

0 commit comments

Comments
 (0)