Skip to content

Commit

Permalink
Merge pull request #483 from skirpichev/fix-ci
Browse files Browse the repository at this point in the history
Fix CI on CPython 3.13 due to difference _decimal/_pydecimal
  • Loading branch information
casevh authored May 20, 2024
2 parents 454f957 + f3f5d0a commit 8e78aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
CIBW_SKIP: pp* *-win32
CIBW_BEFORE_ALL: bash scripts/cibw_before_all.sh
CIBW_BEFORE_ALL_WINDOWS: msys2 -c scripts/cibw_before_all.sh
CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
CIBW_BEFORE_BUILD_WINDOWS: pip install wheel delvewheel
CIBW_TEST_EXTRAS: tests
CIBW_TEST_SKIP: cp38-macosx_arm64
CIBW_TEST_COMMAND: >
Expand Down
3 changes: 2 additions & 1 deletion src/gmpy2_convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ extern "C" {
MPZ_Check(x) || PyLong_Check(x) || \
XMPZ_Check(x) || HAS_MPQ_CONVERSION(x) || \
HAS_MPZ_CONVERSION(x))
#define IS_DECIMAL(x) (!strcmp(Py_TYPE(x)->tp_name, "decimal.Decimal"))
#define IS_DECIMAL(x) (!strcmp(Py_TYPE(x)->tp_name, "decimal.Decimal") || \
!strcmp(Py_TYPE(x)->tp_name, "Decimal"))
#define IS_REAL_ONLY(x) (MPFR_Check(x) || PyFloat_Check(x) || \
HAS_STRICT_MPFR_CONVERSION(x) || IS_DECIMAL(x))
#define IS_REAL(x) (IS_RATIONAL(x) || IS_REAL_ONLY(x))
Expand Down

0 comments on commit 8e78aef

Please sign in to comment.