Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mypy-enabled PyBankID #68

Merged
merged 57 commits into from
Apr 24, 2024
Merged

Mypy-enabled PyBankID #68

merged 57 commits into from
Apr 24, 2024

Conversation

hbldh
Copy link
Owner

@hbldh hbldh commented Apr 24, 2024

Contains changes made in #67, #66, #65, #63, #61.

hbldh and others added 30 commits July 8, 2021 11:08
Corrected typo in examples
Fix breakage with urllib 2.0.x
The BankID pages now returns a captcha instead of the actual certificate when fetching with requests. The actual cert is now bundled instead of fetched each time.
Fixes for test certificate download and handling
* Test against Python 3.12

* Install setuptools after testing

* Swap out pkg_resources for importlib

* Downgrade importlib-resources to 5.12.0

* Always use compat package

* Read required packages in setup.py from requirements.txt

* Drop unused six and update docs

* Async client

* Tidy up async wrapper

* Install requirements-dev.txt on CI

* Add two more packages to requirements-dev.txt from CI

* Update bankid/jsonclient.py

Co-authored-by: David Svenson <[email protected]>

* Update bankid/jsonclient.py

Co-authored-by: David Svenson <[email protected]>

* Drop unused TypeVar

* Update bankid/jsonclient.py

Co-authored-by: David Svenson <[email protected]>

---------

Co-authored-by: David Svenson <[email protected]>
Sync and Async clients
Implementing parts of v6 API
Removing all v5 and v5.1 API implementations
Lacking documentation rewrite

Builds on #53, #54, #56, #57, #58
Documentation fixes
Renaming and docstring fixes
Demo app modifications
Version bump
hbldh and others added 27 commits March 22, 2024 15:44
Removed testing in windows and macos
Also removed 3.7 and 3.8 from test matrix.
Make it even easier to retrieve the test certificate by writing it into the current directory if no path is supplied.
This simplifies making use of it without having access to a client instance.
Expose QR code helper explicitly
Update README.rst - use pytest instead of py.test
Also, only keep a sync version of the ip_address fixture.

This avoids httpbin flakyness/unrelibility since the ip address fetch
only needs to happen once.
Supporting Python >=3.9 does not require using the backport.

Also, use joinpath() to simplify the retrival of the path+return
pathlib.Path instead of str.
Cache ip addresses in test suite.
Add mypy for type checking
@hbldh hbldh self-assigned this Apr 24, 2024
@hbldh hbldh merged commit 1394921 into master Apr 24, 2024
8 checks passed
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.

8 participants