Skip to content

Commit

Permalink
build: Arrow 1.3.0
Browse files Browse the repository at this point in the history
Motivated by the fact that >800 other packages in PyPI depend on this
one <https://www.wheelodex.org/projects/arrow/>.
  • Loading branch information
l0b0 committed Oct 8, 2023
1 parent e23218d commit 403dcb0
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 1 deletion.
9 changes: 8 additions & 1 deletion overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,14 @@
"setuptools"
],
"arrow": [
"setuptools"
{
"buildSystem": "setuptools",
"until": "1.3.0"
},
{
"buildSystem": "flit-core",
"from": "1.3.0"
}
],
"arviz": [
"setuptools"
Expand Down
9 changes: 9 additions & 0 deletions tests/arrow/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "arrow-test" { } ''
${env}/bin/python -c 'import arrow; print(arrow.__version__)' > $out
''
61 changes: 61 additions & 0 deletions tests/arrow/poetry.lock

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

13 changes: 13 additions & 0 deletions tests/arrow/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "test_arrow"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "^3.8" # https://github.com/arrow-py/arrow/blob/master/CHANGELOG.rst
arrow = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 1 addition & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ in

affine = callTest ./affine { };
affine-pre-2-4 = callTest ./affine-pre-2-4 { };
arrow = callTest ./arrow { };
cdk-nag = callTest ./cdk-nag { };
gdal = callTest ./gdal { };
gitlint-core = callTest ./gitlint-core { };
Expand Down

0 comments on commit 403dcb0

Please sign in to comment.