forked from openpathsampling/openpathsampling
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautorelease_check.py
More file actions
30 lines (26 loc) · 935 Bytes
/
autorelease_check.py
File metadata and controls
30 lines (26 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#/usr/bin/env python
from __future__ import print_function
import setup
import openpathsampling
from autorelease import DefaultCheckRunner, conda_recipe_version
from autorelease.version import get_setup_version
from packaging.version import Version
repo_path = '.'
SETUP_VERSION = get_setup_version(None, directory='.')
versions = {
'package': openpathsampling.version.version,
'netcdfplus': openpathsampling.netcdfplus.version.version,
'setup.py': SETUP_VERSION,
'conda-recipe': conda_recipe_version('devtools/conda-recipe/meta.yaml'),
}
RELEASE_BRANCHES = ['stable']
RELEASE_TAG = "v" + Version(SETUP_VERSION).base_version
if __name__ == "__main__":
checker = DefaultCheckRunner(
versions=versions,
setup=setup,
repo_path='.'
)
checker.release_branches = RELEASE_BRANCHES + [RELEASE_TAG]
tests = checker.select_tests_from_sysargs()
n_fails = checker.run_as_test(tests)