-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-add-copy-ttree
- Loading branch information
Showing
31 changed files
with
1,138 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ updates: | |
directory: / | ||
schedule: | ||
interval: weekly | ||
groups: | ||
actions: | ||
patterns: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build sdist and wheel | ||
|
||
on: | ||
# Run on demand with workflow dispatch | ||
workflow_dispatch: | ||
# Use from other workflows | ||
workflow_call: | ||
|
||
jobs: | ||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build sdist and wheel | ||
run: pipx run build | ||
|
||
- name: Check metadata | ||
run: pipx run twine check --strict dist/* | ||
|
||
- name: List contents of sdist | ||
run: python -m tarfile --list dist/uproot-*.tar.gz | ||
|
||
- name: List contents of wheel | ||
run: python -m zipfile --list dist/uproot-*.whl | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: distribution-artifact | ||
path: dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Upload nightly wheels to Anaconda Cloud | ||
|
||
on: | ||
# Run daily at 1:23 UTC | ||
schedule: | ||
- cron: 23 1 * * * | ||
# Run on demand with workflow dispatch | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
build_wheel: | ||
name: Build and upload wheel | ||
if: github.repository_owner == 'scikit-hep' | ||
uses: ./.github/workflows/build-distributions.yml | ||
|
||
upload_nightly_wheels: | ||
name: Upload nightly wheels to Anaconda Cloud | ||
needs: [build_wheel] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: distribution-artifact | ||
path: dist | ||
|
||
- name: List wheel to be deployed | ||
run: ls -lha dist/*.whl | ||
|
||
- name: Upload wheel to Anaconda Cloud as nightly | ||
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 | ||
with: | ||
artifacts_path: dist | ||
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ requires = [ | |
"hatch-vcs" | ||
] | ||
|
||
[lint.mccabe] | ||
max-complexity = 100 | ||
|
||
[project] | ||
authors = [ | ||
{name = "Jim Pivarski", email = "[email protected]"} | ||
|
@@ -35,7 +38,7 @@ classifiers = [ | |
] | ||
dependencies = [ | ||
"awkward>=2.4.6", | ||
"importlib-metadata;python_version<\"3.8\"", | ||
"cramjam>=2.5.0", | ||
"numpy", | ||
"fsspec", | ||
"packaging", | ||
|
@@ -59,10 +62,12 @@ dev = [ | |
"pandas", | ||
"awkward-pandas" | ||
] | ||
http = ["aiohttp"] | ||
s3 = ["s3fs"] | ||
test = [ | ||
"lz4", | ||
"isal", | ||
"deflate", | ||
"xxhash", | ||
"zstandard", | ||
"minio", | ||
"aiohttp", | ||
"fsspec-xrootd", | ||
|
@@ -75,6 +80,7 @@ test = [ | |
"scikit-hep-testdata", | ||
"rangehttpserver" | ||
] | ||
xrootd = ["fsspec-xrootd"] | ||
|
||
[project.urls] | ||
Download = "https://github.com/scikit-hep/uproot5/releases" | ||
|
@@ -114,6 +120,9 @@ exclude = [ | |
"src/uproot/__init__.py", | ||
"docs-sphinx/*.py" | ||
] | ||
src = ["src"] | ||
|
||
[tool.ruff.lint] | ||
ignore = [ | ||
"E501", | ||
"E722", | ||
|
@@ -122,7 +131,7 @@ ignore = [ | |
"SIM118", # key in dict, broken since uproot doesn't behave like a dict | ||
"PGH003", # too-broad type ignore | ||
"SIM114", # combine `if` branches using logical `or` operator | ||
"PGH001", # no eval allowed | ||
"S307", # no eval allowed | ||
"PLC1901", # empty string is falsey (but I don't want to rely on such weak typing) | ||
"RUF012" # enforces type annotations on a codebase that lacks type annotations | ||
] | ||
|
@@ -146,16 +155,10 @@ select = [ | |
"UP", # pyupgrade | ||
"YTT" # flake8-2020 | ||
] | ||
src = ["src"] | ||
|
||
[tool.ruff.lint] | ||
isort.required-imports = ["from __future__ import annotations"] | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 100 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"dev/*" = ["T20"] | ||
[tool.ruff.lint.per-file-ignores] | ||
"dev/*" = ["T20", "T201"] | ||
"src/uproot/*/file.py" = ["SIM115"] | ||
|
||
[tool.setuptools_scm] | ||
|
Oops, something went wrong.