Allow python_requirements_facts to have dashes (#56683)

* Allow python_requirements_facts to cope with packages with dashes

```
python_requirements_facts:
  dependencies:
    - kubernetes-validate
```

should work as expected

(cherry picked from commit 5b3305c715)

* Allow python_requirements_facts to cope with packages with dashes (#56166)

* Allow python_requirements_facts to cope with packages with dashes

```
python_requirements_facts:
  dependencies:
    - kubernetes-validate
```

should work as expected

* Ensure tests run for python_requirements_facts

(cherry picked from commit 8e1dd58c2b)
This commit is contained in:
Will Thames 2019-05-23 03:08:01 +10:00 committed by Toshio Kuratomi
parent 42fb862605
commit 171ef3e337
3 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- allow python_requirements_facts to report on dependencies containing dashes

View file

@ -123,7 +123,7 @@ def main():
python_version=sys.version, python_version=sys.version,
python_system_path=sys.path, python_system_path=sys.path,
) )
pkg_dep_re = re.compile(r'(^[a-zA-Z][a-zA-Z0-9_]+)(==|[><]=?)?([0-9.]+)?$') pkg_dep_re = re.compile(r'(^[a-zA-Z][a-zA-Z0-9_-]+)(==|[><]=?)?([0-9.]+)?$')
results = dict( results = dict(
not_found=[], not_found=[],

View file

@ -1 +1 @@
unsupported shippable/posix/group2