Commit bc6a50d7 authored by Nicolas Boulenguez's avatar Nicolas Boulenguez

Prepare upload of 1.10-1 to unstable.

* Install new HTML documentation into a separate -doc package.
* Standards-Version: 4.2.0. Rules-Requires-Root: no.
* Update copyright file, both MIT and Apache-2.0 are allowed.
* Patch doc to avoid a non-packaged sphinx extension.
* Patch doc to use python3.7-doc instead of accessing the network.
* Register the documentation into doc-base.
parent 0fc14953
python-async-generator (1.10-1) unstable; urgency=medium
* New upstream release.
* Install new HTML documentation into a separate -doc package.
* Standards-Version: 4.2.0. Rules-Requires-Root: no.
* Update copyright file, both MIT and Apache-2.0 are allowed.
* Patch doc to avoid a non-packaged sphinx extension.
* Patch doc to use python3.7-doc instead of accessing the network.
* Register the documentation into doc-base.
-- Nicolas Boulenguez <nicolas@debian.org> Sun, 19 Aug 2018 11:52:04 +0200
python-async-generator (1.9-2) unstable; urgency=medium
* Fix missing component in VCS-* URLs.
......
# Force regeneration of the egg-info directory.
async_generator.egg-info/
# Created by debian/rules.
docs/build/
# Forgotten by upstream build system.
.pytest_cache/
......@@ -5,11 +5,17 @@ Maintainer: Nicolas Boulenguez <nicolas@debian.org>
Build-Depends:
debhelper (>= 11),
dh-python,
python3.7-doc,
# debian/patches/sphinx-no-network.diff.
python3-all,
python3-pytest,
python3-pytest-cov,
python3-setuptools,
Standards-Version: 4.1.4
python3-sphinx,
python3-sphinx-rtd-theme,
# docs/source/conf.py
Standards-Version: 4.2.0
Rules-Requires-Root: no
Homepage: https://github.com/python-trio/async_generator
Vcs-Browser: https://salsa.debian.org/debian/python-async-generator
Vcs-Git: https://salsa.debian.org/debian/python-async-generator.git
......@@ -19,8 +25,21 @@ Testsuite: autopkgtest-pkg-python
Package: python3-async-generator
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
Description: extensions to asynchronous generators for Python3 developers
Description: extensions to asynchronous generators for Python3
The python3 language provides some structures to process streaming
data with an interface similar to the iteration structures. This
module adds some convenient features like the yield from construct or
context managers.
Package: python3-async-generator-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}, ${sphinxdoc:Depends}
Built-Using: ${sphinxdoc:Built-Using}
Description: extensions to asynchronous generators for Python3 (documentation)
The python3 language provides some structures to process streaming
data with an interface similar to the iteration structures. This
module adds some convenient features like the yield from construct or
context managers.
.
This package contains the documentation.
......@@ -4,11 +4,14 @@ Source: https://github.com/python-trio/async_generator
Files: *
Copyright: 2016-2018 Nathaniel J. Smith <njs@pobox.com>
License: MIT
License: MIT or Apache-2.0
Files: debian/*
Copyright: 2018 Nicolas Boulenguez <nicolas@debian.org>
License: MIT
License: MIT or Apache-2.0
License: Apache-2.0
See /usr/share/common-licenses/Apache-2.0.
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a
......
sphinx-no-trio-extension.diff
sphinx-no-network.diff
Description: let sphinx use packaged python doc instead of accessing network
This patch cannot be forwarded because it hardcodes a path specifict
to Debian.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: not-needed
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -49,8 +49,8 @@
intersphinx_mapping = {
# 3.7 so that we can link to contextlib.asynccontextmanager
# This URL can switch back to /3 after cpython 3.7 is released
- "python": ('https://docs.python.org/3.7', None),
- "trio": ('https://trio.readthedocs.io/en/stable', None),
+ "python": ('https://docs.python.org/3.7',
+ ('/usr/share/doc/python3.7-doc/html/objects.inv', None)),
}
autodoc_member_order = "bysource"
Description: do not use sphinxcontrib_trio, not packaged in Debian.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: not-needed
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -44,7 +44,6 @@
'sphinx.ext.intersphinx',
'sphinx.ext.coverage',
'sphinx.ext.napoleon',
- 'sphinxcontrib_trio',
]
intersphinx_mapping = {
--- a/docs/source/reference.rst
+++ b/docs/source/reference.rst
@@ -164,7 +164,6 @@
covered:
.. function:: asynccontextmanager
- :decorator:
This is a backport of :func:`contextlib.asynccontextmanager`, which
wasn't added to the standard library until Python 3.7.
Document: async-generator
Title: Async generators and context managers for Python 3.5+
Author: Nathaniel J. Smith <njs@pobox.com>
Abstract:
The python3 language provides some structures to process streaming
data with an interface similar to the iteration structures. This
module adds some convenient features like the yield from construct or
context managers.
Section: Programming
Format: HTML
Index: /usr/share/doc/python3-async-generator/html/index.html
Files: /usr/share/doc/python3-async-generator/html
......@@ -3,4 +3,11 @@
export PYBUILD_NAME := async-generator
%:
dh $@ --with python3 --buildsystem=pybuild
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
.PHONY: override_dh_auto_build
override_dh_auto_build:
dh_auto_build --buildsystem=pybuild
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
$(MAKE) -C docs html
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment