pyfs-watcher 0.1.0__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.
- pyfs_watcher-0.1.0/.github/workflows/publish.yml +66 -0
- pyfs_watcher-0.1.0/.gitignore +33 -0
- pyfs_watcher-0.1.0/Cargo.lock +1242 -0
- pyfs_watcher-0.1.0/Cargo.toml +58 -0
- pyfs_watcher-0.1.0/PKG-INFO +146 -0
- pyfs_watcher-0.1.0/README.md +120 -0
- pyfs_watcher-0.1.0/benches/bench_copy.py +60 -0
- pyfs_watcher-0.1.0/benches/bench_hash.py +68 -0
- pyfs_watcher-0.1.0/benches/bench_walk.py +47 -0
- pyfs_watcher-0.1.0/pyproject.toml +51 -0
- pyfs_watcher-0.1.0/python/fs_watcher/__init__.py +57 -0
- pyfs_watcher-0.1.0/python/fs_watcher/_core.pyi +485 -0
- pyfs_watcher-0.1.0/python/fs_watcher/py.typed +0 -0
- pyfs_watcher-0.1.0/python/fs_watcher/watch.py +45 -0
- pyfs_watcher-0.1.0/src/copy.rs +334 -0
- pyfs_watcher-0.1.0/src/dedup.rs +341 -0
- pyfs_watcher-0.1.0/src/errors.rs +61 -0
- pyfs_watcher-0.1.0/src/hash.rs +332 -0
- pyfs_watcher-0.1.0/src/lib.rs +51 -0
- pyfs_watcher-0.1.0/src/utils.rs +15 -0
- pyfs_watcher-0.1.0/src/walk.rs +426 -0
- pyfs_watcher-0.1.0/src/watch.rs +251 -0
- pyfs_watcher-0.1.0/tests/conftest.py +42 -0
- pyfs_watcher-0.1.0/tests/test_copy.py +101 -0
- pyfs_watcher-0.1.0/tests/test_dedup.py +66 -0
- pyfs_watcher-0.1.0/tests/test_hash.py +91 -0
- pyfs_watcher-0.1.0/tests/test_walk.py +75 -0
- pyfs_watcher-0.1.0/tests/test_watch.py +119 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build wheels (${{ matrix.os }})
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.12"
|
|
24
|
+
|
|
25
|
+
- name: Build wheels
|
|
26
|
+
uses: PyO3/maturin-action@v1
|
|
27
|
+
with:
|
|
28
|
+
args: --release --out dist
|
|
29
|
+
manylinux: auto
|
|
30
|
+
|
|
31
|
+
- uses: actions/upload-artifact@v4
|
|
32
|
+
with:
|
|
33
|
+
name: wheels-${{ matrix.os }}
|
|
34
|
+
path: dist/
|
|
35
|
+
|
|
36
|
+
sdist:
|
|
37
|
+
name: Build source distribution
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
|
|
42
|
+
- name: Build sdist
|
|
43
|
+
uses: PyO3/maturin-action@v1
|
|
44
|
+
with:
|
|
45
|
+
command: sdist
|
|
46
|
+
args: --out dist
|
|
47
|
+
|
|
48
|
+
- uses: actions/upload-artifact@v4
|
|
49
|
+
with:
|
|
50
|
+
name: wheels-sdist
|
|
51
|
+
path: dist/
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
name: Publish to PyPI
|
|
55
|
+
needs: [build, sdist]
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
environment: pypi
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/download-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
pattern: wheels-*
|
|
62
|
+
merge-multiple: true
|
|
63
|
+
path: dist/
|
|
64
|
+
|
|
65
|
+
- name: Publish to PyPI
|
|
66
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target/
|
|
3
|
+
Cargo.lock
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[cod]
|
|
8
|
+
*.pyo
|
|
9
|
+
*.egg-info/
|
|
10
|
+
dist/
|
|
11
|
+
*.so
|
|
12
|
+
*.dylib
|
|
13
|
+
*.dll
|
|
14
|
+
.mypy_cache/
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
|
|
17
|
+
# Virtual environments
|
|
18
|
+
.venv/
|
|
19
|
+
venv/
|
|
20
|
+
env/
|
|
21
|
+
|
|
22
|
+
# IDE
|
|
23
|
+
.idea/
|
|
24
|
+
.vscode/
|
|
25
|
+
*.swp
|
|
26
|
+
*.swo
|
|
27
|
+
|
|
28
|
+
# Claude Code
|
|
29
|
+
.claude/
|
|
30
|
+
|
|
31
|
+
# OS
|
|
32
|
+
.DS_Store
|
|
33
|
+
Thumbs.db
|