Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ jobs:
- name: Run uv sync
run: ./img2num run uv sync

- name: Build Img2Num Python Package
- name: Build wheel
run: |
./img2num run uv build
# Debug
ls -R dist || true

- name: Verify import
run: ./img2num run uv run python3 -c "import img2num;"

- name: Build and run example-apps/console-py
Expand All @@ -99,7 +105,7 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: py-build
path: packages/py/build-py/
path: dist/
if-no-files-found: error

- name: Upload example-apps/console-py output artifacts
Expand Down
33 changes: 0 additions & 33 deletions packages/py/pyproject.toml

This file was deleted.

54 changes: 43 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,64 @@
[project]
name = "img2num_uv_workspace"
name = "img2num"
version = "0.0.0"
description = "Root level workspace for Img2Num's Python package and applications"
description = "A fast and accurate raster image to SVG conversion library"
requires-python = ">=3.10"
license = { text = "MIT" }
readme = "README.md"
authors = [{ name = "Ryan Millard" }]
dependencies = [
"img2num"
"numpy>=1.23.5"
]
Comment thread
coderabbitai[bot] marked this conversation as resolved.
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]

[tool.uv]
package = false
no-build-isolation-package = ["img2num"]
[project.urls]
Homepage = "https://ryan-millard.github.io/Img2Num/"
Repository = "https://github.com/Ryan-Millard/Img2Num"

[build-system]
requires = [
"scikit-build-core>=0.10",
"pybind11>=2.10",
"numpy>=2.0"
]
Comment thread
coderabbitai[bot] marked this conversation as resolved.
build-backend = "scikit_build_core.build"

[tool.scikit-build]
cmake.source-dir = "."
cmake.build-type = "Release"
cmake.args = [
"-DBUILD_PYTHON=ON",
"-DPython3_FIND_VIRTUALENV=NEVER",
]

[tool.uv.sources]
img2num = { workspace = true }
wheel.packages = ["img2num"]

sdist.include = [
"CMakeLists.txt",
"core/**",
"bindings/py/**",
"packages/py/**"
]

[tool.uv]
package = true

[tool.uv.workspace]
members = [
# Python wrapper package
"packages/py",
# All example apps with "-py" suffix
"example-apps/*-py"
]

[tool.ruff]
target-version = "py310"
line-length = 88

exclude = ["third_party/", "docs/", ".venv/"]

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
Expand Down
Binary file added test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 33 additions & 12 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading