Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lambacck
Copy link
Contributor

@lambacck lambacck commented Jan 30, 2025

This fixes tests on Github that are failing for several reasons:

  • Python 3.7 is not supported on the latest Ubuntu and MacOS images
  • The URL doctest is failing on a redirect from http to https

It also adds automation to publish to pypi when a tag is pushed.

@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch 3 times, most recently from 7010cfb to 4f0e394 Compare January 30, 2025 14:03
This fixes tests on Github that are failing for several reasons:
- Python 3.7 is not supported on the latest Ubuntu and MacOS images
- The URL doctest is failing on a redirect from http to https
@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch from 4f0e394 to 298bbb4 Compare January 30, 2025 14:07
@lambacck lambacck changed the title Fix test automation Fix test automation and automate releases when a tag is pushed Jan 30, 2025
@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch from d51a52a to a68877f Compare January 31, 2025 13:35
@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch 3 times, most recently from bdebcc4 to 6670dc4 Compare January 31, 2025 15:09
In Python 3.13 and later the cgi module has been removed and this meant
that importing the `cgi` module started making it so
`formencode.validators` could not be imported. This was resolved in #176
by detecting the import error, setting `cgi` to `None`, and then
skipping behaviour that used `cgi.FieldStorage`. Using
`FieldStorageUploadConverter` without `cgi.FieldStorage` does not make
sense. This change adds a check to
`FieldStorageUploadConverter.__init_` to prevent instantiating it
like we do for DNS validators so that using it doesn't silently do
nothing.

Probably if you are using FieldStorageUploadConverter then you'll have
`legacy-cgi` installed because you are either already using it directly,
or you are getting it transitively through something like WebOb.
@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch from 6670dc4 to 35afa0f Compare January 31, 2025 15:15
@lambacck lambacck force-pushed the automated-pypi-release-and-2.1.1 branch from 35afa0f to c296946 Compare January 31, 2025 15:20
@lambacck lambacck merged commit c9659d6 into main Jan 31, 2025
26 checks passed
@lambacck lambacck deleted the automated-pypi-release-and-2.1.1 branch January 31, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants