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

Piotr Ożarowski piotr at moszumanska.debian.org
Sun Nov 6 21:49:21 UTC 2016


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

piotr pushed a commit to branch master
in repository yarl.

commit 1a15e9ce70bd952bb7b34a24aa9f258898eab02c
Author: Piotr Ożarowski <ozarow at gmail.com>
Date:   Sun Nov 6 22:09:43 2016 +0100

    add initial Debian packaging
---
 debian/.git-dpm             |  3 ++
 debian/changelog            |  5 +++
 debian/clean                |  1 +
 debian/compat               |  1 +
 debian/control              | 80 +++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright            | 15 +++++++++
 debian/python-yarl-doc.docs |  2 ++
 debian/rules                | 13 ++++++++
 debian/source/options       |  2 ++
 debian/watch                |  3 ++
 10 files changed, 125 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index 4ac4782..85868e3 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 yarl_0.5.3.orig.tar.gz
 9b974b1d3170d10bcef7ebdbb6bc0adad8021f2f
 115546
+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..62047a5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+yarl (0.5.3-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Piotr Ożarowski <piotr at debian.org>  Sun, 06 Nov 2016 14:16:42 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..3c3a762
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+./yarl/_quoting.c
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..e35bc87
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,80 @@
+Source: yarl
+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,
+               python3-all-dev,
+               python3-setuptools,
+               python3-sphinx,
+               python3-multidict,
+# tests:
+               python3-pytest,
+Standards-Version: 3.9.8
+Homepage: https://github.com/aio-libs/yarl/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/yarl.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/yarl.git
+
+Package: python3-yarl
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: yet another URL library for Python
+ URL is constructed from `str`:
+ .
+  >>> from yarl import URL
+  >>> url = URL('https://www.python.org/~guido?arg=1#frag')
+  >>> url
+  URL('https://www.python.org/~guido?arg=1#frag')
+ .
+ All URL parts: scheme, user, passsword, host, port, path, query and fragment
+ are accessible by properties:
+ .
+  >>> url.scheme
+  'https'
+  >>> url.host
+  'www.python.org'
+  >>> url.path
+  '/~guido'
+  >>> url.query_string
+  'arg=1'
+  >>> url.query
+  <MultiDictProxy('arg': '1')>
+  >>> url.fragment
+  'frag'
+ .
+ All URL manipulations produces a new URL object:
+ .
+  >>> url.parent / 'downloads/source'
+  URL('https://www.python.org/downloads/source')
+ .
+ Strings passed to constructor and modification methods are automatically
+ encoded giving canonical representation as result::
+ .
+  >>> url = URL('https://www.python.org/путь')
+  >>> url
+  URL('https://www.python.org/%D0%BF%D1%83%D1%82%D1%8C')
+ .
+ Regular properties are percent-decoded, use `raw_` versions for getting
+ encoded strings:
+ .
+  >>> url.path
+  '/путь'
+ .
+  >>> url.raw_path
+  '/%D0%BF%D1%83%D1%82%D1%8C'
+ .
+ Human readable representation of URL is available as `.human_repr()`:
+ .
+  >>> url.human_repr()
+  'https://www.python.org/путь'
+
+Package: python-yarl-doc
+Section: doc
+Architecture: all
+Priority: extra
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: documentation for the yarl Python library
+ This package provides documentation for yarl 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8636027
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: yarl
+Upstream-Contact: Andrew Svetlov <andrew.svetlov at gmail.com>
+Source: https://github.com/aio-libs/yarl/
+
+Files: *
+Copyright: Andrew Svetlov <andrew.svetlov at gmail.com>
+License: Apache2
+
+Files: debian/*
+Copyright: 2016 © Piotr Ożarowski <piotr at debian.org>
+License: Apache2
+
+License: Apache2
+ See /usr/share/common-licenses/Apache-2.0
\ No newline at end of file
diff --git a/debian/python-yarl-doc.docs b/debian/python-yarl-doc.docs
new file mode 100644
index 0000000..1618a62
--- /dev/null
+++ b/debian/python-yarl-doc.docs
@@ -0,0 +1,2 @@
+.pybuild/docs/*
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c1c8417
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=yarl
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+	cd docs && \
+	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
+	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
+	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
+endif
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..837b9f7
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+extend-diff-ignore="^[^/]+.egg-info/"
+extend-diff-ignore=yarl/_quoting.c
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2642b86
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/yarl/yarl-(.+)\.(?: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/yarl.git



More information about the Python-modules-commits mailing list