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

Update the _types module to primitives types #26

Merged
merged 4 commits into from
Oct 1, 2021

Conversation

bmoore
Copy link
Contributor

@bmoore bmoore commented Oct 1, 2021

This is a change in the way the hazmat section of the cryptography module is organized. This fixes the error received when using the most up to date version of cryptography (at the date of writing).

Close #25

This is a change in the way the hazmat section of the cryptography module is organized. This fixes the error received when using the most up to date version of cryptography (at the date of writing).
@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

Probably need to bump cryptography requirement in pyproject.toml.

incrementing to v35.0.0 or higher.
@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

I can see I’ve forgot to write a contributing guide, so pipelines fail on linting. Would you do a pre-commit install and pre-commit run —all-files? That will run all linters(such as isort which is failing)

EDIT: You can use this in the meantime.

Also seems like GitHub action cache is messing up. Could you reset it by changing the -2 to -3 this line?

EDIT2: Ah, seems like you didn’t do the version upgrade through poetry. Please run a poetry update

… since it is directly imported in project files.
pyproject.toml Outdated Show resolved Hide resolved
@bmoore
Copy link
Contributor Author

bmoore commented Oct 1, 2021

I missed the poetry update command. Running that now. I'm not terribly familiar with this development flow. I'll reset the python-jose to reference the extra. What is the reason for keeping it as an extra? Does that define certain optional dependencies?

@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

I missed the poetry update command. Running that now. I'm not terribly familiar with this development flow.

No worries, you're quicker to fix things than I am to review, so this has been easy for me 🚀

I'll reset the python-jose to reference the extra. What is the reason for keeping it as an extra? Does that define certain optional dependencies?

Honestly only for clarity, since it supports multiple backends. That way there is no question which one we use.

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #26 (3a824ef) into main (1eec23e) will not change coverage.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##             main      #26   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files           5        5           
  Lines         174      174           
=======================================
  Hits          174      174           
Impacted Files Coverage Δ
fastapi_azure_auth/openid_config.py 100.0% <100.0%> (ø)

@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

Thank you! I'll release a new version ASAP.

@JonasKs JonasKs merged commit 6cd1bac into Intility:main Oct 1, 2021
@JonasKs JonasKs mentioned this pull request Oct 1, 2021
@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

@bmoore
Copy link
Contributor Author

bmoore commented Oct 1, 2021

Thank you for all the review and help getting this fix out there!

@JonasKs
Copy link
Member

JonasKs commented Oct 1, 2021

My pleasure 😊

nikstuckenbrock pushed a commit to nikstuckenbrock/fastapi-azure-auth that referenced this pull request Oct 16, 2023
Update the _types module to primitives types
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.

Cryptography package changed hazmat primitives [BUG/Question]
3 participants