This commit is contained in:
commit
ccc3f09611
3 changed files with 44 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*~
|
||||
dist
|
37
.woodpecker.yml
Normal file
37
.woodpecker.yml
Normal file
|
@ -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
|
5
README.md
Normal file
5
README.md
Normal file
|
@ -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…
Reference in a new issue