diff --git a/.gitignore b/.gitignore index f3c13b5..36dfa39 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -SOURCES/asn1crypto-0.24.0.tar.gz +/asn1crypto-0.22.0.tar.gz +/asn1crypto-0.23.0.tar.gz /asn1crypto-0.24.0.tar.gz diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..f3a175d --- /dev/null +++ b/.rpmlint @@ -0,0 +1 @@ +addFilter('spelling-error.*serializer') diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6985029 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/python-asn1crypto.spec b/python-asn1crypto.spec index abd3af0..8a3306a 100644 --- a/python-asn1crypto.spec +++ b/python-asn1crypto.spec @@ -18,6 +18,7 @@ %{!?python3_pkgversion:%global python3_pkgversion 3} Name: python-%{pypi_name} +# keep version in sync with tests/test.yml Version: 0.24.0 Release: 3%{?dist} Summary: Fast Python ASN.1 parser and serializer diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..da4b378 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,19 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - python3-asn1crypto + - python3-pytest + # upstream does not include tests in tar ball. Fetch unit tests + # from GitHub. + repositories: + - repo: https://github.com/wbond/asn1crypto.git + dest: asn1crypto + version: 0.24.0 + tests: + - unittests: + dir: asn1crypto/tests + run: pytest-3