From 77e8f8be3fd76c654efae75bbcbdc1f292fedaf4 Mon Sep 17 00:00:00 2001 From: Vivek Joshy <8206808+vivekjoshy@users.noreply.github.com> Date: Thu, 24 Aug 2023 21:20:45 +0530 Subject: [PATCH] Bump minor version Signed-off-by: Vivek Joshy <8206808+vivekjoshy@users.noreply.github.com> --- .bumpversion.cfg | 19 --------- .bumpversion.toml | 31 +++++++++++++++ CHANGELOG.rst | 15 +++++++ changes/108.feature.rst | 1 - changes/109.bugfix.rst | 1 - openskill/__init__.py | 2 +- pdm.lock | 86 +++++++++++++++++++++++++++++++++++++---- pyproject.toml | 4 +- 8 files changed, 128 insertions(+), 31 deletions(-) delete mode 100644 .bumpversion.cfg create mode 100644 .bumpversion.toml delete mode 100644 changes/108.feature.rst delete mode 100644 changes/109.bugfix.rst diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 5f3f666..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,19 +0,0 @@ -[bumpversion] -current_version = 5.0.2 -commit = False -tag = False -parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)\.(?P\d+))? -serialize = - {major}.{minor}.{patch}-{release}.{build} - {major}.{minor}.{patch} - -[bumpversion:part:release] -optional_value = gamma -values = - alpha - beta - gamma - -[bumpversion:part:build] - -[bumpversion:file:./openskill/__init__.py] diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 0000000..f451e46 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,31 @@ +[tool.bumpversion] +allow_dirty = true +commit = false +message = "Bump version: {current_version} → {new_version}" +commit_args = "" +tag = false +sign_tags = false +tag_name = "v{new_version}" +tag_message = "Bump version: {current_version} → {new_version}" +current_version = "5.1.0" +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\-(?P[a-z]+)\\.(?P\\d+))?" +serialize = [ + "{major}.{minor}.{patch}-{release}.{build}", + "{major}.{minor}.{patch}" +] +search = "{current_version}" +replace = "{new_version}" + +[tool.bumpversion.parts.release] +values = [ + "alpha", + "beta", + "gamma" +] +optional_value = "gamma" + +[[tool.bumpversion.files]] +filename = "openskill/__init__.py" + +[[tool.bumpversion.files]] +filename = "pyproject.toml" diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 63201f2..f5b0825 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,21 @@ This file is updated every release since v1.0.0 with the use of towncrier from t .. towncrier release notes start +Openskill 5.1.0 (2023-08-24) +============================ + +Features +-------- + +- Optimize rating objects for deepcopy (`#108 `_) + + +Bugfixes +-------- + +- model.rating() methods no longer revert to default model parameters when arguments are 0 (`#109 `_) + + Openskill 5.0.2 (2023-08-13) ============================ diff --git a/changes/108.feature.rst b/changes/108.feature.rst deleted file mode 100644 index ec1bb2b..0000000 --- a/changes/108.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Optimize rating objects for deepcopy diff --git a/changes/109.bugfix.rst b/changes/109.bugfix.rst deleted file mode 100644 index d38cf4b..0000000 --- a/changes/109.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -model.rating() methods no longer revert to default model parameters when arguments are 0 diff --git a/openskill/__init__.py b/openskill/__init__.py index c2d2a7b..79298a4 100644 --- a/openskill/__init__.py +++ b/openskill/__init__.py @@ -5,7 +5,7 @@ # Metadata -__version__ = "5.0.2" +__version__ = "5.1.0" __author__ = "Vivek Joshy" __email__ = "vivek@opendebates.net" __copyright__ = "Copyright 2023, Vivek Joshy" diff --git a/pdm.lock b/pdm.lock index 7c87fa7..07859cf 100644 --- a/pdm.lock +++ b/pdm.lock @@ -6,7 +6,7 @@ groups = ["default", "benchmarks", "docs", "release", "tests"] cross_platform = true static_urls = false lock_version = "4.3" -content_hash = "sha256:66b04766c3117fc95a4d0d4d8a4852c863a5c947c302db33761858c2b7a4f639" +content_hash = "sha256:939f835205a9aec9c7fbf486e08da1d905ee7d4fecff46f60e97bd8d943fbbd3" [[package]] name = "alabaster" @@ -216,13 +216,20 @@ files = [ ] [[package]] -name = "bump2version" -version = "1.0.1" -requires_python = ">=3.5" -summary = "Version-bump your software with a single command!" +name = "bump-my-version" +version = "0.9.2" +requires_python = ">=3.7" +summary = "Version bump your Python project" +dependencies = [ + "click", + "pydantic<2.0.0", + "rich", + "rich-click", + "tomlkit", +] files = [ - {file = "bump2version-1.0.1-py2.py3-none-any.whl", hash = "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410"}, - {file = "bump2version-1.0.1.tar.gz", hash = "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6"}, + {file = "bump-my-version-0.9.2.tar.gz", hash = "sha256:f23dc5213b9a754ecee6d8d9ab9df77023b696605e9232ff2e54a65b07583a58"}, + {file = "bump_my_version-0.9.2-py3-none-any.whl", hash = "sha256:ff0b78339c10a91e460419802f30a0c5b0aa1489bca016c0b46ef6e4d5a7e170"}, ] [[package]] @@ -1936,6 +1943,47 @@ files = [ {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"}, ] +[[package]] +name = "pydantic" +version = "1.10.12" +requires_python = ">=3.7" +summary = "Data validation and settings management using python type hints" +dependencies = [ + "typing-extensions>=4.2.0", +] +files = [ + {file = "pydantic-1.10.12-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a1fcb59f2f355ec350073af41d927bf83a63b50e640f4dbaa01053a28b7a7718"}, + {file = "pydantic-1.10.12-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b7ccf02d7eb340b216ec33e53a3a629856afe1c6e0ef91d84a4e6f2fb2ca70fe"}, + {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8fb2aa3ab3728d950bcc885a2e9eff6c8fc40bc0b7bb434e555c215491bcf48b"}, + {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:771735dc43cf8383959dc9b90aa281f0b6092321ca98677c5fb6125a6f56d58d"}, + {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ca48477862372ac3770969b9d75f1bf66131d386dba79506c46d75e6b48c1e09"}, + {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a5e7add47a5b5a40c49b3036d464e3c7802f8ae0d1e66035ea16aa5b7a3923ed"}, + {file = "pydantic-1.10.12-cp310-cp310-win_amd64.whl", hash = "sha256:e4129b528c6baa99a429f97ce733fff478ec955513630e61b49804b6cf9b224a"}, + {file = "pydantic-1.10.12-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b0d191db0f92dfcb1dec210ca244fdae5cbe918c6050b342d619c09d31eea0cc"}, + {file = "pydantic-1.10.12-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:795e34e6cc065f8f498c89b894a3c6da294a936ee71e644e4bd44de048af1405"}, + {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:69328e15cfda2c392da4e713443c7dbffa1505bc9d566e71e55abe14c97ddc62"}, + {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2031de0967c279df0d8a1c72b4ffc411ecd06bac607a212892757db7462fc494"}, + {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:ba5b2e6fe6ca2b7e013398bc7d7b170e21cce322d266ffcd57cca313e54fb246"}, + {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:2a7bac939fa326db1ab741c9d7f44c565a1d1e80908b3797f7f81a4f86bc8d33"}, + {file = "pydantic-1.10.12-cp311-cp311-win_amd64.whl", hash = "sha256:87afda5539d5140cb8ba9e8b8c8865cb5b1463924d38490d73d3ccfd80896b3f"}, + {file = "pydantic-1.10.12-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6a9dfa722316f4acf4460afdf5d41d5246a80e249c7ff475c43a3a1e9d75cf62"}, + {file = "pydantic-1.10.12-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a73f489aebd0c2121ed974054cb2759af8a9f747de120acd2c3394cf84176ccb"}, + {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b30bcb8cbfccfcf02acb8f1a261143fab622831d9c0989707e0e659f77a18e0"}, + {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2fcfb5296d7877af406ba1547dfde9943b1256d8928732267e2653c26938cd9c"}, + {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:2f9a6fab5f82ada41d56b0602606a5506aab165ca54e52bc4545028382ef1c5d"}, + {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:dea7adcc33d5d105896401a1f37d56b47d443a2b2605ff8a969a0ed5543f7e33"}, + {file = "pydantic-1.10.12-cp38-cp38-win_amd64.whl", hash = "sha256:1eb2085c13bce1612da8537b2d90f549c8cbb05c67e8f22854e201bde5d98a47"}, + {file = "pydantic-1.10.12-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ef6c96b2baa2100ec91a4b428f80d8f28a3c9e53568219b6c298c1125572ebc6"}, + {file = "pydantic-1.10.12-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6c076be61cd0177a8433c0adcb03475baf4ee91edf5a4e550161ad57fc90f523"}, + {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2d5a58feb9a39f481eda4d5ca220aa8b9d4f21a41274760b9bc66bfd72595b86"}, + {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5f805d2d5d0a41633651a73fa4ecdd0b3d7a49de4ec3fadf062fe16501ddbf1"}, + {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:1289c180abd4bd4555bb927c42ee42abc3aee02b0fb2d1223fb7c6e5bef87dbe"}, + {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5d1197e462e0364906cbc19681605cb7c036f2475c899b6f296104ad42b9f5fb"}, + {file = "pydantic-1.10.12-cp39-cp39-win_amd64.whl", hash = "sha256:fdbdd1d630195689f325c9ef1a12900524dceb503b00a987663ff4f58669b93d"}, + {file = "pydantic-1.10.12-py3-none-any.whl", hash = "sha256:b749a43aa51e32839c9d71dc67eb1e4221bb04af1033a32e3923d46f9effa942"}, + {file = "pydantic-1.10.12.tar.gz", hash = "sha256:0fe8a415cea8f340e7a9af9c54fc71a649b43e8ca3cc732986116b3cb135d303"}, +] + [[package]] name = "pygments" version = "2.16.1" @@ -2297,6 +2345,20 @@ files = [ {file = "rich-13.5.2.tar.gz", hash = "sha256:fb9d6c0a0f643c99eed3875b5377a184132ba9be4d61516a55273d3554d75a39"}, ] +[[package]] +name = "rich-click" +version = "1.6.1" +requires_python = ">=3.7" +summary = "Format click help output nicely with rich" +dependencies = [ + "click>=7", + "rich>=10.7.0", +] +files = [ + {file = "rich-click-1.6.1.tar.gz", hash = "sha256:f8ff96693ec6e261d1544e9f7d9a5811c5ef5d74c8adb4978430fc0dac16777e"}, + {file = "rich_click-1.6.1-py3-none-any.whl", hash = "sha256:0fcf4d1a09029d79322dd814ab0b2e66ac183633037561881d45abae8a161d95"}, +] + [[package]] name = "rpds-py" version = "0.9.2" @@ -2784,6 +2846,16 @@ files = [ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] +[[package]] +name = "tomlkit" +version = "0.12.1" +requires_python = ">=3.7" +summary = "Style preserving TOML library" +files = [ + {file = "tomlkit-0.12.1-py3-none-any.whl", hash = "sha256:712cbd236609acc6a3e2e97253dfc52d4c2082982a88f61b640ecf0817eab899"}, + {file = "tomlkit-0.12.1.tar.gz", hash = "sha256:38e1ff8edb991273ec9f6181244a6a391ac30e9f5098e7535640ea6be97a7c86"}, +] + [[package]] name = "tornado" version = "6.3.3" diff --git a/pyproject.toml b/pyproject.toml index d70ff01..8cd074e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ strict = true [project] name = "openskill" -version = "5.0.2" +version = "5.1.0" authors = [ {name = "Vivek Joshy", email = "vivek@opendebates.net"}, ] @@ -106,7 +106,7 @@ release = [ "black[jupyter]~=23.7", "codecov~=2.1", "towncrier~=23.6", - "bump2version~=1.0", + "bump-my-version~=0.9.2", ] benchmarks = [ "rbo~=0.1",