Compare commits
No commits in common. "bullseye-backport" and "upstream/0.4.3" have entirely different histories.
bullseye-b
...
upstream/0
10
.travis.yml
10
.travis.yml
|
@ -1,11 +1,11 @@
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- 3.6
|
- 2.7
|
||||||
- 3.7
|
- pypy
|
||||||
- 3.8
|
- 3.3
|
||||||
- 3.9
|
- 3.4
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -U tox setuptools wheel
|
- pip install -U tox setuptools wheel $(python -V |& grep -q 'Python 3.2' && echo 'pip<8.0 virtualenv<14.0')
|
||||||
script: tox
|
script: tox
|
||||||
|
|
|
@ -21,7 +21,7 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from futures import Future as _Future
|
from futures import Future as _Future
|
||||||
|
|
||||||
__version__ = '0.5.0'
|
__version__ = '0.4.3'
|
||||||
|
|
||||||
_CTX_WORKER_KEY = __name__ + '.uiworker'
|
_CTX_WORKER_KEY = __name__ + '.uiworker'
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import inspect
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
PY2 = sys.version_info[0] == 2
|
PY2 = sys.version_info[0] == 2
|
||||||
|
|
||||||
if PY2:
|
if PY2:
|
||||||
getargspec = inspect.getargspec
|
|
||||||
exec('def reraise(tp, value, tb=None):\n raise tp, value, tb')
|
exec('def reraise(tp, value, tb=None):\n raise tp, value, tb')
|
||||||
else:
|
else:
|
||||||
getargspec = inspect.getfullargspec
|
|
||||||
def reraise(tp, value, tb=None):
|
def reraise(tp, value, tb=None):
|
||||||
if value.__traceback__ is not tb:
|
if value.__traceback__ is not tb:
|
||||||
raise value.with_traceback(tb)
|
raise value.with_traceback(tb)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import types
|
||||||
import contextlib
|
import contextlib
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
from ._compat import PY2, getargspec
|
from ._compat import PY2
|
||||||
|
|
||||||
|
|
||||||
class FunctionInfo(object):
|
class FunctionInfo(object):
|
||||||
|
@ -40,16 +40,12 @@ def patch_ui_functions(wrapper):
|
||||||
|
|
||||||
new_f = wrapper(_copy_fn(f), info)
|
new_f = wrapper(_copy_fn(f), info)
|
||||||
|
|
||||||
orig_sig_obj = inspect.signature(f)
|
argspec = inspect.getargspec(f)
|
||||||
sig_obj = orig_sig_obj.replace(
|
signature = inspect.formatargspec(*argspec) \
|
||||||
parameters=[
|
.lstrip('(') \
|
||||||
p.replace(annotation=inspect.Parameter.empty)
|
.rstrip(')')
|
||||||
for p in orig_sig_obj.parameters.values()
|
args = ', '.join(arg.split('=')[0].split(':')[0].strip()
|
||||||
],
|
for arg in signature.split(','))
|
||||||
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})'
|
stub_f = eval('lambda {s}: {n}._real_click_fn({a})'
|
||||||
.format(n=f.__name__, s=signature, a=args))
|
.format(n=f.__name__, s=signature, a=args))
|
||||||
|
|
7
debian/.gitlab-ci.yml
vendored
7
debian/.gitlab-ci.yml
vendored
|
@ -1,7 +0,0 @@
|
||||||
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
79
debian/changelog
vendored
|
@ -1,79 +0,0 @@
|
||||||
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 VernooÄł <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
29
debian/control
vendored
|
@ -1,29 +0,0 @@
|
||||||
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. It’s the “Command Line
|
|
||||||
Interface Creation Kit”. It’s highly configurable but comes with sensible
|
|
||||||
defaults out of the box.
|
|
||||||
.
|
|
||||||
This package contains the Python 3.x module.
|
|
31
debian/copyright
vendored
31
debian/copyright
vendored
|
@ -1,31 +0,0 @@
|
||||||
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
9
debian/rules
vendored
|
@ -1,9 +0,0 @@
|
||||||
#!/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
1
debian/source/format
vendored
|
@ -1 +0,0 @@
|
||||||
3.0 (quilt)
|
|
1
debian/source/options
vendored
1
debian/source/options
vendored
|
@ -1 +0,0 @@
|
||||||
extend-diff-ignore = "^[^/]*[.]egg-info/"
|
|
4
debian/tests/control
vendored
4
debian/tests/control
vendored
|
@ -1,4 +0,0 @@
|
||||||
Tests: upstream
|
|
||||||
Depends: @,
|
|
||||||
python3-all,
|
|
||||||
python3-pytest,
|
|
11
debian/tests/upstream
vendored
11
debian/tests/upstream
vendored
|
@ -1,11 +0,0 @@
|
||||||
#!/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
4
debian/upstream/metadata
vendored
|
@ -1,4 +0,0 @@
|
||||||
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
3
debian/watch
vendored
|
@ -1,3 +0,0 @@
|
||||||
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
|
|
11
setup.py
11
setup.py
|
@ -23,12 +23,7 @@ setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'click>=5.0',
|
'click>=5.0',
|
||||||
],
|
],
|
||||||
python_requires=">=3.6",
|
extras_require={
|
||||||
classifiers=[
|
':python_version < "3.2"': 'futures'
|
||||||
"Programming Language :: Python :: 3",
|
}
|
||||||
"Programming Language :: Python :: 3.6",
|
|
||||||
"Programming Language :: Python :: 3.7",
|
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue