pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Move tools and build system to pyproject.toml

Open Armavica opened this issue 1 year ago • 2 comments

Description

Related Issue

  • [ ] Closes #
  • [ ] Related to #

Checklist

Type of change

  • [ ] New feature / enhancement
  • [ ] Bug fix
  • [ ] Documentation
  • [x] Maintenance
  • [ ] Other (please specify):

📚 Documentation preview 📚: https://pymc--7382.org.readthedocs.build/en/7382/

Armavica avatar Jun 22 '24 02:06 Armavica

Codecov Report

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

Project coverage is 92.18%. Comparing base (1b67888) to head (0e984d0). Report is 91 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7382   +/-   ##
=======================================
  Coverage   92.18%   92.18%           
=======================================
  Files         103      103           
  Lines       17258    17258           
=======================================
  Hits        15909    15909           
  Misses       1349     1349           

codecov[bot] avatar Jun 22 '24 03:06 codecov[bot]

I took a very quick look. Very exciting, but there's a problem:

$ python -m build .
...
Successfully built pymc-0.0.0.tar.gz and pymc-0.0.0-py3-none-any.whl

It's picking up the version as 0.0.0. In contrast, on main:

Successfully built pymc-5.15.1+52.gc2c46a764.tar.gz and pymc-5.15.1+52.gc2c46a764-py3-none-any.whl

maresb avatar Jun 22 '24 22:06 maresb

@maresb You are right, it looks like versioneer is not ready yet to deal with builds configured from pyproject.toml. I moved the settings of mypy and versioneer to pyproject.toml but kept the build in setup.py, I think this is the most that we can do for now. I think it builds fine now.

Armavica avatar Jul 10 '24 04:07 Armavica

It's great to get rid of versioneer.py, thanks @Armavica!!!

maresb avatar Jul 10 '24 14:07 maresb