Skip to content

Conversation

@akx
Copy link

@akx akx commented Aug 20, 2025

This PR switches from setup.py to modern PEP 517 packaging using Hatchling as the build backend.

  • The version number is now maintained in dj_database_url/__init__.py (where Hatchling picks it up from). You can use e.g. uvx hatch version minor to do version bumps.
  • Also adds a requires-python marker (see discussion in Use typing.Dict type #271).
    • With the marker added, the package actually refuses to install on Python 3.9, so that's removed from the CI matrix.

I made sure to diff the sdist and wheel between the old and new versions, and there are no material differences (as it should be).

Also adds a `requires-python` marker
@codecov
Copy link

codecov bot commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7cc1121) to head (06c8054).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #273   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          130       131    +1     
  Branches        14        14           
=========================================
+ Hits           130       131    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@akx akx marked this pull request as ready for review September 2, 2025 10:07
@akx akx mentioned this pull request Sep 2, 2025
@akx akx requested a review from mattseymour September 2, 2025 10:08
@mattseymour
Copy link
Contributor

I will give this a test today.

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