All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
You can find the issue tracker at: https://github.com/brutus/boozelib/issues
-
➕ Added
sphinx-autobuild
for doc generation. -
✨ Add optional argument degradation to the
calculate_alcohol_degradation
andget_blood_alcohol_degradation
functions.If set, this value is used for alcohol degradation instead of the
ALCOHOL_DEGRADATION
module level variable.
-
In the next version the value used for alcohol degradation will be lowered.
To keep the current default, you can override
ALCOHOL_DEGRADATION
, or use the new degradation argument to thecalculate_alcohol_degradation
andget_blood_alcohol_degradation
functions.
- Added Python type hints.
- Use mypy to check type hints.
- Renamed the used constants (use decriptive names).
- Ported the README to markdown.
- Switched to Poetry for packaging (from Pipenv).
- Only accept keyword-arguments for all functions (not positional ones).
- Switch back to ward as test framework.
- Translated the background section in the docs.
- Rename
calculate_alcohol
tocalculate_alcohol_weight
,calculate_degradation
tocalculate_alcohol_degradation
andget_degradation
toget_blood_alcohol_degradation
. - Unified function signatures.
- Remove deprecated function names (
calculate_bw
andget_bac
). - Remove support for Python
==2.7
.
This will be the last version supporting Python 2.7
.
- Test all supported Python versions (
>=2.7
). - Add configuration for Read the Docs.
- Added
Makefile
to collect and document common development tasks. - Use flakehell, black and reorder-python-imports for linting.
- Add git-hooks for linting via pre-commit.
- Use flit for packaging.
- Use nox and ward as test runners.
- Add Sphinx to development setup and update it.
- Updated the README.
- Made git ignore basic Python stuff.
- Move tests to
tests/
. - Moved module source to
src/
directory.
- Remove docs generated by Sphinx.
-
Track
__version__
in source with bump2version.
- Manage development requirements in a virtual environment with pipenv.
- Handle version bumps with bump2version.
- Use towncrier for tracking changes.
-
Converted
CHANGES.rst
toCHANGELOG.rst
.
-
Generate documentation with Sphinx.
-
Added support for readthedocs.org.
-
Added support for
distutils
.
- Refactored the code to calculate and convert utility functions as well as
get_bac
andget_degradation
for the main work.
-
Removed the
User
andDrink
classes.
-
Prevent the blood alcohol levels from getting
< 0
.
-
Fixed some typos in the docs.
-
Fixed some typos in both classes.
- Initial release 🎉