warcit icon indicating copy to clipboard operation
warcit copied to clipboard

Migrate to pyproject.toml, fix cChardet build issue

Open Shrinks99 opened this issue 8 months ago • 0 comments
trafficstars

Fixes #27

While migrating my own Python install fully to UV tonight, I was unable to get warcit installed due to the issue documented in #27. Figured I'd have a go at fixing it while taking the time to understand authoring a pyproject file. UV isn't required to build warcit with these changes, but it sure is helpful for managing python versions & environments!

This also means that developers will be able to install warcit in editable mode!

Tested with uv run warcit -V & uv build

Changes

  • Moves all of setup.py to a modern pyproject.toml file
  • Switches to the faust-cchardet fork
    • Up for debate if this is the best strategy? Could alternatively only support up to Python 3.9 and wait for the original to get updated.
  • Sets a requires-python value of >=3.10
  • Creates a pylock.toml lockfile
  • Bumps the version up by 0.0.1
  • Sets a pyyaml loader in test_warcit.py (required as of V6)

Todo

  • [x] Ensure tests run as expected with pytest
  • [ ] Update readme with new UV development instructions?

Shrinks99 avatar Mar 18 '25 07:03 Shrinks99