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

Skip to content

Conversation

@offbyone
Copy link
Contributor

@offbyone offbyone commented Jan 1, 2025

offbyone and others added 2 commits January 1, 2025 14:37
- import the metadata using pdm import
- use importlib metadata for in-code version display
@codecov
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.91%. Comparing base (326d4b3) to head (5dae07e).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #951      +/-   ##
==========================================
+ Coverage   77.88%   77.91%   +0.02%     
==========================================
  Files         347      347              
  Lines       10669    10678       +9     
  Branches      504      504              
==========================================
+ Hits         8310     8320      +10     
- Misses       2200     2201       +1     
+ Partials      159      157       -2     
Flag Coverage Δ
unittests 77.91% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@offbyone offbyone force-pushed the pyproject-metadata branch from 87bd7b2 to c4bdb57 Compare January 2, 2025 15:31
@offbyone
Copy link
Contributor Author

offbyone commented Jan 2, 2025

@nijel would you be able to approve this to run CI please? This and my other PR should fix some issues with the build.

I can narrow it down a bit, but the thing currently blocking tests is the version bounds on urlllib/httpretty, which this PR addresses (and coincidentally also modernizes the build a bit)

(I don't need you to merge it, per se, although that'd also be great, mostly I want to have my CI approved so that I can make sure I am not breaking anything :) )

The dummy tests were failing on my non-UTC development machine, because
the timestamps were generated with mktime(), which uses the locale
settings from the host. Changing this to use the timezone-aware `now`
sorted it.
"pytest-cov>=2.7.1",
# pinned because of https://github.com/gabrielfalcao/HTTPretty/issues/484
"urllib3~=2.2.0",
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not mind dropping it from here and supporting only PEP 735 compliant tools for development (I use uv anyway).

@nijel nijel merged commit ec82b56 into python-social-auth:master Jan 6, 2025
9 checks passed
@nijel
Copy link
Member

nijel commented Jan 6, 2025

Merged, thanks for your contribution!

@nijel nijel self-assigned this Jan 6, 2025
@offbyone offbyone deleted the pyproject-metadata branch January 6, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants