- Dropped support for Python 2.7 and 3.5 and PyPy 2.
- Added pyupgrade pre-commit hook.
- Added black pre-commit hook and reformatted codebase.
- Updated pre-commit hooks.
- Replaced custom flake8, sort, and check-manifest Github Action jobs with a generic pre-commit job.
- Dropped the
moneyed.localization
module that was deprecated and announced for removal in 1.0. - Added type hints along with a mypy pre-commit hook.
- Added action for building and publishing releases, along with the check-github-workflows pre-commit hook for validating Github Action workflow files.
- Removed undocumented
DEFAULT_CURRENCY
andDEFAULT_CURRENCY_CODE
constants, and change to make instantiatingMoney
without providing a currency a type error. This used to result in an object with a made-up"XYZ"
currency, which could lead to surprising behaviors and bugs. - Added
zero
property toCurrency
to conveniently access the zero value of a given currency. - Moved to use setuptool's declarative packaging config and PEP 517 isolated builds.
- Removed requirements files and instead specified test requirements using extras.