code-specialist / fastapi-keycloak

Keycloak integration for Python FastAPI
https://fastapi-keycloak.code-specialist.com/
Apache License 2.0
193 stars 50 forks source link

Version 0.0.1a #8

Closed yannicschroeer closed 2 years ago

yannicschroeer commented 2 years ago
codecov-commenter commented 2 years ago

Codecov Report

Merging #8 (3681cf3) into master (7e7ba9a) will increase coverage by 5.10%. The diff coverage is 90.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   86.11%   91.22%   +5.10%     
==========================================
  Files           6        5       -1     
  Lines         324      467     +143     
==========================================
+ Hits          279      426     +147     
+ Misses         45       41       -4     
Impacted Files Coverage Δ
fastapi_keycloak/api.py 89.89% <81.48%> (+1.19%) :arrow_up:
fastapi_keycloak/__init__.py 100.00% <100.00%> (ø)
fastapi_keycloak/exceptions.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7e7ba9a...3681cf3. Read the comment docs.

yannicschroeer commented 2 years ago

Using flit is pretty straightforward. It's indeed way easier to overview. Instead of a setup.py we use a pyproject.yaml. The version and the short description are the first two lines of the __init__.py of the package. Create a .pypirc file in your home directory and append the details:

[distutils]
index-servers =
   pypi
   testpypi

[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-...

[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-...

Then you may simply use flit build and flit publish [--respository pypi | testpypi]

I also renamed the package for convenience to fastapi_keycloak. You may test installing the package via:

pip install -i https://test.pypi.org/simple/ fastapi_keycloak==0.0.1a1

If you approve, we may release it again under the new name.

code-specialist commented 2 years ago

Nice 🙌

Oh wow, didn't recognize that I'm logged in with the code-specialist account 🙃