Initial commit
ci/woodpecker/tag/woodpecker Pipeline was successful Details

master
Benjamin Renard 9 months ago
commit ccc3f09611

2
.gitignore vendored

@ -0,0 +1,2 @@
*~
dist

@ -0,0 +1,37 @@
pipeline:
build:
image: debian
when:
event: tag
commands:
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
- DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper python3-wheel python3-pip < /dev/null > /dev/null
- DEBIAN_FRONTEND=noninteractive apt-file update < /dev/null > /dev/null
- python3 -m pip install wheel2deb --quiet
- mkdir dist
- python3 -m pip wheel cx-Oracle -w dist --quiet
- wheel2deb --map attrs=attr -x dist -o dist
- wheel2deb build -p dist
- rm -fr dist/python3-cx-oracle_*_amd64
publish-dryrun:
image: debian
when:
event: tag
commands:
- ls dist/*
publish:
image: plugins/gitea-release
when:
event: tag
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.zionetrix.net
files:
- dist/*
checksum:
- md5
- sha512

@ -0,0 +1,5 @@
# Python cx-Oracle debian packager tool
This repository provide a Woodpecker CI pipeline to build a `python3-cx-oracle` debian package. It's download the _cx-Oracle_ wheel package from [Pypi](https://pypi.org/project/cx-Oracle/) using the `pip wheel` command and convert it to debian source package using [wheel2deb](https://pypi.org/project/wheel2deb/).
The resulting debian packages files are publish to Gitea as release. The downloaded wheel package is also keep for archive.
Loading…
Cancel
Save