Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quebec protocol support #381

Merged
merged 13 commits into from
Jan 18, 2025
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,21 @@ jobs:
strategy:
matrix:
include:
# latest
- os: ubuntu-latest
arch: amd64
python-version: '3.12'
python-version: '3.13'
- os: ubuntu-latest
arch: arm64
python-version: '3.12'
- os: ubuntu-latest
arch: amd64
python-version: '3.11'
python-version: '3.13'
# stable
- os: ubuntu-latest
arch: amd64
python-version: '3.10'
python-version: '3.12'
# oldest
- os: ubuntu-latest
arch: amd64
python-version: '3.9'
- os: ubuntu-latest
arch: amd64
python-version: '3.8'

# FIXME: docker.errors.DockerException: Error while fetching server API version
# - os: macos-latest
Expand Down Expand Up @@ -64,7 +61,6 @@ jobs:

- name: Run lint
run: make lint
if: contains(matrix.python-version, '3.12')

- name: Run tests
run: OSTYPE=$OSTYPE make test-ci
Expand Down
25 changes: 22 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,30 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].

## [3.14.0](https://github.com/baking-bad/pytezos/compare/3.13.6...3.14.0) - 2025-01-18

### Added

- Quebecnet protocol support.
- Python 3.13 support.

### Changed

- Octez binaries updated to v21.2-1

### Fixed

- Fixed Python 3.9 compatibility

### Removed

- Removed Python 3.8 support.

## [3.13.6](https://github.com/baking-bad/pytezos/compare/3.13.5...3.13.6) (2024-12-13)

### Fixed

* Fixed `tz4` signing suite.
- Fixed `tz4` signing suite.

### Changed

Expand All @@ -18,7 +37,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

### Added

* Added `tz4` address support.
- Added `tz4` address support.

### Changed

Expand Down Expand Up @@ -56,7 +75,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

### Added

- ParisCnet protocol support
- ParisCnet protocol support.

### Changed

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ update-contracts: ## Update contract tests
kernel-docs: ## Build docs for Michelson IPython kernel
poetry run python scripts/generate_kernel_docs.py

# NOTE: See `pytezos.sandbox.parameters`
sandbox-params:
docker create --name temp tezos/tezos && docker cp temp:/usr/local/share/tezos/021-PsQuebec-parameters/ src/pytezos/sandbox/ && docker rm temp

rpc-docs: ## Build docs for Tezos node RPC
poetry run python scripts/fetch_rpc_docs.py

Expand Down
2,015 changes: 1,088 additions & 927 deletions poetry.lock

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
Expand All @@ -41,7 +41,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
python = ">=3.9,<3.14"
attrs = ">=21.4.0"
base58 = ">=2.1.1"
cattrs = ">=22.1.0"
Expand All @@ -63,11 +63,11 @@ requests = ">=2.28.2"
simplejson = ">=3.17.6"
strict-rfc3339 = ">=0.7"
tabulate = ">=0.9.0"
testcontainers = ">=3.7.0,<4.8.0"
testcontainers = ">=3.7.0"
tqdm = ">=4.62.3"
simple-bson = ">=0.0.3"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "*"
diff-cover = "*"
isort = "*"
Expand Down Expand Up @@ -100,7 +100,7 @@ force_single_line = true

[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
target-version = ['py39', 'py310', 'py311', 'py312']
skip-string-normalization = true

[tool.ruff]
Expand Down Expand Up @@ -128,16 +128,16 @@ lint.ignore = [
"SIM108",
"SIM114",
]
target-version = "py312"
target-version = "py39"
lint.extend-select = ["B", "C", "RET", "SIM"]

[tool.mypy]
python_version = "3.9"

[tool.ruff.format]
quote-style = "single"
indent-style = "space"

[tool.mypy]
python_version = "3.12"

[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
322 changes: 159 additions & 163 deletions requirements.dev.txt

Large diffs are not rendered by default.

96 changes: 47 additions & 49 deletions requirements.slim.txt
Original file line number Diff line number Diff line change
@@ -1,49 +1,47 @@
asn1crypto==1.5.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
attrs==24.2.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
base58==2.1.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
cached-property==2.0.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
cattrs==24.1.2 ; python_full_version >= "3.8.1" and python_version < "3.13"
certifi==2024.8.30 ; python_full_version >= "3.8.1" and python_version < "3.13"
cffi==1.17.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
charset-normalizer==3.4.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
click==8.1.7 ; python_full_version >= "3.8.1" and python_version < "3.13"
coincurve==20.0.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
colorama==0.4.6 ; python_full_version >= "3.8.1" and python_version < "3.13" and platform_system == "Windows"
cryptography==43.0.3 ; python_full_version >= "3.8.1" and python_version < "3.13"
cytoolz==1.0.0 ; python_full_version >= "3.8.1" and python_version < "3.13" and implementation_name == "cpython"
deprecation==2.1.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
docker==7.1.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
eth-hash==0.7.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
eth-typing==5.0.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
eth-utils==5.1.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
exceptiongroup==1.2.2 ; python_full_version >= "3.8.1" and python_version < "3.11"
fastecdsa==2.3.2 ; python_full_version >= "3.8.1" and python_version < "3.13"
idna==3.10 ; python_full_version >= "3.8.1" and python_version < "3.13"
importlib-resources==6.4.5 ; python_full_version >= "3.8.1" and python_version < "3.9"
jsonschema-specifications==2023.12.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
jsonschema==4.23.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
mnemonic==0.21 ; python_full_version >= "3.8.1" and python_version < "3.13"
netstruct==1.1.2 ; python_full_version >= "3.8.1" and python_version < "3.13"
packaging==24.2 ; python_full_version >= "3.8.1" and python_version < "3.13"
pkgutil-resolve-name==1.3.10 ; python_full_version >= "3.8.1" and python_version < "3.9"
ply==3.11 ; python_full_version >= "3.8.1" and python_version < "3.13"
py-ecc==7.0.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
pycparser==2.22 ; python_full_version >= "3.8.1" and python_version < "3.13"
pysodium==0.7.18 ; python_full_version >= "3.8.1" and python_version < "3.13"
python-dateutil==2.9.0.post0 ; python_full_version >= "3.8.1" and python_version < "3.13"
pywin32==308 ; python_full_version >= "3.8.1" and python_version < "3.13" and sys_platform == "win32"
referencing==0.35.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
requests==2.32.3 ; python_full_version >= "3.8.1" and python_version < "3.13"
rpds-py==0.20.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
simple-bson==0.0.3 ; python_full_version >= "3.8.1" and python_version < "3.13"
simplejson==3.19.3 ; python_full_version >= "3.8.1" and python_version < "3.13"
six==1.17.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
strict-rfc3339==0.7 ; python_full_version >= "3.8.1" and python_version < "3.13"
tabulate==0.9.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
testcontainers==3.7.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
toolz==1.0.0 ; python_full_version >= "3.8.1" and python_version < "3.13" and (implementation_name == "pypy" or implementation_name == "cpython")
tqdm==4.67.1 ; python_full_version >= "3.8.1" and python_version < "3.13"
typing-extensions==4.12.2 ; python_full_version >= "3.8.1" and python_version < "3.13"
urllib3==2.2.3 ; python_full_version >= "3.8.1" and python_version < "3.13"
wrapt==1.17.0 ; python_full_version >= "3.8.1" and python_version < "3.13"
zipp==3.20.2 ; python_full_version >= "3.8.1" and python_version < "3.9"
asn1crypto==1.5.1 ; python_version >= "3.9" and python_version < "3.14"
attrs==24.3.0 ; python_version >= "3.9" and python_version < "3.14"
base58==2.1.1 ; python_version >= "3.9" and python_version < "3.14"
cached-property==2.0.1 ; python_version >= "3.9" and python_version < "3.14"
cattrs==24.1.2 ; python_version >= "3.9" and python_version < "3.14"
certifi==2024.12.14 ; python_version >= "3.9" and python_version < "3.14"
cffi==1.17.1 ; python_version >= "3.9" and python_version < "3.14"
charset-normalizer==3.4.1 ; python_version >= "3.9" and python_version < "3.14"
click==8.1.8 ; python_version >= "3.9" and python_version < "3.14"
coincurve==20.0.0 ; python_version >= "3.9" and python_version < "3.14"
colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.14" and platform_system == "Windows"
cryptography==43.0.3 ; python_version >= "3.9" and python_version < "3.14"
cytoolz==1.0.1 ; python_version >= "3.9" and python_version < "3.14" and implementation_name == "cpython"
deprecation==2.1.0 ; python_version >= "3.9" and python_version < "3.14"
docker==7.1.0 ; python_version >= "3.9" and python_version < "3.14"
eth-hash==0.7.1 ; python_version >= "3.9" and python_version < "3.14"
eth-typing==5.1.0 ; python_version >= "3.9" and python_version < "3.14"
eth-utils==5.1.0 ; python_version >= "3.9" and python_version < "3.14"
exceptiongroup==1.2.2 ; python_version >= "3.9" and python_version < "3.11"
fastecdsa==3.0.0 ; python_version >= "3.9" and python_version < "3.14"
idna==3.10 ; python_version >= "3.9" and python_version < "3.14"
jsonschema-specifications==2024.10.1 ; python_version >= "3.9" and python_version < "3.14"
jsonschema==4.23.0 ; python_version >= "3.9" and python_version < "3.14"
mnemonic==0.21 ; python_version >= "3.9" and python_version < "3.14"
netstruct==1.1.2 ; python_version >= "3.9" and python_version < "3.14"
packaging==24.2 ; python_version >= "3.9" and python_version < "3.14"
ply==3.11 ; python_version >= "3.9" and python_version < "3.14"
py-ecc==7.0.1 ; python_version >= "3.9" and python_version < "3.14"
pycparser==2.22 ; python_version >= "3.9" and python_version < "3.14"
pysodium==0.7.18 ; python_version >= "3.9" and python_version < "3.14"
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "3.14"
python-dotenv==1.0.1 ; python_version >= "3.9" and python_version < "3.14"
pywin32==308 ; python_version >= "3.9" and python_version < "3.14" and sys_platform == "win32"
referencing==0.36.1 ; python_version >= "3.9" and python_version < "3.14"
requests==2.32.3 ; python_version >= "3.9" and python_version < "3.14"
rpds-py==0.22.3 ; python_version >= "3.9" and python_version < "3.14"
simple-bson==0.0.3 ; python_version >= "3.9" and python_version < "3.14"
simplejson==3.19.3 ; python_version >= "3.9" and python_version < "3.14"
six==1.17.0 ; python_version >= "3.9" and python_version < "3.14"
strict-rfc3339==0.7 ; python_version >= "3.9" and python_version < "3.14"
tabulate==0.9.0 ; python_version >= "3.9" and python_version < "3.14"
testcontainers==4.9.0 ; python_version >= "3.9" and python_version < "3.14"
toolz==1.0.0 ; python_version >= "3.9" and python_version < "3.14" and (implementation_name == "pypy" or implementation_name == "cpython")
tqdm==4.67.1 ; python_version >= "3.9" and python_version < "3.14"
typing-extensions==4.12.2 ; python_version >= "3.9" and python_version < "3.14"
urllib3==2.3.0 ; python_version >= "3.9" and python_version < "3.14"
wrapt==1.17.2 ; python_version >= "3.9" and python_version < "3.14"
Loading
Loading