Compare commits

...

50 commits

Author SHA1 Message Date
David Prévot 3bd6f7aceb
Update changelog for 0.5.0-2~bpo11+1~evo release 2023-03-03 14:24:47 +01:00
Jelmer Vernooij d3706a9150
releasing package python-click-threading version 0.5.0-2 2022-10-17 03:29:37 +01:00
Jelmer Vernooij 37baaa83ca
update changelog
Gbp-Dch: Ignore
2022-10-17 03:29:36 +01:00
Debian Janitor ee5673fd22 Remove constraints unnecessary since buster
* Build-Depends: Drop versioned constraint on python3-click.

Changes-By: deb-scrub-obsolete
2022-07-29 06:34:31 +00:00
Jeroen Ploemen 39ebe973c2
unreleased -> unstable 2021-11-29 09:05:57 +01:00
Jeroen Ploemen 77518ea0c7
enable salsa ci 2021-11-29 08:55:29 +01:00
Håvard Flaget Aasen 38c367276c
update changelog 2021-11-28 19:34:05 +01:00
Håvard Flaget Aasen fafc88ccf9
Update Standards-Version to 4.6.0. 2021-11-28 19:34:03 +01:00
Håvard Flaget Aasen e184c55863
Add rules-requires-root. 2021-11-28 19:34:00 +01:00
Håvard Flaget Aasen aa11ae19d8
d/copyright: Add upstream-contact. 2021-11-28 19:33:57 +01:00
Håvard Flaget Aasen 798e099483
Add upstream testsuite as autopkgtest. 2021-11-28 19:33:54 +01:00
Håvard Flaget Aasen 79456ea535
d/watch: Update to version 4. 2021-11-28 19:33:51 +01:00
Håvard Flaget Aasen 9f96834e2e
Drop patch, no longer needed. 2021-11-28 19:33:48 +01:00
Håvard Flaget Aasen aaaee62067
New upstream release. Closes: #996337, #997480, #1000732
Compatible with python3-click version 8.0
2021-11-28 19:33:38 +01:00
Håvard Flaget Aasen 516096d6ab Update upstream source from tag 'upstream/0.5.0'
Update to upstream version '0.5.0'
with Debian dir 07ec3b6f53
2021-11-28 18:36:50 +01:00
Håvard Flaget Aasen b638edcdd0 New upstream version 0.5.0 2021-11-28 18:36:50 +01:00
Debian Janitor 855ce5d752 Set upstream metadata fields: Bug-Submit.
Changes-By: lintian-brush
Fixes: lintian: upstream-metadata-missing-bug-tracking
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-bug-tracking.html
2021-08-30 05:10:20 +00:00
Debian Janitor 005c6e5585 Bump debhelper from old 12 to 13.
Changes-By: lintian-brush
Fixes: lintian: package-uses-old-debhelper-compat-version
See-also: https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html
2021-08-30 05:10:18 +00:00
Jelmer Vernooij 3cac6cbb61 Merge branch 'scrub-obsolete' into 'master'
Remove unnecessary constraints

See merge request python-team/packages/python-click-threading!2
2021-08-23 06:17:19 +00:00
Debian Janitor a9a62a878e Remove constraints unnecessary since stretch
* Build-Depends: Drop versioned constraint on dh-python.

Changes-By: deb-scrub-obsolete
2021-06-13 16:57:06 +00:00
Ondřej Nový 973c3cce56 d/control: Update Vcs-* fields with new Debian Python Team Salsa layout 2020-09-24 08:54:59 +02:00
Ondřej Nový f128a8b70b d/control: Update Maintainer field with new Debian Python Team contact address 2020-09-24 08:54:59 +02:00
Jelmer Vernooij 06fa37b237 Merge branch 'lintian-fixes' into 'master'
Fix some issues reported by lintian

See merge request python-team/modules/python-click-threading!1
2020-01-12 23:37:18 +00:00
Debian Janitor 55be84a9a3
Set upstream metadata fields: Bug-Database, Repository, Repository-Browse.
Fixes lintian: upstream-metadata-file-is-missing
See https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html for more details.
2019-12-12 17:00:06 +00:00
Debian Janitor e9b34ae6a7
Bump debhelper from old 9 to 12.
Fixes lintian: package-uses-old-debhelper-compat-version
See https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html for more details.
2019-12-12 16:59:44 +00:00
Ondřej Nový c416945faf releasing package python-click-threading version 0.4.4-2 2019-07-27 01:27:19 +02:00
Ondřej Nový 04c3cdc007 Drop Python 2 support. 2019-07-27 01:27:19 +02:00
Ondřej Nový 9442c58744 Use debhelper-compat instead of debian/compat 2019-07-20 00:13:41 +02:00
Ondřej Nový 331c4fb105 Convert git repository from git-dpm to gbp layout 2018-08-08 09:16:05 +02:00
Ondřej Nový 1f41fb3787 d/copyright: Use https protocol in Format field 2018-02-15 08:51:18 +01:00
Ondřej Nový 76a458ec58 d/control: Set Vcs-* to salsa.debian.org 2018-02-13 10:09:32 +01:00
Filip Pytloun d1994e87d5 Version 0.4.4 2017-12-11 17:34:51 +01:00
Filip Pytloun d0cd7edd3b merge patched into master 2017-12-11 17:33:49 +01:00
Filip Pytloun 2ed2031524 Import python-click-threading_0.4.4.orig.tar.gz 2017-12-11 17:33:41 +01:00
Filip Pytloun eb824fdb60 record new upstream branch created by importing python-click-threading_0.4.4.orig.tar.gz 2017-12-11 17:33:41 +01:00
Filip Pytloun 97c8c550c2 Fix conditional dependency on futures 2017-12-11 17:33:41 +01:00
Filip Pytloun c6e72957b6 New upstream release 2017-01-17 19:50:39 +01:00
Filip Pytloun 330fa0780a merge patched into master 2017-01-17 19:50:06 +01:00
Filip Pytloun 73fb80df65 record new upstream branch created by importing python-click-threading_0.4.3.orig.tar.gz 2017-01-17 19:49:58 +01:00
Filip Pytloun a6ab771391 Fix conditional dependency on futures 2017-01-17 19:49:58 +01:00
Ondřej Nový e7ce3f5238 releasing package python-click-threading version 0.4.2-1 2016-12-28 23:05:01 +01:00
Ondřej Nový 8d0f564a0f New upstream release 2016-12-28 22:53:15 +01:00
Ondřej Nový 535f4cf17e merge patched into master 2016-12-28 22:51:42 +01:00
Ondřej Nový 740dd8a32b record new upstream branch created by importing python-click-threading_0.4.2.orig.tar.gz 2016-12-28 22:51:39 +01:00
Filip Pytloun 46f53aa96c Fix conditional dependency on futures 2016-12-28 22:51:39 +01:00
Ondřej Nový e409056ae1 d/copyright: add contributors 2016-08-12 16:02:25 +02:00
Filip Pytloun 44181ceb11 merge patched into master 2016-08-12 11:23:21 +02:00
Filip Pytloun 6b4bd92e4c Fix conditional dependency on futures 2016-08-12 11:23:17 +02:00
Filip Pytloun cc7803cd7c Initial release 2016-08-11 11:46:33 +02:00
Filip Pytloun ef192dea7b Initialize git-dpm 2016-08-11 11:30:49 +02:00
17 changed files with 208 additions and 17 deletions

View file

@ -1,11 +1,11 @@
language: python
python:
- 2.7
- pypy
- 3.3
- 3.4
- 3.6
- 3.7
- 3.8
- 3.9
install:
- pip install -U tox setuptools wheel $(python -V |& grep -q 'Python 3.2' && echo 'pip<8.0 virtualenv<14.0')
- pip install -U tox setuptools wheel
script: tox

View file

@ -21,7 +21,7 @@ try:
except ImportError:
from futures import Future as _Future
__version__ = '0.4.3'
__version__ = '0.5.0'
_CTX_WORKER_KEY = __name__ + '.uiworker'

View file

@ -1,12 +1,15 @@
# -*- coding: utf-8 -*-
import inspect
import sys
PY2 = sys.version_info[0] == 2
if PY2:
getargspec = inspect.getargspec
exec('def reraise(tp, value, tb=None):\n raise tp, value, tb')
else:
getargspec = inspect.getfullargspec
def reraise(tp, value, tb=None):
if value.__traceback__ is not tb:
raise value.with_traceback(tb)

View file

@ -4,7 +4,7 @@ import types
import contextlib
import inspect
from ._compat import PY2
from ._compat import PY2, getargspec
class FunctionInfo(object):
@ -40,12 +40,16 @@ def patch_ui_functions(wrapper):
new_f = wrapper(_copy_fn(f), info)
argspec = inspect.getargspec(f)
signature = inspect.formatargspec(*argspec) \
.lstrip('(') \
.rstrip(')')
args = ', '.join(arg.split('=')[0].split(':')[0].strip()
for arg in signature.split(','))
orig_sig_obj = inspect.signature(f)
sig_obj = orig_sig_obj.replace(
parameters=[
p.replace(annotation=inspect.Parameter.empty)
for p in orig_sig_obj.parameters.values()
],
return_annotation=inspect.Signature.empty,
)
signature = str(sig_obj).lstrip('(').rstrip(')')
args = ', '.join(p for p in sig_obj.parameters.keys())
stub_f = eval('lambda {s}: {n}._real_click_fn({a})'
.format(n=f.__name__, s=signature, a=args))

7
debian/.gitlab-ci.yml vendored Normal file
View file

@ -0,0 +1,7 @@
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
# no compiled code
SALSA_CI_DISABLE_BLHC: 'true'

79
debian/changelog vendored Normal file
View file

@ -0,0 +1,79 @@
python-click-threading (0.5.0-2~bpo11+1~evo) bullseye-backports; urgency=medium
* Rebuild for bullseye-backports.
-- David Prévot <taffit@debian.org> Fri, 03 Mar 2023 14:24:40 +0100
python-click-threading (0.5.0-2) unstable; urgency=medium
[ Debian Janitor ]
* Remove constraints unnecessary since buster:
+ Build-Depends: Drop versioned constraint on python3-click.
-- Jelmer Vernooij <jelmer@debian.org> Mon, 17 Oct 2022 03:29:37 +0100
python-click-threading (0.5.0-1) unstable; urgency=medium
* Team upload.
[ Ondřej Nový ]
* d/control: Update Maintainer field with new Debian Python Team
contact address.
* d/control: Update Vcs-* fields with new Debian Python Team Salsa
layout.
[ Debian Janitor ]
* Remove constraints unnecessary since stretch:
+ Build-Depends: Drop versioned constraint on dh-python.
* Bump debhelper from old 9 to 13.
* Set upstream metadata fields: Bug-Database, Repository, Repository-
Browse, Bug-Submit.
[ Håvard Flaget Aasen ]
* New upstream version 0.5.0.
New upstream release is compatible with python3-click version 8.0.
Closes: #996337, #997480, #1000732
* Drop patch, no longer needed.
* d/watch: Update to version 4.
* Add upstream testsuite as autopkgtest.
* d/copyright: Add upstream-contact.
* Add rules-requires-root.
* Update Standards-Version to 4.6.0.
-- Håvard Flaget Aasen <haavard_aasen@yahoo.no> Mon, 29 Nov 2021 08:05:38 +0000
python-click-threading (0.4.4-2) unstable; urgency=medium
* Team upload.
* d/control: Set Vcs-* to salsa.debian.org
* d/copyright: Use https protocol in Format field
* Convert git repository from git-dpm to gbp layout
* Use debhelper-compat instead of debian/compat.
* Drop Python 2 support.
-- Ondřej Nový <onovy@debian.org> Sat, 27 Jul 2019 01:27:19 +0200
python-click-threading (0.4.4-1) unstable; urgency=medium
* New upstream version
* Bump standards version to 4.1.2 (no changes)
-- Filip Pytloun <filip@pytloun.cz> Mon, 11 Dec 2017 17:33:58 +0100
python-click-threading (0.4.3-1) unstable; urgency=medium
* New upstream release
-- Filip Pytloun <filip@pytloun.cz> Tue, 17 Jan 2017 19:50:15 +0100
python-click-threading (0.4.2-1) unstable; urgency=medium
* Team upload.
* New upstream release
-- Ondřej Nový <onovy@debian.org> Wed, 28 Dec 2016 23:04:51 +0100
python-click-threading (0.4.0-1) unstable; urgency=low
* initial release (Closes: #833996)
-- Filip Pytloun <filip@pytloun.cz> Thu, 11 Aug 2016 11:46:20 +0200

29
debian/control vendored Normal file
View file

@ -0,0 +1,29 @@
Source: python-click-threading
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Filip Pytloun <filip@pytloun.cz>
Section: python
Priority: optional
Build-Depends: debhelper-compat (= 13),
dh-python,
python3-all,
python3-click,
python3-pytest,
python3-setuptools
Standards-Version: 4.6.0
Testsuite: autopkgtest-pkg-python
Rules-Requires-Root: no
Homepage: https://github.com/click-contrib/click-threading
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-click-threading
Vcs-Git: https://salsa.debian.org/python-team/packages/python-click-threading.git
Package: python3-click-threading
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Utilities for multithreading in click - Python 3.x
Library for easier multithreaded development with Click.
Click is a Python package for creating beautiful command line interfaces in a
composable way with as little code as necessary. Its the “Command Line
Interface Creation Kit”. Its highly configurable but comes with sensible
defaults out of the box.
.
This package contains the Python 3.x module.

31
debian/copyright vendored Normal file
View file

@ -0,0 +1,31 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: click-threading
Upstream-Contact: Markus Unterwaditzer <markus@unterwaditzer.net>
Source: https://github.com/click-contrib/click-threading
Files: *
Copyright: 2014-2015 Markus Unterwaditzer & contributors
License: Expat
Files: debian/*
Copyright: 2016 Filip Pytloun <filip@pytloun.cz>
License: Expat
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

9
debian/rules vendored Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/make -f
export PYBUILD_NAME=click-threading
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_test:
LC_ALL=C.UTF-8 dh_auto_test

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View file

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

4
debian/tests/control vendored Normal file
View file

@ -0,0 +1,4 @@
Tests: upstream
Depends: @,
python3-all,
python3-pytest,

11
debian/tests/upstream vendored Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -efu
cp -rv tests "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
for py in $(py3versions -s); do
echo "[*] testing $py:"
$py -m pytest
done

4
debian/upstream/metadata vendored Normal file
View file

@ -0,0 +1,4 @@
Bug-Database: https://github.com/click-contrib/click-threading/issues
Bug-Submit: https://github.com/click-contrib/click-threading/issues/new
Repository: https://github.com/click-contrib/click-threading.git
Repository-Browse: https://github.com/click-contrib/click-threading

3
debian/watch vendored Normal file
View file

@ -0,0 +1,3 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/python-click-threading-$1\.tar\.gz/ \
https://github.com/click-contrib/click-threading/tags .*/v?(\d\S*)\.tar\.gz

View file

@ -23,7 +23,12 @@ setup(
install_requires=[
'click>=5.0',
],
extras_require={
':python_version < "3.2"': 'futures'
}
python_requires=">=3.6",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)

View file

@ -2,5 +2,5 @@
passenv = LANG
deps =
pytest
git+https://github.com/mitsuhiko/click
click
commands = py.test