Skip to content

Commit 3fdb228

Browse files
authored
Merge pull request #125 from nxt-dev/py_314
Python 3.14 compatibility
2 parents e14a965 + 4f88df5 commit 3fdb228

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [ubuntu-latest, windows-latest]
25-
python-version: ['3.9', '3.10', '3.11']
25+
python-version: ['3.9', '3.10', '3.11', '3.14']
2626
fail-fast: true
2727
runs-on: ${{ matrix.os }}
2828

nxt/nxt_node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ class INTERNAL_ATTRS(object):
4040
CACHED_CODE = _prefix + 'cached_code'
4141
# List of python attrs that a node will have but we don't want to parse or
4242
# considering in our composite logic
43-
BUILTINS = tuple(dir(type('NodeSpec', (object,), {})))
43+
class _NodeSpec(object):
44+
pass
45+
BUILTINS = tuple(dir(_NodeSpec))
4446
# A list of node attrs that are used internally in our composite logic but
4547
# tracked and like user attrs with a `_source__nxt` meta attr
4648
TRACKED = (COMPUTE, EXECUTE_IN, COMMENT, START_POINT, ENABLED,

nxt/plugin_loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def load_plugins():
2020
if not os.path.isdir(plugin_dir):
2121
continue
2222
for file_name in os.listdir(plugin_dir):
23+
if not file_name.endswith('.py'):
24+
continue
2325
mod_name, _ = os.path.splitext(file_name)
2426
if mod_name in _nxt_loaded_plugin_module_names:
2527
continue

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
long_description_content_type="text/markdown",
2727
url="https://github.com/nxt-dev/nxt",
2828
packages=setuptools.find_packages(),
29-
python_requires='>=3.7, <3.12',
29+
python_requires='>=3.7, <3.15',
3030
entry_points={
3131
'console_scripts': [
3232
'nxt=nxt.cli:main',

0 commit comments

Comments
 (0)