[med-svn] [Git][med-team/python-csb][master] 2 commits: Fix Python3 syntax
Andreas Tille (@tille)
gitlab at salsa.debian.org
Tue Jul 4 19:58:20 BST 2023
Andreas Tille pushed to branch master at Debian Med / python-csb
Commits:
003f5f4b by Andreas Tille at 2023-07-04T20:49:22+02:00
Fix Python3 syntax
- - - - -
5a35bdbb by Andreas Tille at 2023-07-04T20:49:48+02:00
routine-update: Standards-Version: 4.6.2
- - - - -
4 changed files:
- debian/changelog
- debian/control
- + debian/patches/python3-syntax.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-csb (1.2.5+dfsg-9) UNRELEASED; urgency=medium
+
+ * Fix Python3 syntax
+ Closes: #1040283
+ * Standards-Version: 4.6.2 (routine-update)
+
+ -- Andreas Tille <tille at debian.org> Tue, 04 Jul 2023 20:47:54 +0200
+
python-csb (1.2.5+dfsg-8) unstable; urgency=medium
* Fix watch file
=====================================
debian/control
=====================================
@@ -12,7 +12,7 @@ Build-Depends: debhelper-compat (= 13),
python3-scipy,
python3-matplotlib,
python3-setuptools
-Standards-Version: 4.6.1
+Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/med-team/python-csb
Vcs-Git: https://salsa.debian.org/med-team/python-csb.git
Homepage: https://github.com/csb-toolbox/CSB
=====================================
debian/patches/python3-syntax.patch
=====================================
@@ -0,0 +1,45 @@
+Description: Fix Python3 syntax
+Bug-Debian: https://bugs.debian.org/1040283
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 04 Jul 2023 20:47:54 +0200
+
+--- a/csb/build.py
++++ b/csb/build.py
+@@ -288,7 +288,7 @@ Options:
+ epydoc.cli.cli()
+ sys.exit(0)
+ except SystemExit as ex:
+- if ex.code is 0:
++ if ex.code == 0:
+ self.log('\n Passed all doc tests')
+ else:
+ if ex.code == 2:
+@@ -342,7 +342,7 @@ Options:
+ self._strip_source(package)
+
+ except SystemExit as ex:
+- if ex.code is not 0:
++ if ex.code != 0:
+ self.log('\n FAIL: Setup returned: \n\n{0}\n'.format(ex))
+ self._success = False
+ package = 'FAIL'
+@@ -474,7 +474,7 @@ class RevisionHandler(object):
+ self._path = path
+ else:
+ raise IOError('Path not found: {0}'.format(path))
+- if Shell.run([sc, 'help']).code is 0:
++ if Shell.run([sc, 'help']).code == 0:
+ self._sc = sc
+ else:
+ raise RevisionError('Source control binary probe failed', None, None)
+--- a/csb/test/cases/core/__init__.py
++++ b/csb/test/cases/core/__init__.py
+@@ -70,7 +70,7 @@ class TestEnum(test.Case):
+ def testComparison(self):
+ self.assertEqual(self.enum.A, 0)
+ self.assertEqual(self.enum.C, 66)
+- self.assertFalse(self.enum.C is 66)
++ self.assertFalse(self.enum.C == 66)
+ self.assertFalse(isinstance(self.enum.A, int))
+
+ def testStr(self):
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ exclude_online_tests.patch
reproducible.patch
fix_setup.patch
avoid-multiple-namespace.patch
+python3-syntax.patch
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/16e42be0a105bf1f7630b8d7425fb4c48ee999a5...5a35bdbbaab16afcfd1700561f11ce36fc871974
--
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/16e42be0a105bf1f7630b8d7425fb4c48ee999a5...5a35bdbbaab16afcfd1700561f11ce36fc871974
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/20230704/f8b14879/attachment-0001.htm>
More information about the debian-med-commit
mailing list