Skip to content

Release 2.0

Compare
Choose a tag to compare
@Stranger6667 Stranger6667 released this 26 May 14:20
· 42 commits to master since this release
v2.0
ef5d65d
  • 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 and DEFAULT_CURRENCY_CODE constants, and change to make instantiating Money 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 to Currency 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.