Skip to content

Bump py-moneyed from 0.8.0 to 1.2#100

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/py-moneyed-1.2
Closed

Bump py-moneyed from 0.8.0 to 1.2#100
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/py-moneyed-1.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 24, 2021

Bumps py-moneyed from 0.8.0 to 1.2.

Changelog

Sourced from py-moneyed's changelog.

1.2 (2020-02-23)

  • Money.__add__ returns NotImplemented instead of raising an exception when another operand has unsupported type.

1.1 (2020-01-15)

  • Changed the numeric attribute values to None for currencies that don't have assigned ISO numeric codes: IMP, TVD, XFO, XFU.
  • Restored the previous definition for the XXX currency, including its name and countries attributes.
  • Fixed get_currency returning obsolete currencies.

1.0 (2020-01-09)

  • Dropped official support for Python 2.6, 3.2, 3.3, 3.4 (mainly because our test tools don't support them any more).

  • Added support for getting amount in sub units (fixed point)

  • Format Money instances using CLDR and Babel. This is a large change with lots of parts. Many thanks to @​pooyamb for all the hard work that went into this and other related changes.

    • Added new moneyed.l10n module, containing a new format_money function. This is a very thin wrapper around babel.numbers.format_currency <http://babel.pocoo.org/en/latest/api/numbers.html#babel.numbers.format_currency>_ and has all the same options. This allows us to get the official CLDR formats for currencies, in all the different locales.

      See docs in README.

      Note especially that you need to specify locale (e.g. locale="en_US"), or you will get the LC_NUMERIC default.

    • Deprecated the format_money function in moneyed.localization. There is no immediate plan to remove, but it should not be relied on. Also, this function relies on our own manually entered data for formatting of currencies in different locales. This data is very incomplete and will not be updated any more.

      So you need to use moneyed.l10n.format_money instead now.

      If you were relying on the decimal_places argument to the old function, there is no exact equivalent in the new format_money function, but see the decimal_quantization option (documented in babel.numbers.format_currency <http://babel.pocoo.org/en/latest/api/numbers.html#babel.numbers.format_currency>_)

    • Money.__str__ (Money.__unicode__ on Python 2) now uses new format_money with the default locale LC_NUMERIC, which can produce different results from the old function. Use the new format_money to control output.

... (truncated)

Commits
  • d734ffa chore: Release 1.2
  • 5e6a098 docs: Add maintainer to setup.py
  • 5eceef2 docs: Update changelog
  • fa79b46 Release 1.1
  • 05ee499 test: put custom_class_add logic in a dedicated test
  • ec1fd93 test: test add behaviour for addition with other classes than Money
  • 3b62a5e feat: add return NotImplemented for other classes
  • ff66ce9 docs: Target the PyPI page in the README badge
  • ef5ad3e chore: Update PyPI classifiers
  • 7414c2a chore: Add long_description_content_type to setup.py
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 24, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.79% when pulling d9a955f on dependabot/pip/py-moneyed-1.2 into 131a22a on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.79% when pulling d9a955f on dependabot/pip/py-moneyed-1.2 into 131a22a on master.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 27, 2021

Superseded by #109.

@dependabot dependabot bot closed this May 27, 2021
@dependabot dependabot bot deleted the dependabot/pip/py-moneyed-1.2 branch May 27, 2021 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant