commit ccc3f096110f154f98073737f8e738b8e1ef1330 Author: Benjamin Renard Date: Fri Apr 29 12:01:53 2022 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..733412c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +dist diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..2b0c568 --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..183e717 --- /dev/null +++ b/README.md @@ -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.