Skip to content

Commit 55ff54d

Browse files
committed
Bump to 2.0.0
1 parent e0921ff commit 55ff54d

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

ccy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""Python currencies"""
22

3-
__version__ = "1.7.2"
3+
from importlib.metadata import version
44

5+
__version__ = version("ccy")
56

67
from .core.country import (
78
CountryError,

docs/gen_currencies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
f"</tr>\n"
3838
)
3939
f.write("</tbody>\n</table>\n\n")
40+
f.write("## CCY\n\n")
41+
f.write("::: ccy.core.currency.CCY\n")
4042

4143
f.write(
4244
"<script>\n"

docs/index.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,8 @@ eur = ccy.currency("aud")
2323
eur.printinfo()
2424
```
2525

26-
A currency object has the following properties:
27-
28-
* *code*: the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) three letters code.
29-
* *twoletterscode*: two letter code.
30-
* *default_country*: the default [ISO 3166-1 alpha_2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code for the currency.
31-
* *isonumber*: the ISO 4217 number.
32-
* *name*: the name of the currency.
33-
* *order*: default ordering in currency pairs (more of this below).
34-
* *rounding*: number of decimal places
26+
A currency is represented by the [CCY][ccy.core.currency.CCY] class.
27+
See the [Currencies](currencies.md#ccy) page for the full field reference.
3528

3629
## Currency Crosses
3730

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ccy"
3-
version = "1.8.0"
3+
version = "2.0.0"
44
description = "Python currencies"
55
authors = [ { name = "Luca Sbardella", email = "luca@quantmind.com" } ]
66
license = { text = "BSD" }

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)