deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
325 stars 79 forks source link

pdb set_trace in 1.4 #352

Closed marksweb closed 2 years ago

marksweb commented 2 years ago

I can't see it in the project source here, but in my test suite, and confirmed in the tar ball from pypi, there is a pdb.set_trace() in this package, v1.4. Specifically there is import pdb; pdb.set_trace() on line 1339, in applyStyleOnShape

You can see the output of my test suite showing this; https://github.com/marksweb/django-filer/runs/7694659281?check_suite_focus=true

github-actions[bot] commented 2 years ago

Thank you for raising your first issue! Your help to improve svglib is much appreciated!

claudep commented 2 years ago

Doh!! Sorry for the bad release and many thanks Mark for reporting it! I'll release 1.4.1 asap.

marksweb commented 2 years ago

@claudep if that came about because you'd been debugging something locally and that's where you built & released, I can thoroughly recommend releasing via github actions.

It's something I've brought to many packages and works on a simple workflow that requires a secret for pypi in the repo and gets triggered when you publish a release on here.

Here's an example; https://github.com/django-cms/django-filer/blob/master/.github/workflows/publish-to-live-pypi.yml

I also use a similar thing to publish to test.pypi.org when PRs merge to ensure that the main branch is releasable.

claudep commented 2 years ago

Thanks for the tip, I know the trend is to use GitHub actions. I generally prefer doing thing by hand, but I know the downside is errors like this one.