Skip to content

packaging: Fix %files in spec #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ rm -rf python-%{modname}.egg-info

%install
%pyproject_install
%pyproject_save_files -l dbusmock

%check
%{__python3} -m unittest -v

%files -n python3-dbusmock
/usr/lib/python*
%files -n python3-dbusmock -f %{pyproject_files}

%doc README.md COPYING

Expand Down
6 changes: 2 additions & 4 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/martinpitt/python-dbusmock
# HACK: should work without, but propose_downstream fails; https://github.com/packit/packit-service/issues/1511
specfile_path: packaging/python-dbusmock.spec
specfile_path: distro/python-dbusmock.spec
issue_repository: https://github.com/martinpitt/python-dbusmock
copy_upstream_release_description: true
upstream_package_name: python-dbusmock
Expand All @@ -12,7 +12,7 @@ actions:
create-archive:
- python3 -m build --sdist
# spec and tarball need to be in the same directory
- sh -c 'mv dist/*.tar.* packaging; ls packaging/python_dbusmock-*.tar.*'
- sh -c 'mv dist/*.tar.* distro; ls distro/python_dbusmock-*.tar.*'

srpm_build_deps:
- python3-build
Expand All @@ -30,14 +30,12 @@ jobs:
- fedora-latest-armhfp
# needed for tests
- fedora-all
- centos-stream-9-x86_64
- centos-stream-10-x86_64

- job: tests
trigger: pull_request
targets:
- fedora-all
- centos-stream-9-x86_64
- centos-stream-10-x86_64

- job: propose_downstream
Expand Down
Loading