gfal 0.1.27__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. gfal-0.1.27/.all-contributorsrc +30 -0
  2. gfal-0.1.27/.github/CODEOWNERS +4 -0
  3. gfal-0.1.27/.github/dependabot.yml +14 -0
  4. gfal-0.1.27/.github/workflows/ci.yml +379 -0
  5. gfal-0.1.27/.gitignore +225 -0
  6. gfal-0.1.27/.pre-commit-config.yaml +27 -0
  7. gfal-0.1.27/AGENTS.md +1 -0
  8. gfal-0.1.27/CHANGELOG +2 -0
  9. gfal-0.1.27/CLAUDE.md +417 -0
  10. gfal-0.1.27/LICENSE +28 -0
  11. gfal-0.1.27/Makefile +49 -0
  12. gfal-0.1.27/PKG-INFO +336 -0
  13. gfal-0.1.27/README.md +284 -0
  14. gfal-0.1.27/build-deb.sh +93 -0
  15. gfal-0.1.27/docs/gfal2-util-help-reference.md +392 -0
  16. gfal-0.1.27/docs/index.md +255 -0
  17. gfal-0.1.27/docs/installation.md +81 -0
  18. gfal-0.1.27/docs/reference.md +392 -0
  19. gfal-0.1.27/mkdocs.yml +48 -0
  20. gfal-0.1.27/pyproject.toml +83 -0
  21. gfal-0.1.27/src/gfal/__init__.py +34 -0
  22. gfal-0.1.27/src/gfal/_version.py +34 -0
  23. gfal-0.1.27/src/gfal/cli/__init__.py +0 -0
  24. gfal-0.1.27/src/gfal/cli/base.py +958 -0
  25. gfal-0.1.27/src/gfal/cli/commands.py +333 -0
  26. gfal-0.1.27/src/gfal/cli/copy.py +664 -0
  27. gfal-0.1.27/src/gfal/cli/ls.py +385 -0
  28. gfal-0.1.27/src/gfal/cli/progress.py +282 -0
  29. gfal-0.1.27/src/gfal/cli/rm.py +151 -0
  30. gfal-0.1.27/src/gfal/cli/shell.py +216 -0
  31. gfal-0.1.27/src/gfal/cli/tape.py +141 -0
  32. gfal-0.1.27/src/gfal/core/__init__.py +0 -0
  33. gfal-0.1.27/src/gfal/core/api.py +261 -0
  34. gfal-0.1.27/src/gfal/core/errors.py +52 -0
  35. gfal-0.1.27/src/gfal/core/fs.py +489 -0
  36. gfal-0.1.27/src/gfal/core/tpc.py +284 -0
  37. gfal-0.1.27/src/gfal/core/utils.py +69 -0
  38. gfal-0.1.27/src/gfal/core/webdav.py +490 -0
  39. gfal-0.1.27/src/gfal/tui/__init__.py +1370 -0
  40. gfal-0.1.27/tests/conftest.py +333 -0
  41. gfal-0.1.27/tests/helpers.py +85 -0
  42. gfal-0.1.27/tests/test_base.py +293 -0
  43. gfal-0.1.27/tests/test_cat.py +156 -0
  44. gfal-0.1.27/tests/test_chmod.py +189 -0
  45. gfal-0.1.27/tests/test_cli.py +344 -0
  46. gfal-0.1.27/tests/test_cp.py +964 -0
  47. gfal-0.1.27/tests/test_fs.py +457 -0
  48. gfal-0.1.27/tests/test_integration_eospilot.py +496 -0
  49. gfal-0.1.27/tests/test_integration_eospublic.py +291 -0
  50. gfal-0.1.27/tests/test_ipv.py +105 -0
  51. gfal-0.1.27/tests/test_ls.py +741 -0
  52. gfal-0.1.27/tests/test_mkdir.py +209 -0
  53. gfal-0.1.27/tests/test_pipe.py +71 -0
  54. gfal-0.1.27/tests/test_progress.py +204 -0
  55. gfal-0.1.27/tests/test_rename.py +112 -0
  56. gfal-0.1.27/tests/test_rm.py +296 -0
  57. gfal-0.1.27/tests/test_save.py +126 -0
  58. gfal-0.1.27/tests/test_shell.py +223 -0
  59. gfal-0.1.27/tests/test_stat.py +251 -0
  60. gfal-0.1.27/tests/test_sum.py +347 -0
  61. gfal-0.1.27/tests/test_tape.py +161 -0
  62. gfal-0.1.27/tests/test_tpc.py +798 -0
  63. gfal-0.1.27/tests/test_tui.py +690 -0
  64. gfal-0.1.27/tests/test_tui_checksum_logic.py +109 -0
  65. gfal-0.1.27/tests/test_tui_cleanup.py +75 -0
  66. gfal-0.1.27/tests/test_tui_comprehensive.py +768 -0
  67. gfal-0.1.27/tests/test_tui_enhancements.py +115 -0
  68. gfal-0.1.27/tests/test_tui_local_checksum.py +90 -0
  69. gfal-0.1.27/tests/test_tui_movement.py +65 -0
  70. gfal-0.1.27/tests/test_tui_navigation.py +43 -0
  71. gfal-0.1.27/tests/test_tui_progress_bar.py +251 -0
  72. gfal-0.1.27/tests/test_tui_remote_paths.py +75 -0
  73. gfal-0.1.27/tests/test_tui_swap.py +49 -0
  74. gfal-0.1.27/tests/test_tui_xrootd_copy.py +142 -0
  75. gfal-0.1.27/tests/test_tui_yank_multi.py +61 -0
  76. gfal-0.1.27/tests/test_tui_yank_paste.py +246 -0
  77. gfal-0.1.27/tests/test_tui_yank_toggle.py +154 -0
  78. gfal-0.1.27/tests/test_utils.py +120 -0
  79. gfal-0.1.27/tests/test_webdav.py +872 -0
  80. gfal-0.1.27/tests/test_xattr.py +147 -0
  81. gfal-0.1.27/tests/test_xrootd.py +545 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "files": [
3
+ "README.md"
4
+ ],
5
+ "imageSize": 100,
6
+ "commit": false,
7
+ "commitType": "docs",
8
+ "commitConvention": "angular",
9
+ "contributors": [
10
+ {
11
+ "login": "lobis",
12
+ "name": "Luis Antonio Obis Aparicio",
13
+ "avatar_url": "https://avatars.githubusercontent.com/u/35803280?v=4",
14
+ "profile": "https://github.com/lobis",
15
+ "contributions": [
16
+ "code",
17
+ "doc",
18
+ "maintenance",
19
+ "infra",
20
+ "ideas"
21
+ ]
22
+ }
23
+ ],
24
+ "contributorsPerLine": 7,
25
+ "skipCi": true,
26
+ "repoType": "github",
27
+ "repoHost": "https://github.com",
28
+ "projectName": "gfal",
29
+ "projectOwner": "lobis"
30
+ }
@@ -0,0 +1,4 @@
1
+ # GitHub Code Owners
2
+ # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3
+
4
+ * @lobis
@@ -0,0 +1,14 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ - package-ecosystem: "pip"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "weekly"
11
+ - package-ecosystem: "pre-commit"
12
+ directory: "/"
13
+ schedule:
14
+ interval: "weekly"
@@ -0,0 +1,379 @@
1
+ name: CI/CD
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ tags: [ "v*" ]
7
+ pull_request:
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ # ---------------------------------------------------------------------------
15
+ # 1. Tests & Linting
16
+ # ---------------------------------------------------------------------------
17
+
18
+ codespell:
19
+ name: Codespell spell-check
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v6
23
+ - uses: codespell-project/actions-codespell@v2
24
+ with:
25
+ ignore_words_list: cern,xrootd,fsspec,gfal,adler,aiohttp,thirdparty,scitag
26
+
27
+ pre-commit:
28
+ name: Pre-commit checks
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - uses: actions/checkout@v6
32
+ - uses: actions/setup-python@v6
33
+ with:
34
+ python-version: "3.12"
35
+ - uses: pre-commit/action@v3.0.1
36
+
37
+ tests:
38
+ name: Tests (${{ matrix.os }}, Py ${{ matrix.python-version }})
39
+ runs-on: ${{ matrix.os }}
40
+ strategy:
41
+ fail-fast: false
42
+ matrix:
43
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
44
+ python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
45
+ env:
46
+ PYTEST_ADDOPTS: "--color=yes"
47
+ steps:
48
+ - uses: actions/checkout@v6
49
+ - uses: actions/setup-python@v6
50
+ with:
51
+ python-version: ${{ matrix.python-version }}
52
+ - name: Install package and test dependencies
53
+ run: pip install --no-cache-dir ".[dev]"
54
+ - name: Run unit and functional tests
55
+ run: pytest tests/ -v -m "not integration and not xrootd" --cov=gfal --cov-report=xml
56
+ - name: Upload coverage
57
+ uses: codecov/codecov-action@v5
58
+ with:
59
+ token: ${{ secrets.CODECOV_TOKEN }}
60
+ flags: unittests
61
+ fail_ci_if_error: false
62
+
63
+ xrootd:
64
+ name: XRootD Server Tests
65
+ runs-on: ubuntu-latest
66
+ steps:
67
+ - uses: actions/checkout@v6
68
+ - uses: actions/setup-python@v6
69
+ with:
70
+ python-version: "3.12"
71
+ - name: Install system build dependencies
72
+ run: sudo apt-get update && sudo apt-get install -y uuid-dev openssl
73
+ - name: Install package and test dependencies (with XRootD)
74
+ run: pip install --no-cache-dir ".[dev]"
75
+ - name: Override fsspec-xrootd with gfal3-updates branch
76
+ run: pip install "git+https://github.com/scikit-hep/fsspec-xrootd.git@gfal3-updates"
77
+ - name: Run local XRootD server tests
78
+ run: pytest tests/ -v -m xrootd
79
+
80
+ integration:
81
+ name: Integration Tests (EOS)
82
+ runs-on: ubuntu-latest
83
+ steps:
84
+ - uses: actions/checkout@v6
85
+ - uses: actions/setup-python@v6
86
+ with:
87
+ python-version: "3.12"
88
+ - name: Install system build dependencies
89
+ run: sudo apt-get update && sudo apt-get install -y uuid-dev
90
+ - name: Install CERN CA certificate
91
+ run: |
92
+ wget -q "https://cafiles.cern.ch/cafiles/certificates/CERN%20Root%20Certification%20Authority%202.crt" -O /tmp/cern.der
93
+ openssl x509 -inform DER -in /tmp/cern.der -out /tmp/cern.crt
94
+ sudo cp /tmp/cern.crt /usr/local/share/ca-certificates/cern-root-ca-2.crt
95
+ sudo update-ca-certificates
96
+ echo "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt" >> "$GITHUB_ENV"
97
+ echo "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt" >> "$GITHUB_ENV"
98
+ - name: Install package and test dependencies
99
+ run: pip install --no-cache-dir ".[dev]"
100
+ - name: Override fsspec-xrootd with gfal3-updates
101
+ run: pip install "git+https://github.com/scikit-hep/fsspec-xrootd.git@gfal3-updates"
102
+ - name: Run integration tests
103
+ run: pytest tests/ -v -m integration
104
+
105
+ # ---------------------------------------------------------------------------
106
+ # 2. Packaging
107
+ # ---------------------------------------------------------------------------
108
+
109
+ build:
110
+ name: Build distribution 📦
111
+ needs: [ codespell, pre-commit, tests, xrootd, integration ]
112
+ runs-on: ubuntu-latest
113
+ steps:
114
+ - uses: actions/checkout@v6
115
+ with:
116
+ fetch-depth: 0
117
+ - uses: actions/setup-python@v6
118
+ with:
119
+ python-version: "3.x"
120
+ - name: Install build dependencies
121
+ run: python -m pip install build hatchling hatch-vcs
122
+ - name: Build sdist and wheel
123
+ run: python -m build
124
+ - name: Store distributions
125
+ uses: actions/upload-artifact@v7
126
+ with:
127
+ name: python-package-distributions
128
+ path: dist/
129
+
130
+ build-rpm:
131
+ name: Build RPM 📦 (${{ matrix.os.name }}) [${{ matrix.arch }}]
132
+ needs: [ build ]
133
+ runs-on: ubuntu-latest
134
+ strategy:
135
+ fail-fast: false
136
+ matrix:
137
+ os:
138
+ - image: almalinux:9
139
+ name: el9
140
+ - image: almalinux:10
141
+ name: el10
142
+ arch: [ x86_64, aarch64 ]
143
+ steps:
144
+ - name: Set up QEMU
145
+ if: matrix.arch == 'aarch64'
146
+ uses: docker/setup-qemu-action@v4
147
+ - uses: actions/checkout@v6
148
+ with:
149
+ fetch-depth: 0
150
+ - name: Build RPM in Container
151
+ run: |
152
+ docker run --rm \
153
+ --platform linux/${{ matrix.arch == 'x86_64' && 'amd64' || 'arm64' }} \
154
+ -v ${{ github.workspace }}:/workspace -w /workspace \
155
+ ${{ matrix.os.image }} \
156
+ bash -c "dnf install -y git rpm-build make python3-devel python3-pip && \
157
+ git config --global --add safe.directory '*' && \
158
+ python3 -m pip install build hatchling hatch-vcs && \
159
+ make rpm"
160
+ - name: Store RPMs
161
+ uses: actions/upload-artifact@v7
162
+ with:
163
+ name: rpm-package-distributions-${{ matrix.os.name }}-${{ matrix.arch }}
164
+ path: rpmbuild/RPMS/*/*.rpm
165
+
166
+ build-deb:
167
+ name: Build DEB 📦 [${{ matrix.arch }}]
168
+ needs: [ build ]
169
+ runs-on: ubuntu-latest
170
+ strategy:
171
+ fail-fast: false
172
+ matrix:
173
+ arch: [ amd64, arm64 ]
174
+ steps:
175
+ - name: Set up QEMU
176
+ if: matrix.arch == 'arm64'
177
+ uses: docker/setup-qemu-action@v4
178
+ - uses: actions/checkout@v6
179
+ with:
180
+ fetch-depth: 0
181
+ - name: Build DEB (Native dpkg-deb)
182
+ run: |
183
+ docker run --rm \
184
+ --platform linux/${{ matrix.arch }} \
185
+ -v ${{ github.workspace }}:/workspace -w /workspace \
186
+ ubuntu:24.04 \
187
+ bash build-deb.sh ${{ matrix.arch }}
188
+ - name: Store DEBs
189
+ uses: actions/upload-artifact@v7
190
+ with:
191
+ name: deb-package-distributions-${{ matrix.arch }}
192
+ path: "*.deb"
193
+
194
+ # ---------------------------------------------------------------------------
195
+ # 3. Validation & Repository Update
196
+ # ---------------------------------------------------------------------------
197
+
198
+ test-install:
199
+ name: Test Install 🧪 (${{ matrix.target.name }})
200
+ needs: [ build-rpm, build-deb ]
201
+ runs-on: ubuntu-latest
202
+ strategy:
203
+ fail-fast: false
204
+ matrix:
205
+ target:
206
+ - name: AlmaLinux 9
207
+ container: almalinux:9
208
+ artifact: rpm-package-distributions-el9-x86_64
209
+ install_cmd: |
210
+ dnf install -y epel-release dnf-plugins-core
211
+ dnf config-manager --set-enabled crb
212
+ find . -name "*.rpm" -exec dnf install -y {} +
213
+ - name: AlmaLinux 10
214
+ container: almalinux:10
215
+ artifact: rpm-package-distributions-el10-x86_64
216
+ install_cmd: dnf install -y epel-release && find . -name "*.rpm" -exec dnf install -y {} +
217
+ - name: Ubuntu 24.04
218
+ container: ubuntu:24.04
219
+ artifact: deb-package-distributions-amd64
220
+ install_cmd: |
221
+ apt-get update
222
+ DEBIAN_FRONTEND=noninteractive apt-get install -y python3-fsspec python3-aiohttp python3-requests python3-rich python3-markdown-it python3-pygments
223
+ DEBIAN_FRONTEND=noninteractive find . -name "*.deb" -exec apt-get install -y {} +
224
+ container: ${{ matrix.target.container }}
225
+ steps:
226
+ - uses: actions/download-artifact@v8
227
+ with:
228
+ name: ${{ matrix.target.artifact }}
229
+ - name: Install package
230
+ run: ${{ matrix.target.install_cmd }}
231
+ - name: Verify executables
232
+ run: |
233
+ command -v gfal
234
+ gfal --help
235
+
236
+ update-repo:
237
+ name: Update YUM/APT Repository 🌐
238
+ needs: [ build-rpm, build-deb, test-install ]
239
+ if: startsWith(github.ref, 'refs/tags/v')
240
+ runs-on: ubuntu-latest
241
+ permissions:
242
+ pages: write
243
+ id-token: write
244
+ environment:
245
+ name: github-pages
246
+ url: ${{ steps.deployment.outputs.page_url }}
247
+ steps:
248
+ - uses: actions/checkout@v6
249
+ - uses: actions/download-artifact@v8
250
+ with:
251
+ path: artifacts/
252
+ merge-multiple: true
253
+ - name: Install tools
254
+ run: |
255
+ sudo apt-get update && sudo apt-get install -y createrepo-c apt-utils
256
+ pip install mkdocs-material
257
+ - name: Build Docs 📚
258
+ run: mkdocs build
259
+ - name: Prepare Repository
260
+ run: |
261
+ mkdir -p site/rpm/el9/x86_64 site/rpm/el9/aarch64 site/rpm/el10/x86_64 site/rpm/el10/aarch64
262
+ mkdir -p site/deb/pool/main/g/gfal site/deb/dists/stable/main/binary-amd64 site/deb/dists/stable/main/binary-arm64
263
+
264
+ find artifacts/ -name "*el9*x86_64.rpm" ! -name "*.src.rpm" -exec cp {} site/rpm/el9/x86_64/ \;
265
+ find artifacts/ -name "*el9*aarch64.rpm" ! -name "*.src.rpm" -exec cp {} site/rpm/el9/aarch64/ \;
266
+ find artifacts/ -name "*el10*x86_64.rpm" ! -name "*.src.rpm" -exec cp {} site/rpm/el10/x86_64/ \;
267
+ find artifacts/ -name "*el10*aarch64.rpm" ! -name "*.src.rpm" -exec cp {} site/rpm/el10/aarch64/ \;
268
+ for d in site/rpm/el*/*/; do createrepo_c "$d"; done
269
+
270
+ cp artifacts/*.deb site/deb/pool/main/g/gfal/
271
+ cd site/deb
272
+ for arch in amd64 arm64; do
273
+ apt-ftparchive packages pool/main/g/gfal --arch $arch > dists/stable/main/binary-$arch/Packages
274
+ gzip -c dists/stable/main/binary-$arch/Packages > dists/stable/main/binary-$arch/Packages.gz
275
+ done
276
+ apt-ftparchive release dists/stable > dists/stable/Release
277
+ cd ../..
278
+
279
+ cat <<EOF > site/rpm/gfal.repo
280
+ [gfal]
281
+ name=gfal repository
282
+ baseurl=https://lobis.github.io/gfal/rpm/el\$releasever/\$basearch/
283
+ enabled=1
284
+ gpgcheck=0
285
+ EOF
286
+ - uses: actions/upload-pages-artifact@v3
287
+ with:
288
+ path: ./site/
289
+ - uses: actions/deploy-pages@v4
290
+ id: deployment
291
+
292
+ publish-to-pypi:
293
+ name: Publish to PyPI 🚀
294
+ if: startsWith(github.ref, 'refs/tags/v')
295
+ needs: [ build, build-rpm, build-deb, test-install ]
296
+ runs-on: ubuntu-latest
297
+ environment:
298
+ name: pypi
299
+ url: https://pypi.org/p/gfal
300
+ permissions:
301
+ id-token: write
302
+ steps:
303
+ - uses: actions/download-artifact@v8
304
+ with:
305
+ name: python-package-distributions
306
+ path: dist/
307
+ - uses: pypa/gh-action-pypi-publish@release/v1
308
+
309
+ github-release:
310
+ name: Create GitHub Release 🚀
311
+ if: startsWith(github.ref, 'refs/tags/v')
312
+ needs: [ build, build-rpm, build-deb, test-install ]
313
+ runs-on: ubuntu-latest
314
+ permissions:
315
+ contents: write
316
+ steps:
317
+ - uses: actions/download-artifact@v8
318
+ with:
319
+ path: artifacts/
320
+ merge-multiple: true
321
+ - name: Create latest aliases
322
+ run: |
323
+ cd artifacts
324
+ find . -name "*el9*x86_64.rpm" -not -name "*.src.rpm" -exec cp {} python3-gfal-latest-el9.rpm \;
325
+ find . -name "*el10*x86_64.rpm" -not -name "*.src.rpm" -exec cp {} python3-gfal-latest-el10.rpm \;
326
+ find . -name "*el9*aarch64.rpm" -not -name "*.src.rpm" -exec cp {} python3-gfal-latest-el9-aarch64.rpm \;
327
+ find . -name "*el10*aarch64.rpm" -not -name "*.src.rpm" -exec cp {} python3-gfal-latest-el10-aarch64.rpm \;
328
+ find . -name "*amd64.deb" -exec cp {} python3-gfal-latest.deb \;
329
+ find . -name "*arm64.deb" -exec cp {} python3-gfal-latest-arm64.deb \;
330
+ - uses: softprops/action-gh-release@v2
331
+ with:
332
+ files: artifacts/**/*
333
+ generate_release_notes: true
334
+
335
+ verify-deployment:
336
+ name: Verify Deployment 🔍 (${{ matrix.target.name }})
337
+ needs: [ update-repo, publish-to-pypi, github-release ]
338
+ if: startsWith(github.ref, 'refs/tags/v')
339
+ runs-on: ubuntu-latest
340
+ strategy:
341
+ fail-fast: false
342
+ matrix:
343
+ target:
344
+ - name: AlmaLinux 9
345
+ container: almalinux:9
346
+ install_cmd: |
347
+ dnf install -y epel-release curl
348
+ curl -sL -o /etc/yum.repos.d/gfal.repo https://lobis.github.io/gfal/rpm/gfal.repo
349
+ for i in {1..12}; do dnf clean all && dnf install -y python3-gfal && break || sleep 10; done
350
+ - name: AlmaLinux 10
351
+ container: almalinux:10
352
+ install_cmd: |
353
+ dnf install -y epel-release curl
354
+ curl -sL -o /etc/yum.repos.d/gfal.repo https://lobis.github.io/gfal/rpm/gfal.repo
355
+ for i in {1..12}; do dnf clean all && dnf install -y python3-gfal && break || sleep 10; done
356
+ - name: Ubuntu 24.04
357
+ container: ubuntu:24.04
358
+ install_cmd: |
359
+ apt-get update && apt-get install -y curl
360
+ echo "deb [trusted=yes] https://lobis.github.io/gfal/deb/ stable main" | tee /etc/apt/sources.list.d/gfal.list
361
+ for i in {1..12}; do apt-get update && apt-get install -y python3-gfal && break || sleep 10; done
362
+ - name: PyPI
363
+ container: python:3.9
364
+ install_cmd: |
365
+ for i in {1..12}; do pip install --no-cache-dir gfal && break || sleep 10; done
366
+ container: ${{ matrix.target.container }}
367
+ steps:
368
+ - name: Install and Verify
369
+ run: |
370
+ ${{ matrix.target.install_cmd }}
371
+ export PATH=$PATH:/usr/local/bin
372
+ command -v gfal || exit 1
373
+ INSTALLED_VERSION=$(gfal --version | awk '{print $NF}')
374
+ EXPECTED_VERSION=${{ github.ref_name }}
375
+ EXPECTED_VERSION=${EXPECTED_VERSION#v}
376
+ if [ "$INSTALLED_VERSION" != "$EXPECTED_VERSION" ]; then
377
+ echo "❌ Version mismatch: $INSTALLED_VERSION != $EXPECTED_VERSION"
378
+ exit 1
379
+ fi
gfal-0.1.27/.gitignore ADDED
@@ -0,0 +1,225 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ # hatch-vcs auto-generated version file
210
+ src/gfal/_version.py
211
+
212
+ # Reference implementation (not part of the project)
213
+ gfal2-util/
214
+
215
+ .idea/
216
+
217
+ .claude/
218
+
219
+ # Packaging
220
+ !gfal-cli.spec
221
+ rpmbuild/
222
+ pkg/
223
+ *.deb
224
+
225
+ *.root
@@ -0,0 +1,27 @@
1
+ # Run `pre-commit install` from this directory to activate the git hook.
2
+ default_install_hook_types: [pre-commit]
3
+
4
+ repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v6.0.0
7
+ hooks:
8
+ - id: trailing-whitespace
9
+ - id: end-of-file-fixer
10
+ - id: check-yaml
11
+ - id: check-toml
12
+ - id: check-merge-conflict
13
+ - id: check-added-large-files
14
+ - id: debug-statements
15
+
16
+ - repo: https://github.com/astral-sh/ruff-pre-commit
17
+ rev: v0.15.7
18
+ hooks:
19
+ - id: ruff
20
+ args: [--fix]
21
+ - id: ruff-format
22
+
23
+ - repo: https://github.com/codespell-project/codespell
24
+ rev: v2.4.2
25
+ hooks:
26
+ - id: codespell
27
+ additional_dependencies: ["tomli"]
gfal-0.1.27/AGENTS.md ADDED
@@ -0,0 +1 @@
1
+ CLAUDE.md
gfal-0.1.27/CHANGELOG ADDED
@@ -0,0 +1,2 @@
1
+ * Fri Mar 20 2026 Luis Antonio Obis Aparicio <luis.obis@cern.ch> - %{version}-%{release}
2
+ - Initial package building with hatchling and pip