Skip to content

Commit

Permalink
include cython modules in wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamtaranto committed Jan 4, 2025
1 parent 931aa35 commit a39a3a0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ requires = [
]
build-backend = "hatchling.build"

[tool.hatch.build.hooks.custom]
path = "build.py"

# Project metadata and configuration
[project]
Expand Down Expand Up @@ -88,13 +86,21 @@ allow-direct-references = true

[tool.hatch.build]
packages = ["src/jcvi"]
artifacts = [
"src/jcvi/**/*.so", # Linux/Mac shared objects
"src/jcvi/**/*.pyd", # Windows shared objects
"src/jcvi/**/*.c" # Generated C files
]

[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.custom]
path = "build.py"

[tool.hatch.build.hooks.vcs]
version-file = "src/jcvi/_version.py"

[tool.hatch.version]
source = "vcs"

[tool.hatch.version.vcs]
tag-pattern = "v*"
fallback-version = "0.0.0"
Expand All @@ -106,5 +112,7 @@ include = [
"README.md",
]

force-include = { "build.py" = "build.py", "setup.py" = "setup.py"}

[tool.hatch.build.targets.wheel]
packages = ["src/jcvi"]

0 comments on commit a39a3a0

Please sign in to comment.