mysqlclient icon indicating copy to clipboard operation
mysqlclient copied to clipboard

Python314 support

Open MysticEntity-dev opened this issue 3 weeks ago • 2 comments

Suggested changes to fix deprecation and changes to format of project.license in python 3.14: C:\Users\XXX\AppData\Local\Temp\pip-build-env-cc_fwjqb\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated !!

          ********************************************************************************
          Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

          By 2026-Feb-18, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    corresp(dist, value, root_dir)
  C:\Users\XXX\AppData\Local\Temp\pip-build-env-cc_fwjqb\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    dist._finalize_license_expression()
  C:\Users\XXX\AppData\Local\Temp\pip-build-env-cc_fwjqb\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

And also to fix build errors when using the 64 bit MariaDB Connector C, but not sure if this is the correct way.

MysticEntity-dev avatar Dec 16 '25 14:12 MysticEntity-dev

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 88.84%. Comparing base (e2a908b) to head (73edbff). :warning: Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #772      +/-   ##
==========================================
- Coverage   88.86%   88.84%   -0.02%     
==========================================
  Files           7        7              
  Lines         548      556       +8     
==========================================
+ Hits          487      494       +7     
- Misses         61       62       +1     

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

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

codecov[bot] avatar Dec 16 '25 14:12 codecov[bot]

Ofc this breaks compatibility with all previous python versions. Suggestions welcome as I don't have a lot of time and are quite new to building packages for pip

MysticEntity-dev avatar Dec 16 '25 15:12 MysticEntity-dev