rust-scholar-transformer 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.
- rust_scholar_transformer-0.1.0/.github/workflows/release.yml +108 -0
- rust_scholar_transformer-0.1.0/.gitignore +1 -0
- rust_scholar_transformer-0.1.0/Cargo.lock +2087 -0
- rust_scholar_transformer-0.1.0/Cargo.toml +44 -0
- rust_scholar_transformer-0.1.0/LICENSE +201 -0
- rust_scholar_transformer-0.1.0/PKG-INFO +7 -0
- rust_scholar_transformer-0.1.0/README.md +477 -0
- rust_scholar_transformer-0.1.0/pyproject.toml +14 -0
- rust_scholar_transformer-0.1.0/src/cache.rs +114 -0
- rust_scholar_transformer-0.1.0/src/dedup.rs +301 -0
- rust_scholar_transformer-0.1.0/src/engine.rs +176 -0
- rust_scholar_transformer-0.1.0/src/error.rs +42 -0
- rust_scholar_transformer-0.1.0/src/fusion.rs +136 -0
- rust_scholar_transformer-0.1.0/src/lib.rs +44 -0
- rust_scholar_transformer-0.1.0/src/model.rs +121 -0
- rust_scholar_transformer-0.1.0/src/normalize.rs +128 -0
- rust_scholar_transformer-0.1.0/src/python.rs +88 -0
- rust_scholar_transformer-0.1.0/src/ratelimit.rs +59 -0
- rust_scholar_transformer-0.1.0/src/source.rs +34 -0
- rust_scholar_transformer-0.1.0/src/sources/arxiv.rs +274 -0
- rust_scholar_transformer-0.1.0/src/sources/arxiv_oai.rs +255 -0
- rust_scholar_transformer-0.1.0/src/sources/feed_common.rs +93 -0
- rust_scholar_transformer-0.1.0/src/sources/mod.rs +22 -0
- rust_scholar_transformer-0.1.0/src/sources/news.rs +99 -0
- rust_scholar_transformer-0.1.0/src/sources/rss.rs +110 -0
- rust_scholar_transformer-0.1.0/src/sources/web.rs +160 -0
- rust_scholar_transformer-0.1.0/src/sources/youtube.rs +153 -0
- rust_scholar_transformer-0.1.0/tests/adapters_test.rs +121 -0
- rust_scholar_transformer-0.1.0/tests/arxiv_test.rs +119 -0
- rust_scholar_transformer-0.1.0/tests/feeds_test.rs +137 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# 태그 push(v*) 시 전 플랫폼 abi3 휠 + sdist 빌드 → PyPI 게시(Trusted Publishing).
|
|
4
|
+
# 빌드 feature 는 pyproject.toml 의 [tool.maturin] features = ["python"] 에서 읽는다.
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- "v*"
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
linux:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
target: [x86_64, aarch64]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.x"
|
|
25
|
+
- name: Build wheels
|
|
26
|
+
uses: PyO3/maturin-action@v1
|
|
27
|
+
with:
|
|
28
|
+
target: ${{ matrix.target }}
|
|
29
|
+
# zig 로 크로스 컴파일 — reqwest(rustls)가 끌어오는 ring 의 ARM 어셈블리를
|
|
30
|
+
# aarch64 manylinux 에서 빌드하려면 zig 가 필요하다(기본 gcc 크로스는 __ARM_ARCH 미정의로 실패).
|
|
31
|
+
args: --release --out dist --zig
|
|
32
|
+
manylinux: auto
|
|
33
|
+
- uses: actions/upload-artifact@v4
|
|
34
|
+
with:
|
|
35
|
+
name: wheels-linux-${{ matrix.target }}
|
|
36
|
+
path: dist
|
|
37
|
+
|
|
38
|
+
windows:
|
|
39
|
+
runs-on: windows-latest
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v4
|
|
42
|
+
- uses: actions/setup-python@v5
|
|
43
|
+
with:
|
|
44
|
+
python-version: "3.x"
|
|
45
|
+
- name: Build wheels
|
|
46
|
+
uses: PyO3/maturin-action@v1
|
|
47
|
+
with:
|
|
48
|
+
target: x64
|
|
49
|
+
args: --release --out dist
|
|
50
|
+
sccache: "true"
|
|
51
|
+
- uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: wheels-windows-x64
|
|
54
|
+
path: dist
|
|
55
|
+
|
|
56
|
+
macos:
|
|
57
|
+
runs-on: macos-latest
|
|
58
|
+
strategy:
|
|
59
|
+
matrix:
|
|
60
|
+
target: [x86_64, aarch64]
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v4
|
|
63
|
+
- uses: actions/setup-python@v5
|
|
64
|
+
with:
|
|
65
|
+
python-version: "3.x"
|
|
66
|
+
- name: Build wheels
|
|
67
|
+
uses: PyO3/maturin-action@v1
|
|
68
|
+
with:
|
|
69
|
+
target: ${{ matrix.target }}
|
|
70
|
+
args: --release --out dist
|
|
71
|
+
sccache: "true"
|
|
72
|
+
- uses: actions/upload-artifact@v4
|
|
73
|
+
with:
|
|
74
|
+
name: wheels-macos-${{ matrix.target }}
|
|
75
|
+
path: dist
|
|
76
|
+
|
|
77
|
+
sdist:
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
- name: Build sdist
|
|
82
|
+
uses: PyO3/maturin-action@v1
|
|
83
|
+
with:
|
|
84
|
+
command: sdist
|
|
85
|
+
args: --out dist
|
|
86
|
+
- uses: actions/upload-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
name: wheels-sdist
|
|
89
|
+
path: dist
|
|
90
|
+
|
|
91
|
+
release:
|
|
92
|
+
name: Publish to PyPI
|
|
93
|
+
runs-on: ubuntu-latest
|
|
94
|
+
needs: [linux, windows, macos, sdist]
|
|
95
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
96
|
+
environment: pypi
|
|
97
|
+
permissions:
|
|
98
|
+
id-token: write # Trusted Publishing(OIDC) — API 토큰 불필요
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/download-artifact@v4
|
|
101
|
+
with:
|
|
102
|
+
pattern: wheels-*
|
|
103
|
+
merge-multiple: true
|
|
104
|
+
path: dist
|
|
105
|
+
- name: Publish to PyPI
|
|
106
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
107
|
+
with:
|
|
108
|
+
packages-dir: dist
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/target
|