Skip to content

Commit

Permalink
Merge pull request #1 from dlt-hub/enables-py-3.13
Browse files Browse the repository at this point in the history
Enables py 3.13
  • Loading branch information
rudolfix authored Nov 9, 2024
2 parents a21fc8d + 07da530 commit 55f0f5e
Show file tree
Hide file tree
Showing 26 changed files with 356 additions and 516 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/codspeed.yml

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
platform: linux
- os: windows
ls: dir
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
- os: windows
ls: dir
target: aarch64
interpreter: 3.11 3.12
- os: macos
target: aarch64
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
- os: ubuntu
platform: linux
target: aarch64
Expand All @@ -45,13 +45,13 @@ jobs:
- os: ubuntu
platform: linux
target: ppc64le
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features
- os: ubuntu
platform: linux
target: s390x
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features

Expand All @@ -71,7 +71,7 @@ jobs:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux || 'auto' }}
container: ${{ matrix.container }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
rust-toolchain: stable
docker-options: -e CI

Expand Down Expand Up @@ -138,8 +138,8 @@ jobs:
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish
# - name: Publish to PyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry publish
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
defaults:
run:
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ lint-rust:
format-rust:
cd rust && cargo fmt --all
cd rust && cargo clippy --tests --fix --allow-dirty -- -D warnings

dev:
poetry install
323 changes: 178 additions & 145 deletions poetry.lock

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pendulum"
version = "3.0.0"
version = "3.0.1"
description = "Python datetimes made easy"
readme = "README.rst"
requires-python = ">=3.8"
Expand All @@ -22,8 +22,8 @@ dependencies = [
"python-dateutil>=2.6",
"tzdata>=2020.1",
'backports.zoneinfo>=0.2.1; python_version < "3.9"',
'time-machine>=2.6.0; implementation_name != "pypy"',
'importlib-resources>=5.9.0; python_version < "3.9"'
'importlib-resources>=5.9.0; python_version < "3.9"',
"cffi>=1.17",
]

[project.urls]
Expand All @@ -34,7 +34,7 @@ Repository = "https://github.com/sdispater/pendulum"

[tool.poetry]
name = "pendulum"
version = "3.0.0"
version = "3.0.1"
description = "Python datetimes made easy"
authors = ["Sébastien Eustace <[email protected]>"]
license = "MIT"
Expand All @@ -47,9 +47,9 @@ keywords = ['datetime', 'date', 'time']

[tool.poetry.dependencies]
python = ">=3.8"
cffi = ">=1.17"
python-dateutil = ">=2.6"
"backports.zoneinfo" = { version = ">=0.2.1", python = "<3.9" }
time-machine = { version = ">=2.6.0", markers = "implementation_name != 'pypy'", optional = true }
tzdata = ">=2020.1"
importlib-resources = { version = ">=5.9.0", python = "<3.9" }

Expand Down Expand Up @@ -78,8 +78,9 @@ babel = "^2.10.3"
cleo = { version = "^2.0.1", python = ">=3.8,<4.0" }
tox = "^4.0.0"

[tool.poetry.group.benchmark.dependencies]
pytest-codspeed = "^1.2.2"
# [tool.poetry.group.benchmark.dependencies]
# pytest-codspeed = "^1.2.2"
ruff = "^0.7.3"

[tool.poetry.group.build.dependencies]
maturin = ">=1.0,<2.0"
Expand Down Expand Up @@ -239,5 +240,7 @@ omit = [
]

[build-system]
# requires = ["poetry-core>=1.0.8"]
# build-backend = "poetry.core.masonry.api"
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
Loading

0 comments on commit 55f0f5e

Please sign in to comment.