[Python-modules-commits] [asyncpg] 03/03: add initial Debian packaging

Piotr Ożarowski piotr at moszumanska.debian.org
Fri Oct 28 17:06:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

piotr pushed a commit to branch master
in repository asyncpg.

commit 022d23cbe721db0ab7516e44e99ad64eecce1728
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Fri Oct 28 19:01:48 2016 +0200

    add initial Debian packaging
---
 debian/.git-dpm             |  3 +++
 debian/changelog            |  6 ++++++
 debian/compat               |  1 +
 debian/control              | 39 +++++++++++++++++++++++++++++++++++++++
 debian/copyright            | 15 +++++++++++++++
 debian/python3-asyncpg.docs |  1 +
 debian/rules                | 11 +++++++++++
 debian/source/options       |  2 ++
 debian/watch                |  3 +++
 9 files changed, 81 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index 5d4e27f..687c077 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 asyncpg_0.6.3.orig.tar.gz
 3007a968af1e24132e852119f95dad6f41055212
 351579
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8ac3de
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+asyncpg (0.6.3-1) unstable; urgency=low
+
+  * Initial release (closes: 842345)
+
+ -- Piotr Ożarowski <piotr at debian.org>  Fri, 28 Oct 2016 08:29:29 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6731331
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: asyncpg
+Section: python
+Priority: optional
+Maintainer: Piotr Ożarowski <piotr at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+               cython3 (>= 0.24),
+               python3-all-dev,
+               python3-setuptools,
+# tests:
+               postgresql,
+               postgresql-contrib,
+               libpq-dev
+Standards-Version: 3.9.8
+Homepage: https://magicstack.github.io/asyncpg
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/asyncpg.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/asyncpg.git
+X-Python3-Version: >= 3.5
+
+Package: python3-asyncpg
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: asyncio PosgtreSQL driver
+ Database interface library designed specifically for PostgreSQL and
+ Python/asyncio.
+ asyncpg is an efficient, clean implementation of PostgreSQL server binary
+ protocol for use with Python's asyncio framework.
+ It implements PostgreSQL server protocol natively and exposes its features
+ directly.
+ .
+ Features:
+  * prepared statements,
+  * scrollable cursors,
+  * partial iteration on query results,
+  * automatic encoding and decoding of composite types, arrays, and any
+    combination of those,
+  * straightforward support for custom data types
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..613cb5a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: asyncpg
+Upstream-Contact: MagicStack Inc <hello at magic.io>
+Source: 
+
+Files: *
+Copyright: MagicStack Inc <hello at magic.io>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 © Piotr Ożarowski <piotr at sar0.p1otr.com>
+License: Apache-2.0
+
+License: Apache-2.0
+ See /usr/share/common-licenses/Apache-2.0
diff --git a/debian/python3-asyncpg.docs b/debian/python3-asyncpg.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-asyncpg.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6936634
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=asyncpg
+export PYBUILD_TEST_ARGS=-s {build_dir}/tests
+export PYBUILD_BUILD_ARGS=build_ext --cython-always
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_install:
+	dh_auto_install
+	find debian/python3-asyncpg/usr/lib \( -name '*.c' -or -name '*.h' -or -name '*.px[di]' -or -name '*.pyx' \) -delete
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..64f65d1
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+extend-diff-ignore="^[^/]+.egg-info/"
+extend-diff-ignore=asyncpg/protocol/protocol.c
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..814d1ed
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/asyncpg/asyncpg-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/asyncpg.git



More information about the Python-modules-commits mailing list