warcit
warcit copied to clipboard
Migrate to pyproject.toml, fix cChardet build issue
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.pyto a modernpyproject.tomlfile- Keeps a minimal
setup.pyfile around for backwards compatibility
- Keeps a minimal
- Switches to the
faust-cchardetfork- 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-pythonvalue 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?