Skip to content

Commit e3d7768

Browse files
lilmikeclassabbyamp
authored andcommitted
python3-pyperclip: update to 1.11.0.
1 parent caf4665 commit e3d7768

File tree

2 files changed

+53
-5
lines changed

2 files changed

+53
-5
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
From 40d1d3a154e1d87ac229d5b8b81ca403c45eb862 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= <[email protected]>
3+
Date: Wed, 13 Nov 2024 09:52:33 +0100
4+
Subject: [PATCH] Fix test suite for release 1.9.0
5+
6+
---
7+
tests/test_pyperclip.py | 13 ++++++-------
8+
1 file changed, 6 insertions(+), 7 deletions(-)
9+
10+
diff --git a/tests/test_pyperclip.py b/tests/test_pyperclip.py
11+
index cf31b56..5300785 100644
12+
--- a/tests/test_pyperclip.py
13+
+++ b/tests/test_pyperclip.py
14+
@@ -8,7 +8,7 @@
15+
#import sys
16+
#sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
17+
18+
-from pyperclip import _executable_exists, HAS_DISPLAY
19+
+from pyperclip import _executable_exists
20+
from pyperclip import (init_osx_pbcopy_clipboard, init_osx_pyobjc_clipboard,
21+
init_dev_clipboard_clipboard,
22+
init_qt_clipboard,
23+
@@ -99,12 +99,11 @@ def test_non_str(self):
24+
self.copy(False)
25+
self.assertEqual(self.paste(), 'False')
26+
27+
- # All other non-str values raise an exception.
28+
- with self.assertRaises(PyperclipException):
29+
- self.copy(None)
30+
+ self.copy(None)
31+
+ self.assertEqual(self.paste(), 'None')
32+
33+
- with self.assertRaises(PyperclipException):
34+
- self.copy([2, 4, 6, 8])
35+
+ self.copy([2, 4, 6, 8])
36+
+ self.assertEqual(self.paste(), '[2, 4, 6, 8]')
37+
38+
39+
class TestCygwin(_TestClipboard):
40+
@@ -135,7 +134,7 @@ class TestOSX(_TestClipboard):
41+
42+
43+
class TestQt(_TestClipboard):
44+
- if HAS_DISPLAY:
45+
+ if os.getenv("DISPLAY"):
46+
try:
47+
import PyQt5.QtWidgets
48+
except ImportError:

srcpkgs/python3-pyperclip/template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Template file for 'python3-pyperclip'
22
pkgname=python3-pyperclip
3-
version=1.8.2
4-
revision=5
5-
build_style=python3-module
6-
hostmakedepends="python3-setuptools"
3+
version=1.11.0
4+
revision=1
5+
build_style=python3-pep517
6+
hostmakedepends="hatchling python3-setuptools"
77
depends="python3"
88
checkdepends="python3-pytest xclip xvfb-run"
99
short_desc="Cross-platform clipboard module (Python3)"
1010
maintainer="Orphaned <[email protected]>"
1111
license="BSD-3-Clause"
1212
homepage="https://pypi.org/project/pyperclip"
1313
distfiles="${PYPI_SITE}/p/pyperclip/pyperclip-${version}.tar.gz"
14-
checksum=105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57
14+
checksum=244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6
1515
make_check_pre="xvfb-run"
1616

1717
post_install() {

0 commit comments

Comments
 (0)