tests: update ogr's p.yaml and spec
to reflect recent changes
---
-# docs: https://github.com/packit-service/packit/blob/master/docs/configuration.md
-specfile_path: python-ogr.spec
+specfile_path: fedora/python-ogr.spec
synced_files:
- - python-ogr.spec
-upstream_package_name: ogr
+ - fedora/changelog
+# https://packit.dev/docs/configuration/#top-level-keys
downstream_package_name: python-ogr
-upstream_project_url: "https://github.com/packit-service/ogr"
-# the version is different than with basic git describe
-create_tarball_command: ["python3", "setup.py", "sdist", "--dist-dir", "."]
-current_version_command: ["python3", "setup.py", "--version"]
+upstream_package_name: ogr
+upstream_project_url: https://github.com/packit-service/ogr
+actions:
+ # we need this b/c `git archive` doesn't put all the metadata in the tarball:
+ # LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
+ # Make sure you're either building from a fully intact git repository or PyPI tarballs.
+ create-archive:
+ - python3 setup.py sdist --dist-dir ./fedora/
+ - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
+ get-current-version: python3 setup.py --version
jobs:
- job: sync_from_downstream
trigger: commit
- job: propose_downstream
trigger: release
metadata:
- dist-git-branch: master
- - job: propose_downstream
- trigger: release
- metadata:
- dist-git-branch: f30
- - job: propose_downstream
- trigger: release
- metadata:
- dist-git-branch: f29
+ dist_git_branch: fedora-all
- job: copr_build
trigger: pull_request
metadata:
targets:
- - fedora-29-x86_64
- - fedora-rawhide-x86_64
- - fedora-30-x86_64
+ - fedora-all
+ - job: tests
+ trigger: pull_request
+ metadata:
+ targets:
+ - fedora-all
