-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
431c03d
commit dc43d5b
Showing
10 changed files
with
86 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,4 +216,4 @@ jobs: | |
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
- uses: pypa/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,3 +140,6 @@ cython_debug/ | |
# vscode | ||
.vscode/ | ||
_skbuild/ | ||
|
||
# Cython generated files | ||
*.cxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,57 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"scikit-build>=0.13.0", | ||
"scikit-build-core>=0.9.8", | ||
"Cython>=3.0.2,<3.1.0" | ||
] | ||
build-backend = "backend" | ||
backend-path = ["_custom_build"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "Levenshtein" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"rapidfuzz >= 3.8.0, < 4.0.0" | ||
] | ||
requires-python = ">= 3.8" | ||
authors = [ | ||
{name = "Max Bachmann", email = "[email protected]"}, | ||
] | ||
description = "Python extension for computing string edit distances and similarities." | ||
readme = "README.md" | ||
classifiers=[ | ||
"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", | ||
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", | ||
] | ||
Homepage = "https://github.com/rapidfuzz/Levenshtein" | ||
Documentation = "https://rapidfuzz.github.io/Levenshtein/" | ||
Repository = "https://github.com/rapidfuzz/Levenshtein.git" | ||
Issues = "https://github.com/rapidfuzz/Levenshtein/issues" | ||
Changelog = "https://github.com/rapidfuzz/Levenshtein/blob/main/HISTORY.md" | ||
|
||
[tool.scikit-build] | ||
sdist.include = [ | ||
"src/Levenshtein/*.cxx", | ||
"src/Levenshtein/_version.py" | ||
] | ||
sdist.exclude = [ | ||
".github" | ||
] | ||
wheel.exclude = [ | ||
"**.pyx", | ||
"**.cxx", | ||
"**.cpp", | ||
"**.hpp", | ||
"CMakeLists.txt", | ||
"generate.sh" | ||
] | ||
|
||
[tool.scikit-build.metadata.version] | ||
provider = "scikit_build_core.metadata.regex" | ||
input = "src/Levenshtein/__init__.py" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
@@ -95,3 +140,19 @@ isort.required-imports = ["from __future__ import annotations"] | |
"bench/**" = ["T20"] | ||
"_custom_build/backend.py" = ["T20"] | ||
"setup.py" = ["T20"] | ||
|
||
|
||
|
||
|
||
#[tool.scikit-build] | ||
|
||
|
||
|
||
#setup( | ||
# url="https://github.com/rapidfuzz/Levenshtein", | ||
# license="GPL", | ||
# license_file="COPYING", | ||
# packages=["Levenshtein"], | ||
# package_dir={"": "src"}, | ||
# package_data={"Levenshtein": ["*.pyi", "py.typed"]}, | ||
#) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
diff --git a/pyproject.toml b/pyproject.toml | ||
index 27f4629..752d509 100644 | ||
index 0a8c033..cf967b9 100644 | ||
--- a/pyproject.toml | ||
+++ b/pyproject.toml | ||
@@ -1,8 +1,7 @@ | ||
@@ -1,7 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
- "scikit-build>=0.13.0", | ||
- "scikit-build-core>=0.9.8", | ||
- "Cython>=3.0.2,<3.1.0" | ||
+ "scikit-build>=0.13.0" | ||
+ "scikit-build-core>=0.9.8" | ||
] | ||
build-backend = "backend" | ||
backend-path = ["_custom_build"] | ||
build-backend = "scikit_build_core.build" |