Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]

steps:
- name: Set up Python
Expand Down
7 changes: 6 additions & 1 deletion boolean/boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,12 @@ def __lt__(self, other):
def __gt__(self, other):
lt = other.__lt__(self)
if lt is NotImplemented:
return not self.__lt__(other)
self_lt = self.__lt__(other)
if self_lt is NotImplemented:
# `return not NotImplemented`` no longer works in Python 3.14
return False
else:
return not self_lt
return lt

def __and__(self, other):
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_loader="unittest:TestLoader",
test_suite="boolean.test_boolean",
keywords="boolean expression, boolean algebra, logic, expression parser",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand All @@ -54,7 +52,9 @@
[
"pytest >= 6, != 7.0.0",
"pytest-xdist >= 2",
"twine",
],
"linting":
[
"black",
"isort",
"pycodestyle",
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
envlist=py36,py37,py38,py39,310
envlist=py39,py310,py311,py312,py313,py314
[testenv]
commands=python setup.py test
extras=testing
commands=pytest -vvs boolean
Loading