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

Add support for python 3.12 #438

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dev = [
"build",
"flaky",
"invoke",
"moto<3.0.0",
"moto>=4.2.8,<5.0.0",
"packaging",
"pre-commit",
"pytest",
Expand Down
7 changes: 0 additions & 7 deletions tests/utils/mock_swf_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import boto3
from moto import mock_s3, mock_swf
from moto.swf import swf_backend

from simpleflow.swf.executor import Executor
from simpleflow.swf.mapper.actors import Decider
Expand Down Expand Up @@ -38,12 +37,6 @@ def setUp(self):
self.s3_conn = boto3.client("s3", region_name="us-east-1")
self.s3_conn.create_bucket(Bucket="jumbo-bucket")

def tearDown(self):
swf_backend.reset()
assert not self.swf_conn.list_domains(registrationStatus="REGISTERED")[
"domainInfos"
], "moto state incorrectly reset!"

def register_activity_type(self, func: str, task_list: str):
self.swf_conn.register_activity_type(domain=self.domain.name, name=func, version=task_list)

Expand Down
Loading