Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/codspeed.yml

This file was deleted.

50 changes: 30 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,11 @@ jobs:
include:
- os: ubuntu
platform: linux
- os: windows
ls: dir
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: windows
ls: dir
target: aarch64
interpreter: 3.11 3.12 3.13
- os: macos
target: aarch64
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: ubuntu
platform: linux
target: aarch64
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features
# musllinux
- os: ubuntu
platform: linux
target: x86_64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: aarch64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: ppc64le
Expand All @@ -55,6 +36,35 @@ jobs:
# mimalloc not supported on manylinux2014 cross-compile container
extra-build-args: --no-default-features

# musllinux
- os: ubuntu
platform: linux
target: x86_64
manylinux: musllinux_1_1
- os: ubuntu
platform: linux
target: aarch64
manylinux: musllinux_1_1

- os: windows
target: x86_64
interpreter: pypy3.9 pypy3.10
- os: windows
target: i686
python-architecture: x86
interpreter: 3.9 3.10 3.11 3.12 3.13
- os: windows
target: aarch64
interpreter: 3.11 3.12 3.13

- os: macos
target: x86_64
- os: macos
target: aarch64
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10



runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -75,7 +85,7 @@ jobs:
rust-toolchain: stable
docker-options: -e CI

- run: ${{ matrix.ls || 'ls -lh' }} dist/
- run: ${{ matrix.ls || 'ls -l' }} dist/

- uses: actions/upload-artifact@v3
with:
Expand Down
10 changes: 7 additions & 3 deletions .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.9, "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
defaults:
run:
shell: bash
Expand All @@ -53,8 +53,12 @@ jobs:
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")

- name: Install poetry
run: |
curl -fsS https://install.python-poetry.org | python - --preview -y
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
version: 1.8.5

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ lint-rust:
format-rust:
cd rust && cargo fmt --all
cd rust && cargo clippy --tests --fix --allow-dirty -- -D warnings

dev:
poetry install --only main --only test --only typing --only build
poetry run maturin develop

lint:
poetry run mypy
pre-commit run --all-files

test:
PENDULUM_EXTENSIONS=0 poetry run pytest -q tests
poetry run pytest -q tests
9 changes: 5 additions & 4 deletions clock
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ translations = {{}}
def format_dict(self, d, tab=1):
s = ["{\n"]
for k, v in d.items():
if isinstance(v, (dict, LocaleDataDict)):
v = self.format_dict(v, tab + 1)
else:
v = repr(v)
v = (
self.format_dict(v, tab + 1)
if isinstance(v, (dict, LocaleDataDict))
else repr(v)
)

s.append(f"{' ' * tab}{k!r}: {v},\n")
s.append(f'{" " * (tab - 1)}}}')
Expand Down
122 changes: 25 additions & 97 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading