diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..948f854 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/stretch + steps: + - checkout + - run: + name: Install dependencies + command: | + sudo dpkg --add-architecture armhf + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt-get install -y gcc python3-dev python3-dbg pkg-config \ + nmap iptables devscripts ruby2.3-dev rubygems \ + build-essential:native python-setuptools python3-all python3-setuptools \ + crossbuild-essential-armhf binutils-multiarch + - run: + name: Install PackageCloud + command: | + sudo gem install rake package_cloud + - run: + name: Build dpkg amd64 + command: | + debuild -i -us -uc -b + mkdir -p /tmp/deb + mv ../*.deb /tmp/deb + - run: + name: Build dpkg armhf + command: | + sudo apt-get install -y python3-all:armhf + debuild -aarmhf -i -us -uc -b + mkdir -p /tmp/deb + mv ../*.deb /tmp/deb + - deploy: + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + package_cloud push wott/python-iptables/debian/stretch /tmp/deb/*.deb + package_cloud push wott/python-iptables/raspbian/stretch /tmp/deb/*.deb + fi + - store_artifacts: + path: /tmp/deb diff --git a/debian/changelog b/debian/changelog index e8bab22..c432745 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-iptables (0.14.0) stable; urgency=medium + + * update debian changelog + + -- Artem Martynovich Mon, 06 May 2019 23:02:50 +0600 + python-iptables (0.12.0) xenial; urgency=low * update debian changelog diff --git a/debian/control b/debian/control index 2f82047..dae8bed 100644 --- a/debian/control +++ b/debian/control @@ -2,34 +2,20 @@ Source: python-iptables Section: net Priority: extra Maintainer: Juliano Martinez -Build-depends: python-all-dev (>= 2.7), python-all-dbg (>= 2.7), python3-all-dev (>= 3.2), python3-all-dbg, debhelper (>= 7) -X-Python-Version: >= 2.7 -X-Python3-Version: >= 3.2 -Standards-Version: 3.8.4 +Build-Depends: + debhelper (>= 8), + dh-python, + python3-dbg, + python-setuptools, + python3-all, + python3-setuptools +Standards-Version: 3.9.8 +X-Python3-Version: >= 3.5 Homepage: https://github.com/ldx/python-iptables -Package: python-iptables -Architecture: any -Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} -Provides: ${python:Provides} -Description: Python bindings for iptables - Python-iptables is a Python project that provides bindings to the iptables C libraries in Linux. - Interoperability with iptables is achieved using the iptables C libraries (libiptc, libxtables, - and iptables extensions), not calling the iptables executable and parsing its output as most other - iptables wrapper libraries do; this makes python-iptables faster and not prone to parsing errors, - at the same time leveraging all available iptables match and target extensions without further work. - -Package: python-iptables-dbg -Section: debug -Priority: extra -Architecture: any -Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-iptables (= ${binary:Version}) -Provides: ${python:Provides} -Description: Python bindings for iptables - Package: python3-iptables Architecture: any -Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} +Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-pkg-resources Description: Python3 bindings for iptables Package: python3-iptables-dbg diff --git a/debian/rules b/debian/rules index 4fd181a..f3a7867 100755 --- a/debian/rules +++ b/debian/rules @@ -4,10 +4,9 @@ # Thu, 14 Nov 2013 16:04:50 +0100 PY3VERS := $(shell py3versions -r) -PY2VERS := $(shell pyversions -r) %: - dh $@ --with python2,python3 --buildsystem=python_distutils + dh $@ --with python3 --buildsystem=python_distutils .PHONY: override_dh_clean override_dh_clean: @@ -27,22 +26,11 @@ override_dh_auto_install: set -e; \ mkdir -p $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d; \ echo "/usr/lib/python3/dist-packages" > $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d/python3-dist-packages.conf - - set -e; \ - for py in $(PY2VERS); do \ - $$py -B setup.py install --root debian/python-iptables --install-layout deb; \ - $$py-dbg -B setup.py install --root debian/python-iptables-dbg --install-layout deb; \ - done .PHONY: override_dh_strip override_dh_strip: set -e; \ - dh_strip -ppython-ev --dbg-package=python-iptables-dbg; \ - dh_strip -ppython3-ev --dbg-package=python3-iptables-dbg; - -override_dh_python2: - dh_python2 -ppython-iptables - dh_python2 -ppython-iptables-dbg + dh_strip -ppython3-ev --dbg-package=python3-iptables-dbg; override_dh_python3: dh_python3 -ppython3-iptables