-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_check.py
38 lines (32 loc) · 1.05 KB
/
release_check.py
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
31
32
33
34
35
36
37
38
#/usr/bin/env python
from __future__ import print_function
import sys
import argparse
import setup
#import contact_map
from packaging.version import Version
from autorelease import DefaultCheckRunner, conda_recipe_version
from autorelease.version import get_setup_version
repo_path = '.'
SETUP_VERSION = get_setup_version(None, directory='.')
versions = {
#'package': contact_map.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()
skip = []
#skip = [checker.git_repo_checks.reasonable_desired_version]
for test in skip:
skip_test = [t for t in tests if t[0] == test][0]
tests.remove(skip_test)
n_fails = checker.run_as_test(tests)