Re: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'

2022-10-01 Thread Nilesh Patra
reassign -1 dh-python 5.20220924
stop

Hi,

On Sun, 18 Sep 2022 08:02:58 +0200 Lucas Nussbaum  wrote:
> Source: zope.testrunner
> > make[1]: Entering directory '/<>'
> > dh_python3 --shebang=/usr/bin/python3 -X tests
> > I: dh_python3 tools:114: replacing shebang in 
> > debian/python3-zope.testrunner/usr/bin/zope-testrunner3
> > I: dh_python3 tools:114: replacing shebang in 
> > debian/python3-zope.testrunner/usr/bin/zope-testrunner
> > Traceback (most recent call last):
> >   File "/usr/bin/dh_python3", line 284, in 
> > main()
> >   File "/usr/bin/dh_python3", line 214, in main
> > dependencies.parse(stats, options)
> >   File "/usr/share/dh-python/dhpython/depends.py", line 228, in parse
> > args += " -X '%s'" % pattern.replace("'", r"'\''")
> > AttributeError: 're.Pattern' object has no attribute 'replace'
> > make[1]: *** [debian/rules:20: override_dh_python3] Error 1

This looks like a bug with dh-python itself. Maybe this needs to be "sub" 
instead of "replace", similar
string regex replaces at a couple more places.

Please let me know if I made a mistake here and this is not a bug in dh-python.

-- 
Best,
Nilesh


signature.asc
Description: PGP signature


Re: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'

2022-10-01 Thread Stefano Rivera
Hi Nilesh (2022.10.01_09:48:50_+)
> > >   File "/usr/share/dh-python/dhpython/depends.py", line 228, in parse
> > > args += " -X '%s'" % pattern.replace("'", r"'\''")
> > > AttributeError: 're.Pattern' object has no attribute 'replace'
> > > make[1]: *** [debian/rules:20: override_dh_python3] Error 1
> 
> This looks like a bug with dh-python itself. Maybe this needs to be "sub" 
> instead of "replace", similar
> string regex replaces at a couple more places.

That looks like fallout from my migration of dh_python* to argparse. I
changed the objects used to represent regexes, but clearly didn't test
-X.

I'll upload a fix, now.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1021084: ITP: python-semantic-release -- Automatic Semantic Versioning for Python projects

2022-10-01 Thread Edward Betts
Package: wnpp
Severity: wishlist
Owner: Edward Betts 
X-Debbugs-Cc: debian-de...@lists.debian.org, debian-python@lists.debian.org

* Package name: python-semantic-release
  Version : 7.31.4
  Upstream Author : Rolf Erik Lekang 
* URL : https://github.com/relekang/python-semantic-release
* License : MIT
  Programming Lang: Python
  Description : Automatic Semantic Versioning for Python projects

  Python implementation of semantic-release for JS by Stephan Bönnemann.
  .
  Detect what the next version of the project should be based on the commits.
  Use the detected version to automate the release, upload to an artifact
  repository and post changelogs to GitHub.
 
I plan to maintain this package as part of the Python team.