1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

Merge pull request #1177 from dmach/fix-_private

Include osc._private in setup.cfg
This commit is contained in:
Daniel Mach 2022-10-20 10:00:13 +02:00 committed by GitHub
commit 2b20969300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 4 deletions

View File

@ -55,7 +55,7 @@ jobs:
zypper --non-interactive install git-lfs rpm-build
- name: 'Install packages (Fedora/CentOS)'
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
run: |
dnf -y makecache
dnf -y distro-sync
@ -71,7 +71,7 @@ jobs:
zypper --non-interactive install $(rpmspec -q --buildrequires contrib/osc.spec)
- name: 'Install build dependencies (Fedora/CentOS)'
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
run: |
dnf -y builddep contrib/osc.spec
@ -84,6 +84,20 @@ jobs:
./contrib/build_rpm.py --srpm --rpm
- name: 'Install built RPMs (OpenSUSE)'
if: ${{ startsWith(matrix.container, 'opensuse/') }}
run: |
zypper --non-interactive install --force --allow-vendor-change --allow-unsigned-rpm ./contrib/*/*.rpm
- name: 'Install build RPMs (Fedora/CentOS)'
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
run: |
dnf -y install ./contrib/*/*.rpm
- name: 'Run installed osc'
run: |
osc --help
pip:
name: 'pip install test'
runs-on: 'ubuntu-latest'
@ -102,3 +116,7 @@ jobs:
- name: 'Install osc from pip'
run: |
pip3 install .
- name: 'Run installed osc'
run: |
osc --help

View File

@ -60,7 +60,7 @@ jobs:
zypper -n install diffstat diffutils python3 python3-cryptography python3-pip python3-rpm python3-setuptools python3-urllib3
- name: 'Install packages (Fedora/CentOS)'
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
run: |
dnf -y makecache
dnf -y distro-sync
@ -68,7 +68,7 @@ jobs:
dnf -y install diffstat diffutils python3 python3-cryptography python3-pip python3-rpm python3-setuptools python3-urllib3
- name: 'Install packages (Debian/Ubuntu)'
if: ${{ startsWith(matrix.container, 'debian:') || startsWith(matrix.container, 'ubuntu:') }}
if: ${{ startsWith(matrix.container, 'debian:') || startsWith(matrix.container, 'ubuntu:') }}
run: |
apt-get -y update
apt-get -y upgrade

View File

@ -100,6 +100,7 @@ class Spec:
self.path,
"--define", f"_sourcedir {self.topdir}",
"--define", f"_srcrpmdir {self.topdir}",
"--define", f"_rpmdir {self.topdir}",
]
if srpm and rpm:
cmd.append("-ba")

View File

@ -33,6 +33,7 @@ classifiers =
[options]
packages =
osc
osc._private
osc.util
install_requires =
cryptography