[med-svn] [Git][python-team/packages/python-typechecks][master] replace nose with pytest, release
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Sun Aug 4 19:51:21 BST 2024
Alexandre Detiste pushed to branch master at Debian Python Team / packages / python-typechecks
Commits:
29d456a4 by Alexandre Detiste at 2024-08-04T20:50:36+02:00
replace nose with pytest, release
- - - - -
5 changed files:
- debian/changelog
- debian/control
- + debian/patches/remove-nose.patch
- + debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,12 @@
-python-typechecks (0.1.0+ds-4) UNRELEASED; urgency=medium
+python-typechecks (0.1.0+ds-4) unstable; urgency=medium
+ * Team upload.
+ * Replace python3-nose with python3-pytest (Closes: #1018591)
+
+ [ Debian Janitor ]
* Update standards version to 4.6.1, no changes needed.
- -- Debian Janitor <janitor at jelmer.uk> Fri, 14 Oct 2022 05:42:06 -0000
+ -- Alexandre Detiste <tchet at debian.org> Sun, 04 Aug 2024 20:48:57 +0200
python-typechecks (0.1.0+ds-3) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -7,7 +7,7 @@ Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
python3-setuptools,
python3-all,
- python3-nose <!nocheck>,
+ python3-pytest <!nocheck>,
Standards-Version: 4.6.1
Homepage: https://github.com/openvax/typechecks
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-typechecks
=====================================
debian/patches/remove-nose.patch
=====================================
@@ -0,0 +1,49 @@
+diff --git a/test/test_numbers.py b/test/test_numbers.py
+index 5dd0831..7152fc7 100644
+--- a/test/test_numbers.py
++++ b/test/test_numbers.py
+@@ -1,5 +1,5 @@
+ # coding=utf-8
+-from nose.tools import assert_raises
++import pytest
+ from typechecks import is_integer, require_integer
+
+ def test_is_integer():
+@@ -19,7 +19,7 @@ def test_require_integer():
+ require_integer(0)
+ require_integer(10)
+ require_integer(-10)
+- with assert_raises(TypeError):
++ with pytest.raises(TypeError):
+ require_integer("")
+- with assert_raises(TypeError):
+- require_integer(None)
+\ No newline at end of file
++ with pytest.raises(TypeError):
++ require_integer(None)
+diff --git a/test/test_strings.py b/test/test_strings.py
+index 1959f9b..8526255 100644
+--- a/test/test_strings.py
++++ b/test/test_strings.py
+@@ -1,5 +1,5 @@
+ # coding=utf-8
+-from nose.tools import assert_raises
++import pytest
+ from typechecks import is_string, require_string
+
+ def test_is_string():
+@@ -15,11 +15,11 @@ def test_is_string():
+
+ def test_require_string():
+ require_string("", nonempty=False)
+- with assert_raises(TypeError):
++ with pytest.raises(TypeError):
+ require_string(0, nonempty=False)
+- with assert_raises(TypeError):
++ with pytest.raises(TypeError):
+ require_string(0, nonempty=True)
+- with assert_raises(ValueError):
++ with pytest.raises(ValueError):
+ require_string("", nonempty=True)
+ require_string("1", nonempty=False)
+ require_string("1", nonempty=True)
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+remove-nose.patch
=====================================
debian/rules
=====================================
@@ -6,11 +6,6 @@ export PYBUILD_NAME=python-typechecks
%:
dh $@ --buildsystem=pybuild
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- nosetests3 --verbose
-endif
-
override_dh_auto_clean:
dh_auto_clean
rm -f typechecks.egg-info/PKG-INFO typechecks.egg-info/SOURCES.txt
View it on GitLab: https://salsa.debian.org/python-team/packages/python-typechecks/-/commit/29d456a415c3db5d14d4e1b7c1ad22985f422942
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-typechecks/-/commit/29d456a415c3db5d14d4e1b7c1ad22985f422942
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240804/c3ab28a0/attachment-0001.htm>
More information about the debian-med-commit
mailing list