Skip to content

Commit

Permalink
Fix hatch build (#4565)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Jan 29, 2025
1 parent 8a737e7 commit d82da0f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ dependencies = [
"tomli>=1.1.0; python_version < '3.11'",
"typing_extensions>=4.0.1; python_version < '3.11'",
]
dynamic = ["readme", "version"]
version = "25.1.0"
dynamic = ["readme"]

[project.optional-dependencies]
colorama = ["colorama>=0.4.3"]
Expand Down Expand Up @@ -186,16 +187,6 @@ MYPYC_DEBUG_LEVEL = "0"
# Black needs Clang to compile successfully on Linux.
CC = "clang"

[tool.cibuildwheel.macos]
build-frontend = { name = "build", args = ["--no-isolation"] }
# Unfortunately, hatch doesn't respect MACOSX_DEPLOYMENT_TARGET
# Note we don't have a good test for this sed horror, so if you futz with it
# make sure to test manually
before-build = [
"python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy>=1.12' 'click>=8.1.7'",
"""sed -i '' -e "600,700s/'10_16'/os.environ['MACOSX_DEPLOYMENT_TARGET'].replace('.', '_')/" $(python -c 'import hatchling.builders.wheel as h; print(h.__file__)') """,
]

[tool.isort]
atomic = true
profile = "black"
Expand Down

0 comments on commit d82da0f

Please sign in to comment.