Skip to content

Commit 2f192b6

Browse files
fix: add manifest.in
1 parent 5a547db commit 2f192b6

4 files changed

Lines changed: 27 additions & 8 deletions

File tree

MANIFEST.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include chaine/_core/*.pyx
2+
include chaine/_core/*.pxd
3+
recursive-include chaine/_core/crfsuite/include *.h
4+
recursive-include chaine/_core/crfsuite/include *.hpp
5+
recursive-include chaine/_core/crfsuite/lib/cqdb/include *.h
6+
recursive-include chaine/_core/crfsuite/lib/crf/src *.h
7+
recursive-include chaine/_core/liblbfgs/include *.h
8+
recursive-include chaine/_core/liblbfgs/lib *.h

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
[project]
22
name = "chaine"
3-
version = "4.0.0b2"
3+
version = "4.0.0b3"
44
description = "Linear-chain conditional random fields for natural language processing"
55
readme = "README.md"
66
requires-python = ">=3.11"
77
authors = [{ name = "Severin Simmler", email = "s.simmler@snapaddy.com" }]
88

99
[dependency-groups]
10-
dev = ["cython>=3.0.0", "pytest>=9.0.0", "jupyterlab>=4.5.0"]
10+
dev = [
11+
"cython>=3.0.0",
12+
"setuptools>=80.0.0",
13+
"pytest>=9.0.0",
14+
"jupyterlab>=4.5.0",
15+
]
1116

1217
[tool.cibuildwheel]
1318
build = "cp311-* cp312-* cp313-* cp314-*"

setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from setuptools import setup, Extension
2-
from setuptools.command.build_ext import build_ext
31
from Cython.Build import cythonize
4-
2+
from setuptools import Extension, setup
3+
from setuptools.command.build_ext import build_ext
54

65
SOURCES = [
76
"chaine/_core/crf.pyx",
@@ -33,9 +32,11 @@
3332
]
3433

3534
INCLUDE_DIRS = [
36-
"chaine/_core/crfsuite/include/",
35+
"chaine/_core/crfsuite/include",
3736
"chaine/_core/crfsuite/lib/cqdb/include",
37+
"chaine/_core/crfsuite/lib/crf/src",
3838
"chaine/_core/liblbfgs/include",
39+
"chaine/_core/liblbfgs/lib",
3940
"chaine/_core",
4041
]
4142

@@ -54,7 +55,10 @@ def build_extensions(self):
5455

5556
def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
5657
if src.endswith(".c"):
57-
extra_postargs = extra_postargs + ["-std=c99", "-D_POSIX_C_SOURCE=200112L"]
58+
extra_postargs = extra_postargs + [
59+
"-std=c99",
60+
"-D_POSIX_C_SOURCE=200112L",
61+
]
5862
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
5963

6064
c._compile = c_compile

uv.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)