Skip to content

Commit fb1d0a0

Browse files
committed
fix pixi-build configuration
1 parent 45b69ce commit fb1d0a0

2 files changed

Lines changed: 28 additions & 40 deletions

File tree

pixi.toml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,27 @@ channels = ["conda-forge"]
33
description = "A declarative, polars-native data frame validation library."
44
name = "dataframely"
55
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64", "win-64"]
6+
preview = ["pixi-build"]
67

7-
[tasks]
8-
postinstall = "maturin develop"
9-
postinstall-release = "pip install --no-build-isolation --no-deps --disable-pip-version-check -v -e ."
8+
[package]
9+
name = "dataframely"
10+
11+
[package.build]
12+
backend = { name = "pixi-build-python", git = "https://github.com/pavelzw/pixi", branch = "abi3", subdirectory = "crates/pixi_build_python" }
13+
[package.host-dependencies]
14+
maturin = "*"
15+
python = "3.10.*"
16+
[package.target.osx-arm64.build-dependencies]
17+
# https://conda-forge.zulipchat.com/#narrow/channel/457337-general/topic/macOS.20clang.2021.20.2F.20LTO.20issues/near/578390360
18+
clangdev = "*"
19+
[package.build.config]
20+
abi3 = true
21+
compilers = ["c", "rust"]
22+
env = { MATURIN_PEP517_ARGS = "--locked" }
1023

1124
[dependencies]
1225
python = ">=3.10"
13-
hatchling = "*"
26+
dataframely = { path = "." }
1427

1528
fsspec = ">=2025.9"
1629
numpy = "*"
@@ -20,9 +33,6 @@ numpy = "*"
2033
# The latest polars version is in feature.polars-latest.
2134
polars = ">=1.35"
2235

23-
maturin = ">=1.7,<2"
24-
pip = "*"
25-
2636
[feature.dev.dependencies]
2737
jupyter = "*"
2838

@@ -39,7 +49,7 @@ sphinx-design = "*"
3949
sphinx-toolbox = "*"
4050

4151
[feature.docs.tasks]
42-
docs = { cmd = "rm -rf _build && find . -name _gen -type d -exec rm -rf \"{}\" + && sphinx-build -M html . _build --fail-on-warning", cwd = "docs", depends-on = "postinstall" }
52+
docs = { cmd = "rm -rf _build && find . -name _gen -type d -exec rm -rf \"{}\" + && sphinx-build -M html . _build --fail-on-warning", cwd = "docs" }
4353
readthedocs = { cmd = "rm -rf $READTHEDOCS_OUTPUT/html && cp -r docs/_build/html $READTHEDOCS_OUTPUT/html", depends-on = "docs" }
4454

4555
[feature.test.dependencies]
@@ -117,9 +127,6 @@ python = "3.13.*"
117127
[feature.py314.dependencies]
118128
python = "3.14.*"
119129

120-
[feature.py314.dependencies]
121-
python = "3.14.*"
122-
123130
[feature.polars-minimal.dependencies]
124131
# NOTE: Update docs/faq.md when updating this.
125132
polars = "1.35.*"
@@ -132,15 +139,16 @@ polars = "1.39.*"
132139
install-polars-nightly = "pip install --pre --no-deps --upgrade --only-binary :all: polars polars-runtime-32"
133140

134141
[environments]
135-
<<<<<<< before updating
136-
build = ["build"]
137142
py314 = ["polars-latest", "py314", "test"]
138-
||||||| last update
139-
build = ["build"]
140-
=======
141-
py314 = ["py314", "test"]
142-
>>>>>>> after updating
143-
default = ["dev", "lint", "optionals", "polars-latest", "py314", "test"]
143+
default = [
144+
"dev",
145+
"build",
146+
"lint",
147+
"optionals",
148+
"polars-latest",
149+
"py314",
150+
"test",
151+
]
144152
docs = ["docs"]
145153
lint = { features = ["lint"], no-default-feature = true }
146154
nightly = ["nightly", "optionals", "test"]
@@ -164,6 +172,3 @@ default-polars-minimal = [
164172
"test",
165173
]
166174
polars-minimal = ["polars-minimal", "py314", "test"]
167-
168-
[dependencies]
169-
dataframely = { path = "." }

pyproject.toml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
[build-system]
2-
<<<<<<< before updating
32
build-backend = "maturin"
4-
||||||| last update
5-
=======
6-
build-backend = "hatchling.build"
7-
>>>>>>> after updating
83
requires = ["maturin>=1.7,<2.0", "hatchling"]
94

105
[project]
11-
<<<<<<< before updating
6+
name = "dataframely"
127
authors = [
138
{ name = "Andreas Albert", email = "andreas.albert@quantco.com" },
149
{ name = "Daniel Elsner", email = "daniel.elsner@quantco.com" },
1510
{ name = "Oliver Borchert", email = "oliver.borchert@quantco.com" },
1611
]
17-
||||||| last update
18-
name = "dataframely"
19-
description = "A declarative, polars-native data frame validation library"
20-
authors = [{ name = "Oliver Borchert", email = "oliver.borchert@quantco.com" }]
21-
dynamic = ["version"]
22-
=======
23-
name = "dataframely"
2412
description = "A declarative, polars-native data frame validation library"
25-
authors = [{ name = "Oliver Borchert", email = "oliver.borchert@quantco.com" }]
2613
# replaced in CI
2714
version = "0.0.0"
28-
>>>>>>> after updating
2915
classifiers = [
3016
"Programming Language :: Python :: 3",
3117
"Programming Language :: Python :: 3.10",
@@ -41,11 +27,8 @@ dependencies = [
4127
# Conditional
4228
'typing-extensions; python_version <= "3.10"',
4329
]
44-
description = "A declarative, polars-native data frame validation library"
45-
name = "dataframely"
4630
readme = "README.md"
4731
requires-python = ">=3.10"
48-
version = "0.0.0"
4932

5033
[project.optional-dependencies]
5134
deltalake = ["deltalake"]

0 commit comments

Comments
 (0)