Re: Dealing with zope.interface unsatisfiable build-dependency.
On 07/12/2019 07:47, peter green wrote: It would be preferable to only disable the testsuite for python2, but I have no idea how to do that, so my current debdiff disables the testsuite completely, I also ran into an issue with the package's clean target not cleaning up properly. Just realized I added moreutils to the build-depends, planning to use it in the clean target fix, but in the end I decided to just delete the file in question. So that build-dep should be dropped before upload.
Re: Dealing with zope.interface unsatisfiable build-dependency.
If you still wish to disable tests for python 2, you might be looking for this export PYBUILD_DISABLE_python2=test That line in debian/rules should work. You have some more options here: https://wiki.debian.org/Python/Pybuild and perhaps the manpages. On 07.12.2019 09:12, peter green wrote: On 07/12/2019 07:47, peter green wrote: It would be preferable to only disable the testsuite for python2, but I have no idea how to do that, so my current debdiff disables the testsuite completely, I also ran into an issue with the package's clean target not cleaning up properly. Just realized I added moreutils to the build-depends, planning to use it in the clean target fix, but in the end I decided to just delete the file in question. So that build-dep should be dropped before upload.
Re: Dealing with zope.interface unsatisfiable build-dependency.
On 07/12/2019 15:09, Håvard Flaget Aasen wrote: If you still wish to disable tests for python 2, you might be looking for this export PYBUILD_DISABLE_python2=test That line in debian/rules should work. You have some more options here: https://wiki.debian.org/Python/Pybuild and perhaps the manpages. Thanks, I found I also had to add export PYBUILD_DISABLE_python2-dbg=test to disable the tests for the python2 debug interpreter. Looking at the log confirms it's running the tests for python 3.x and not python 2.x as desired. New debdiff is attached. diff -Nru zope.interface-4.6.0/debian/changelog zope.interface-4.6.0/debian/changelog --- zope.interface-4.6.0/debian/changelog 2019-09-05 11:09:40.0 + +++ zope.interface-4.6.0/debian/changelog 2019-12-07 07:00:43.0 + @@ -1,3 +1,13 @@ +zope.interface (4.6.0-2) unstable; urgency=medium + + * QA upload. + * Drop build-dependency on nonexistent python-zope.event. Downgrades: #938909. + * Disable testsuite for python 2, it needs python-zope.event. +(keep testsuite enabled for python 3) + * Fix clean target. + + -- Peter Michael Green Sat, 07 Dec 2019 07:00:43 + + zope.interface (4.6.0-1) unstable; urgency=medium * QA upload. diff -Nru zope.interface-4.6.0/debian/control zope.interface-4.6.0/debian/control --- zope.interface-4.6.0/debian/control 2019-09-05 11:09:40.0 + +++ zope.interface-4.6.0/debian/control 2019-12-07 07:00:43.0 + @@ -12,7 +12,6 @@ python-all-dbg:any, python-all-dev:any, python-setuptools, - python-zope.event, python3-all-dbg:any, python3-all-dev:any, python3-setuptools, diff -Nru zope.interface-4.6.0/debian/rules zope.interface-4.6.0/debian/rules --- zope.interface-4.6.0/debian/rules 2016-07-05 21:43:11.0 + +++ zope.interface-4.6.0/debian/rules 2019-12-07 07:00:43.0 + @@ -3,6 +3,8 @@ export PYBUILD_NAME=zope.interface #export PYBUILD_VERBOSE=1 #export DH_VERBOSE=1 +export PYBUILD_DISABLE_python2=test +export PYBUILD_DISABLE_python2-dbg=test %: dh $@ --with python2,python3 --buildsystem=pybuild @@ -97,3 +99,9 @@ override_dh_strip: dh_strip -p$(package) --dbg-package=$(package)-dbg dh_strip -p$(package3) --dbg-package=$(package3)-dbg + +override_dh_auto_clean: + dh_auto_clean + rm -f .eggs/README.txt + rm -f src/zope.interface.egg-info/requires.txt + rm -f src/zope/interface/_zope_interface_coptimizations.*.so
[Help] consensuscore: Python2 removal in sid/bullseye
Control: tags -1 help Hi, I tried to port consensuscore to Python3 in Git[1]. Unfortunately 2to3 was not completely successfully since I get: dh_auto_build -O--buildsystem=pybuild I: pybuild base:217: /usr/bin/python3.8 setup.py build. WARNING: '' not a valid package name; please use only .-separated package names in setup.py running build Traceback (most recent call last): File "tools/find_boost", line 56, in boost = find_boost() File "tools/find_boost", line 44, in find_boost best_boost = max(boosts_found, key=lambda t: t[1])[0] TypeError: '>' not supported between instances of 'NoneType' and 'tuple' error: Failed to configure ConsensusCore build E: pybuild pybuild:341: build: plugin distutils failed with: exit code=1: /usr/bin/python3.8 setup.py build. Any hint how to fix this? Kind regards Andreas. [1] https://salsa.debian.org/med-team/consensuscore -- http://fam-tille.de
Re: RFS: opentracing-python/2.2.0-1 [ITP] -- opentracing interface for Python
Dear Debian-Python members, I have just added Upstream-Contact in debian/copyright, and kindly would like sponsorship for this package. ITP: 942069 RFS: 945178 Mentors: https://mentors.debian.net/package/opentracing-python Fabrice BAUZAC-STEHLY writes: > Package: sponsorship-requests > Severity: wishlist > > Dear mentors, > > I am looking for a sponsor for my package "opentracing-python" > > * Package name: opentracing-python >Version : 2.2.0-1 >Upstream Author : The OpenTracing Authors. > * URL : https://github.com/opentracing/opentracing-python > * License : Expat and Apache-2.0 > * Vcs : > https://salsa.debian.org/python-team/modules/opentracing-python >Section : python > > It builds those binary packages: > > python3-opentracing - opentracing interface for Python > python-opentracing-doc - opentracing interface for Python - documentation > > To access further information about this package, please visit the following > URL: > > https://mentors.debian.net/package/opentracing-python > > Alternatively, one can download the package with dget using this command: > > dget -x > https://mentors.debian.net/debian/pool/main/o/opentracing-python/opentracing-python_2.2.0-1.dsc > > Changes since the last upload: > >[ Fabrice BAUZAC ] >* Initial release, closes: #942069. Thanks a lot! Best regards -- Fabrice BAUZAC-STEHLY PGP 015AE9B25DCB0511D200A75DE5674DEA514C891D
Re: [Help] consensuscore: Python2 removal in sid/bullseye
On Sat, Dec 07, 2019 at 09:23:16PM +0100, Andreas Tille wrote: > I tried to port consensuscore to Python3 in Git[1]. Unfortunately 2to3 > was not completely successfully since I get: This isn't 2to3's fault. >dh_auto_build -O--buildsystem=pybuild > I: pybuild base:217: /usr/bin/python3.8 setup.py build. > WARNING: '' not a valid package name; please use only .-separated package > names in setup.py > running build > Traceback (most recent call last): > File "tools/find_boost", line 56, in > boost = find_boost() > File "tools/find_boost", line 44, in find_boost > best_boost = max(boosts_found, key=lambda t: t[1])[0] > TypeError: '>' not supported between instances of 'NoneType' and 'tuple' Such meaningless comparisons are indeed not supported in Python3. You need to filter out the items where version is None. -- WBR, wRAR signature.asc Description: PGP signature
[Help] Please switch to Python 3
Control: tags -1 help Hi, I upgraded python-pbcommand Git[1] to latest upstream commit which is work in progress to Python3. Unfortunately I'm facing some remaining test suite errors: ... [gw3] [ 98%] PASSED tests/test_validators.py::TestValidators::test_validate_report tests/test_validators.py::TestValidators::test_validate_report_fails [gw3] [ 99%] PASSED tests/test_validators.py::TestValidators::test_validate_report_fails [gw0] [100%] FAILED tests/test_testkit_xunit.py::TestXunitOutput::test_merge_junit_files_cmdline === FAILURES === ___ TestMalformedReport.test_bad_01 [gw0] linux -- Python 3.8.0 /usr/bin/python3.8 self = def test_bad_01(self): r = Report("stuff", uuid=1234) > d = r.to_dict() tests/test_models_report.py:355: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pbcommand/models/report.py:778: in to_dict _d = dict(v=pbcommand.get_version(), pbcommand/__init__.py:19: in get_version return ".".join([str(i) for i in VERSION]) pbcommand/__init__.py:19: in return ".".join([str(i) for i in VERSION]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .0 = > VERSION = (int(x) for x in __VERSION__.split('.')) E ValueError: invalid literal for int() with base 10: 'unknown' pbcommand/__init__.py:9: ValueError TestReportModel.test_from_simple_dict _ [gw2] linux -- Python 3.8.0 /usr/bin/python3.8 self = def test_from_simple_dict(self): r = Report.from_simple_dict("pbcommand_test", {"n_reads": 50}, "pbcommand") > json_dict = json.loads(r.to_json()) tests/test_models_report.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pbcommand/models/report.py:801: in to_json s = _to_json_with_decoder(self.to_dict()) pbcommand/models/report.py:778: in to_dict _d = dict(v=pbcommand.get_version(), pbcommand/__init__.py:19: in get_version return ".".join([str(i) for i in VERSION]) pbcommand/__init__.py:19: in return ".".join([str(i) for i in VERSION]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .0 = > VERSION = (int(x) for x in __VERSION__.split('.')) E ValueError: invalid literal for int() with base 10: 'unknown' pbcommand/__init__.py:9: ValueError TestXunitOutput.test_merge_junit_files_cmdline [gw0] linux -- Python 3.8.0 /usr/bin/python3.8 self = def test_merge_junit_files_cmdline(self): x1, x2 = self._get_junit_files() x_merged = tempfile.NamedTemporaryFile(suffix=".xml").name args = ["python3", "-m" "pbcommand.testkit.merge_junit_files", "-o", x_merged, x1, x2, "--quiet"] > assert subprocess.call(args) == 0 E assert 1 == 0 E -1 E +0 tests/test_testkit_xunit.py:106: AssertionError - Captured stderr call - Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/testkit/merge_junit_files.py", line 43, in sys.exit(main()) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/testkit/merge_junit_files.py", line 39, in main setup_log_func=setup_log) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/cli/core.py", line 212, in pacbio_args_runner dump_alarm_on_error=dump_alarm_on_error) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/cli/core.py", line 160, in _pacbio_main_runner alog.info("Using pbcommand v{v}".format(v=pbcommand.get_version())) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/__init__.py", line 19, in get_version return ".".join([str(i) for i in VERSION]) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/__init__.py", line 19, in return ".".join([str(i) for i in VERSION]) File "/build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/pbcommand/__init__.py", line 9, in VERSION = (int(x) for x in __VERSION__.split('.')) ValueError: invalid literal for int() with base 10: 'unknown' - generated xml file: /build/python-pbcommand-1.1.1+git20191122.ec024c3/.pybuild/cpython3_3.8_pbcommand/build/nosetests.xml - --- coverage: platform linux, python 3.8.0-final-0 --- Coverage XML written to file coverag
Re: Joining DPMT
On Thu, Nov 28, 2019 at 09:41:30PM -0500, James McCoy wrote: > Hi, > > I'd like to help maintain the python-neovim package, as part of my > general maintenance of the (neo)vim ecosystem. > > I've read the DPMT policy and agree to it. Ping? In case it helps, my Salsa nick is jamessan. Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB