From 0758c1075ee8fbe5d4574cdaba919d161faa3ce9 Mon Sep 17 00:00:00 2001 From: Dale Visser Date: Mon, 14 Jul 2025 10:53:03 -0400 Subject: [PATCH 1/2] Added #include that allows src/ to compile, and include 3.13 in targetted Python versions --- .github/workflows/tests.yml | 2 +- setup.py | 4 ++-- src/args.cc | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4862bf92d..23d040a82 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] include: - os: windows-2019 python_version: "3.6" diff --git a/setup.py b/setup.py index 13e210279..fa3f28a19 100644 --- a/setup.py +++ b/setup.py @@ -17,12 +17,11 @@ import sys import setuptools import os -import subprocess import platform import io import pybind11 -__version__ = '0.10.5' +__version__ = '0.10.6' FASTTEXT_SRC = "src" # Based on https://github.com/pybind/python_example @@ -174,6 +173,7 @@ def _get_readme(): 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: Software Development', 'Topic :: Scientific/Engineering', 'Operating System :: Microsoft :: Windows', diff --git a/src/args.cc b/src/args.cc index a8975e816..986606ece 100644 --- a/src/args.cc +++ b/src/args.cc @@ -14,6 +14,7 @@ #include #include #include +#include namespace fasttext { From f95b72effea5e2131ec54de5bd04672a805c7473 Mon Sep 17 00:00:00 2001 From: Dale Visser Date: Mon, 14 Jul 2025 15:49:46 -0400 Subject: [PATCH 2/2] Add python 3.13 to install fasttext conditions --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 23d040a82..c6f6a1cd2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,7 +78,7 @@ jobs: python -m pip install wheel - name: Install fasttext - if: "!(startsWith(matrix.os, 'windows') && (matrix.python_version == '3.10' || matrix.python_version == '3.11') || matrix.python_version == '3.12')" + if: "!(startsWith(matrix.os, 'windows') && (matrix.python_version == '3.10' || matrix.python_version == '3.11') || matrix.python_version == '3.12' || matrix.python_version == '3.13')" run: | python -m pip install fasttext