dnnv icon indicating copy to clipboard operation
dnnv copied to clipboard

Update build system to flit_core

Open takluyver opened this issue 1 year ago • 1 comments

Hi, I'm opening this pull request as part of a push to modernise how packages use Flit as a Python build backend.

Using flit_core as the backend in place of flit is recommended in the docs, and will make it faster for tools like pip & build to build your package from source, as it has fewer dependencies to install.

Specifying an explicit version range (>=2,<4) helps to ensure that your package can still be readily built from source despite changes in future major versions of Flit, because it will still use version 3.x. For instance, a future version is likely to drop support for the [tool.flit.metadata] table, in favour of the now-standardised [project] table for metadata. This is also in the docs, along with details of which versions support which features.

Most users probably install your package from a pre-built 'wheel' on PyPI, so this changes won't affect them at all. But people who install from a git checkout, for instance, will benefit.

takluyver avatar Feb 16 '24 17:02 takluyver

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d4f59a0) 89.76% compared to head (8e3c20a) 77.73%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #114       +/-   ##
===========================================
- Coverage   89.76%   77.73%   -12.04%     
===========================================
  Files         140      140               
  Lines        8102     8102               
  Branches     1499     1499               
===========================================
- Hits         7273     6298      -975     
- Misses        596     1660     +1064     
+ Partials      233      144       -89     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 16 '24 17:02 codecov[bot]