Skip to content

Commit

Permalink
Add support for python 3.12 (#75)
Browse files Browse the repository at this point in the history
Also move the linting and codecov phase in the CI to python 3.11
  • Loading branch information
0x26res authored Jun 3, 2024
1 parent f058ce5 commit b178269
Show file tree
Hide file tree
Showing 7 changed files with 498 additions and 522 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Checkout sources
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: "matrix.python-version == '3.9'"
if: "matrix.python-version == '3.11'"
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- insertion marker -->
## [v0.5.0](https://github.com/tradewelltech/protarrow/releases/tag/v0.5.0) - 2024-05-31

<small>[Compare with v0.4.0](https://github.com/tradewelltech/protarrow/compare/v0.4.0...v0.5.0)</small>

### Added

- Add support for python 3.12 ([9b454e1](https://github.com/tradewelltech/protarrow/commit/9b454e1cf284fd96cd5e8c419ab95a2ad84513b1) by aandres).
- Add contributing and code of conduct, update dependencies (#74) ([f058ce5](https://github.com/tradewelltech/protarrow/commit/f058ce583a93e0dbca027067cd9df075a211c3b9) by 0x26res).

## [v0.4.0](https://github.com/tradewelltech/protarrow/releases/tag/v0.4.0) - 2024-04-11

<small>[Compare with v0.3.0](https://github.com/tradewelltech/protarrow/compare/v0.3.0...v0.4.0)</small>
Expand Down
22 changes: 11 additions & 11 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile ./requirements.in
#
babel==2.14.0
babel==2.15.0
# via mkdocs-material
certifi==2024.2.2
# via requests
Expand All @@ -20,11 +20,11 @@ colorama==0.4.6
# mkdocs-material
ghp-import==2.1.0
# via mkdocs
griffe==0.44.0
griffe==0.45.2
# via mkdocstrings-python
idna==3.7
# via requests
jinja2==3.1.3
jinja2==3.1.4
# via
# mkdocs
# mkdocs-material
Expand Down Expand Up @@ -59,29 +59,29 @@ mkdocs-autorefs==1.0.1
# via mkdocstrings
mkdocs-get-deps==0.2.0
# via mkdocs
mkdocs-material==9.5.19
mkdocs-material==9.5.25
# via -r ./requirements.in
mkdocs-material-extensions==1.3.1
# via
# -r ./requirements.in
# mkdocs-material
mkdocstrings[python]==0.25.0
mkdocstrings[python]==0.25.1
# via
# -r ./requirements.in
# mkdocstrings-python
mkdocstrings-python==1.10.0
mkdocstrings-python==1.10.3
# via mkdocstrings
packaging==24.0
# via mkdocs
paginate==0.5.6
# via mkdocs-material
pathspec==0.12.1
# via mkdocs
platformdirs==4.2.1
platformdirs==4.2.2
# via
# mkdocs-get-deps
# mkdocstrings
pygments==2.17.2
pygments==2.18.0
# via mkdocs-material
pymdown-extensions==10.8.1
# via
Expand All @@ -98,13 +98,13 @@ pyyaml==6.0.1
# pyyaml-env-tag
pyyaml-env-tag==0.1
# via mkdocs
regex==2024.4.16
regex==2024.5.15
# via mkdocs-material
requests==2.31.0
requests==2.32.3
# via mkdocs-material
six==1.16.0
# via python-dateutil
urllib3==2.2.1
# via requests
watchdog==4.0.0
watchdog==4.0.1
# via mkdocs
964 changes: 466 additions & 498 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion protarrow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
messages_to_table,
)

__version__ = "0.0.0"
__version__ = "0.4.0.post3.dev0+cf1e1bf"
__all__ = [
"MessageExtractor",
"ProtarrowConfig",
Expand Down
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[tool.poetry]
name = "protarrow"
version = "0.0.0"
version = "0.4.0.post3.dev0+cf1e1bf"
description = "Convert from protobuf to arrow and back"
authors = ["Tradewell Tech <engineering@tradewelltech.co>"]
maintainers = ["0x26res <0x26res@gmail.com>"]
Expand All @@ -16,18 +16,18 @@ classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"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",
]
keywords = ["apache-arrow", "protobuf", "data"]

[tool.poetry.dependencies]
googleapis-common-protos = ">=1.53.0"
protobuf = ">=3.20.1"
protobuf = ">=3.20.1,<5"
pyarrow = ">=12.0.0"
python = ">=3.8,<3.12"
python = ">=3.9,<4"

[tool.poetry.group.dev.dependencies]
Jinja2 = ">=3.1.2"
Expand All @@ -48,7 +48,6 @@ pytest = ">=7.2.0"
pytest-benchmark = ">=4.0.0"
pytest-xdist = ">=3.1.0"


[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
Expand All @@ -67,7 +66,7 @@ skip = [".gitignore"]
skips = ["B101", "B311"]

[tool.poetry-dynamic-versioning]
enable = true
enable = false

[tool.poetry-dynamic-versioning.substitution]
files = ["*/__init__.py"]
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
isolated_build = True
envlist =
py38,
py39,
py310,
py311,
py312,
linting,

[testenv]
Expand All @@ -24,7 +24,7 @@ commands = pre-commit run --all-files --show-diff-on-failure

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, linting
3.11: py311
3.10: py310
3.11: py311, linting
3.12: py312

0 comments on commit b178269

Please sign in to comment.