Skip to content

Commit

Permalink
Fixed #10
Browse files Browse the repository at this point in the history
  • Loading branch information
dhondta committed Jan 6, 2025
1 parent 98ea759 commit 06d7ca5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
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"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion src/codext/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.4
1.15.5
5 changes: 3 additions & 2 deletions src/codext/__common__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ def _input(infile):

def _set_exc(name, etype="ValueError"):
if not hasattr(builtins, name):
exec(f"class {name}({etype}): __module__ = 'builtins'")
setattr(builtins, name, locals()[name])
ns = {}
exec(f"class {name}({etype}): __module__ = 'builtins'", {}, ns)
setattr(builtins, name, ns[name])
_set_exc("InputSizeLimitError")
_set_exc("ParameterError")

Expand Down

0 comments on commit 06d7ca5

Please sign in to comment.