fix: ci
This commit is contained in:
parent
05581cf104
commit
4a9f91bda5
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ jobs:
|
||||||
API_REPOSITORY_PYPI: "${{ secrets.API_REPOSITORY_PYPI }}"
|
API_REPOSITORY_PYPI: "${{ secrets.API_REPOSITORY_PYPI }}"
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
- name: build_debian
|
- name: build_wheel
|
||||||
run: |
|
run: |
|
||||||
apt update; apt install -y python3-pip
|
apt update; apt install -y python3-pip
|
||||||
pip3 install --break-system-packages -e .[test]
|
pip3 install --break-system-packages -e .[test]
|
||||||
|
@ -57,10 +57,10 @@ jobs:
|
||||||
cd package/debian
|
cd package/debian
|
||||||
mkdir -p prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
|
mkdir -p prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
|
||||||
rsync -a prometheus-tlsrpt-exporter/usr/local/lib/python3.11/dist-packages/ prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
|
rsync -a prometheus-tlsrpt-exporter/usr/local/lib/python3.11/dist-packages/ prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
|
||||||
rm -rf prometheus-tlsrpt-exporter/usr/local/lib/python3.11/
|
mv prometheus-tlsrpt-exporter/usr/local/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/usr/bin/
|
||||||
|
rm -rf prometheus-tlsrpt-exporter/usr/local/lib/ prometheus-tlsrpt-exporter/usr/local/bin/
|
||||||
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
|
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
|
||||||
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
|
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
|
||||||
sed -re 's$#!/usr/local/bin/python3$#!/usr/bin/python3$' -i prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter
|
|
||||||
find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \;
|
find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \;
|
||||||
find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \;
|
find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \;
|
||||||
chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm
|
chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm
|
||||||
|
|
Loading…
Reference in a new issue