From f5a2d3c33855455f0c0f47db9eab26a64847d31b Mon Sep 17 00:00:00 2001 From: James Riehl Date: Thu, 4 May 2023 15:56:03 +0100 Subject: [PATCH 1/7] deps: allow python 3.11 --- .github/workflows/workflow.yml | 1 + docs/index.md | 2 +- pyproject.toml | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 482c79ec..16b87478 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -66,6 +66,7 @@ jobs: - '3.8' - '3.9' - '3.10' + - '3.11' timeout-minutes: 30 steps: - uses: actions/checkout@v3 diff --git a/docs/index.md b/docs/index.md index ecb4457a..1e1b0585 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,7 @@ CosmPy is a Python library for interacting with Cosmos-based blockchain networks ## To install -Ensure you have Python (version `3.8`, `3.9` or `3.10`): +Ensure you have Python (version `3.8`, `3.9`, `3.10`, or `3.11`): ``` bash pip3 install cosmpy diff --git a/pyproject.toml b/pyproject.toml index 88a35f7d..cc178e6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ classifiers=[ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System", @@ -32,7 +33,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry.dependencies] -python = ">=3.8,<3.11" +python = ">=3.8,<4.0" ecdsa = "*" bech32 = "*" requests = "*" From e35cc4ce4c253a9a5b9911145a85b4ad5be76541 Mon Sep 17 00:00:00 2001 From: James Riehl Date: Tue, 9 May 2023 14:45:10 +0100 Subject: [PATCH 2/7] chore: run poetry lock --- poetry.lock | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7c164e4c..7e9aac0f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -27,7 +27,10 @@ files = [ [package.dependencies] lazy-object-proxy = ">=1.4.0" typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} -wrapt = {version = ">=1.11,<2", markers = "python_version < \"3.11\""} +wrapt = [ + {version = ">=1.11,<2", markers = "python_version < \"3.11\""}, + {version = ">=1.14,<2", markers = "python_version >= \"3.11\""}, +] [[package]] name = "attrs" @@ -625,9 +628,6 @@ optional = false python-versions = "*" files = [ {file = "crcmod-1.7.tar.gz", hash = "sha256:dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e"}, - {file = "crcmod-1.7.win32-py2.6.msi", hash = "sha256:69a2e5c6c36d0f096a7beb4cd34e5f882ec5fd232efb710cdb85d4ff196bd52e"}, - {file = "crcmod-1.7.win32-py2.7.msi", hash = "sha256:737fb308fa2ce9aed2e29075f0d5980d4a89bfbec48a368c607c5c63b3efb90e"}, - {file = "crcmod-1.7.win32-py3.1.msi", hash = "sha256:50586ab48981f11e5b117523d97bb70864a2a1af246cf6e4f5c4a21ef4611cd1"}, ] [[package]] @@ -1828,6 +1828,7 @@ files = [ {file = "py_sr25519_bindings-0.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:392b8b9875c89c9302930ad3d59567b62176f33adeee96a55ff61ba17fb7aac2"}, {file = "py_sr25519_bindings-0.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:7b56b5cbbfb36b41ddfa462989a03386590ac036f3a755ef64fffeb2fed88654"}, {file = "py_sr25519_bindings-0.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8f06ea3237e06666e3a4ff4719b4fba415472943831b229428753c37d5ecd1b4"}, + {file = "py_sr25519_bindings-0.2.0-cp311-none-win_amd64.whl", hash = "sha256:d62af30b2022f5fa787e46c06823c35a21abe791bf55012f498f9ba8e4baabc8"}, {file = "py_sr25519_bindings-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl", hash = "sha256:c3de899a1e911b8945f09e6389f8d2df68924c12c78e3e66fedb15f1e4ff56ad"}, {file = "py_sr25519_bindings-0.2.0-cp36-cp36m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:758761b605f90e4238304df7520155a3358b13cc55ee18c5113632da17343163"}, {file = "py_sr25519_bindings-0.2.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f63580a224607e68b861eb03421465091c3104b6309e5fca7448f5aa6dbda60"}, @@ -1882,18 +1883,7 @@ category = "main" optional = false python-versions = "*" files = [ - {file = "pyasn1-0.4.8-py2.4.egg", hash = "sha256:fec3e9d8e36808a28efb59b489e4528c10ad0f480e57dcc32b4de5c9d8c9fdf3"}, - {file = "pyasn1-0.4.8-py2.5.egg", hash = "sha256:0458773cfe65b153891ac249bcf1b5f8f320b7c2ce462151f8fa74de8934becf"}, - {file = "pyasn1-0.4.8-py2.6.egg", hash = "sha256:5c9414dcfede6e441f7e8f81b43b34e834731003427e5b09e4e00e3172a10f00"}, - {file = "pyasn1-0.4.8-py2.7.egg", hash = "sha256:6e7545f1a61025a4e58bb336952c5061697da694db1cae97b116e9c46abcf7c8"}, {file = "pyasn1-0.4.8-py2.py3-none-any.whl", hash = "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d"}, - {file = "pyasn1-0.4.8-py3.1.egg", hash = "sha256:78fa6da68ed2727915c4767bb386ab32cdba863caa7dbe473eaae45f9959da86"}, - {file = "pyasn1-0.4.8-py3.2.egg", hash = "sha256:08c3c53b75eaa48d71cf8c710312316392ed40899cb34710d092e96745a358b7"}, - {file = "pyasn1-0.4.8-py3.3.egg", hash = "sha256:03840c999ba71680a131cfaee6fab142e1ed9bbd9c693e285cc6aca0d555e576"}, - {file = "pyasn1-0.4.8-py3.4.egg", hash = "sha256:7ab8a544af125fb704feadb008c99a88805126fb525280b2270bb25cc1d78a12"}, - {file = "pyasn1-0.4.8-py3.5.egg", hash = "sha256:e89bf84b5437b532b0803ba5c9a5e054d21fec423a89952a74f87fa2c9b7bce2"}, - {file = "pyasn1-0.4.8-py3.6.egg", hash = "sha256:014c0e9976956a08139dc0712ae195324a75e142284d5f87f1a87ee1b068a359"}, - {file = "pyasn1-0.4.8-py3.7.egg", hash = "sha256:99fcc3c8d804d1bc6d9a099921e39d827026409a58f2a720dcdb89374ea0c776"}, {file = "pyasn1-0.4.8.tar.gz", hash = "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba"}, ] @@ -1906,18 +1896,7 @@ optional = false python-versions = "*" files = [ {file = "pyasn1-modules-0.2.8.tar.gz", hash = "sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e"}, - {file = "pyasn1_modules-0.2.8-py2.4.egg", hash = "sha256:0fe1b68d1e486a1ed5473f1302bd991c1611d319bba158e98b106ff86e1d7199"}, - {file = "pyasn1_modules-0.2.8-py2.5.egg", hash = "sha256:fe0644d9ab041506b62782e92b06b8c68cca799e1a9636ec398675459e031405"}, - {file = "pyasn1_modules-0.2.8-py2.6.egg", hash = "sha256:a99324196732f53093a84c4369c996713eb8c89d360a496b599fb1a9c47fc3eb"}, - {file = "pyasn1_modules-0.2.8-py2.7.egg", hash = "sha256:0845a5582f6a02bb3e1bde9ecfc4bfcae6ec3210dd270522fee602365430c3f8"}, {file = "pyasn1_modules-0.2.8-py2.py3-none-any.whl", hash = "sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74"}, - {file = "pyasn1_modules-0.2.8-py3.1.egg", hash = "sha256:f39edd8c4ecaa4556e989147ebf219227e2cd2e8a43c7e7fcb1f1c18c5fd6a3d"}, - {file = "pyasn1_modules-0.2.8-py3.2.egg", hash = "sha256:b80486a6c77252ea3a3e9b1e360bc9cf28eaac41263d173c032581ad2f20fe45"}, - {file = "pyasn1_modules-0.2.8-py3.3.egg", hash = "sha256:65cebbaffc913f4fe9e4808735c95ea22d7a7775646ab690518c056784bc21b4"}, - {file = "pyasn1_modules-0.2.8-py3.4.egg", hash = "sha256:15b7c67fabc7fc240d87fb9aabf999cf82311a6d6fb2c70d00d3d0604878c811"}, - {file = "pyasn1_modules-0.2.8-py3.5.egg", hash = "sha256:426edb7a5e8879f1ec54a1864f16b882c2837bfd06eee62f2c982315ee2473ed"}, - {file = "pyasn1_modules-0.2.8-py3.6.egg", hash = "sha256:cbac4bc38d117f2a49aeedec4407d23e8866ea4ac27ff2cf7fb3e5b570df19e0"}, - {file = "pyasn1_modules-0.2.8-py3.7.egg", hash = "sha256:c29a5e5cc7a3f05926aff34e097e84f8589cd790ce0ed41b67aed6857b26aafd"}, ] [package.dependencies] @@ -2129,7 +2108,7 @@ files = [ cffi = ">=1.4.1" [package.extras] -docs = ["sphinx (>=1.6.5)", "sphinx_rtd_theme"] +docs = ["sphinx (>=1.6.5)", "sphinx-rtd-theme"] tests = ["hypothesis (>=3.27.0)", "pytest (>=3.2.1,!=3.3.0)"] [[package]] @@ -2907,5 +2886,5 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" -python-versions = ">=3.8,<3.11" -content-hash = "e3e79f992d1bc9c71b766fffefad6f708c06f0c7ea4684d165870380d75e72b0" +python-versions = ">=3.8,<4.0" +content-hash = "9cce0848b64d60c40e34f9ded5fd1b62db5abb9ecccb76b9939ea0d3d7dbcbfd" From b4033a5e398b68cdd3958fd210ae4493213bf1d5 Mon Sep 17 00:00:00 2001 From: James Riehl Date: Tue, 9 May 2023 15:29:06 +0100 Subject: [PATCH 3/7] chore: install build tools for macos-py311 --- .github/workflows/workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 16b87478..be035f99 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -73,6 +73,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '${{ matrix.python-version }}' + if: matrix.os == 'macos-latest' && matrix.python-version == '3.11': + - name: Install build tools + run: | + brew install autoconf automake libtool - name: Install dependencies run: pip install tox==3.25.1 - name: Unit Tests From 058b7fb425912024d98161d21a5f407c76a6065f Mon Sep 17 00:00:00 2001 From: James Riehl Date: Tue, 9 May 2023 15:33:30 +0100 Subject: [PATCH 4/7] fix: workflow --- .github/workflows/workflow.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index be035f99..ff0a7cca 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -73,10 +73,9 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '${{ matrix.python-version }}' - if: matrix.os == 'macos-latest' && matrix.python-version == '3.11': - - name: Install build tools - run: | - brew install autoconf automake libtool + - name : Install build tools + if: matrix.os == 'macos-latest' && matrix.python-version == '3.11': + run: brew install autoconf automake libtool - name: Install dependencies run: pip install tox==3.25.1 - name: Unit Tests From 38d1ae3b08687782d47c42fb651540cd931faba0 Mon Sep 17 00:00:00 2001 From: James Riehl Date: Tue, 9 May 2023 21:01:51 +0100 Subject: [PATCH 5/7] fix: workflow syntax --- .github/workflows/workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ff0a7cca..6ba450b2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -73,9 +73,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '${{ matrix.python-version }}' - - name : Install build tools - if: matrix.os == 'macos-latest' && matrix.python-version == '3.11': - run: brew install autoconf automake libtool + - if: matrix.os == 'macos-latest' && matrix.python-version == '3.11' + name: Install build tools + run: | + brew install autoconf automake libtool - name: Install dependencies run: pip install tox==3.25.1 - name: Unit Tests From 76659536698422bddbab1b0a899ed3e7b5290bcd Mon Sep 17 00:00:00 2001 From: James Riehl Date: Tue, 9 May 2023 22:28:55 +0100 Subject: [PATCH 6/7] fix: remove already installed packages --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6ba450b2..6322e366 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -76,7 +76,7 @@ jobs: - if: matrix.os == 'macos-latest' && matrix.python-version == '3.11' name: Install build tools run: | - brew install autoconf automake libtool + brew install automake - name: Install dependencies run: pip install tox==3.25.1 - name: Unit Tests From 6a035f4a4d0d21afb3db5ce9d494a985ff0ef9c0 Mon Sep 17 00:00:00 2001 From: James Riehl Date: Thu, 11 May 2023 13:06:59 +0100 Subject: [PATCH 7/7] chore: set upper Python version to 3.12 --- poetry.lock | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7e9aac0f..8af6d3ef 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2886,5 +2886,5 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" -python-versions = ">=3.8,<4.0" -content-hash = "9cce0848b64d60c40e34f9ded5fd1b62db5abb9ecccb76b9939ea0d3d7dbcbfd" +python-versions = ">=3.8,<3.12" +content-hash = "7c36341d6256c2ee5b7993ac45dba0ae3dc50e90a8ed07e245194c3592fbb619" diff --git a/pyproject.toml b/pyproject.toml index cc178e6f..d16b2a72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry.dependencies] -python = ">=3.8,<4.0" +python = ">=3.8,<3.12" ecdsa = "*" bech32 = "*" requests = "*"