tensors 0.1.1__tar.gz → 0.1.3__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.
- tensors-0.1.3/.github/workflows/publish.yml +128 -0
- {tensors-0.1.1 → tensors-0.1.3}/PKG-INFO +1 -1
- {tensors-0.1.1 → tensors-0.1.3}/pyproject.toml +1 -1
- tensors-0.1.1/.github/workflows/publish.yml +0 -49
- {tensors-0.1.1 → tensors-0.1.3}/.github/workflows/ci.yml +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/.gitignore +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/.pre-commit-config.yaml +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/.tool-versions +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/README.md +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/TODO.md +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/check.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/civit.md +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/nuitka_build.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/tensors.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/tests/__init__.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/tests/conftest.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/tests/test_tensors.py +0 -0
- {tensors-0.1.1 → tensors-0.1.3}/uv.lock +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
name: Publish Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build-binaries:
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
include:
|
|
18
|
+
- os: ubuntu-latest
|
|
19
|
+
arch: x64
|
|
20
|
+
artifact: tsr-linux-x64
|
|
21
|
+
- os: ubuntu-24.04-arm
|
|
22
|
+
arch: arm64
|
|
23
|
+
artifact: tsr-linux-arm64
|
|
24
|
+
- os: macos-latest
|
|
25
|
+
arch: arm64
|
|
26
|
+
artifact: tsr-macos-arm64
|
|
27
|
+
- os: macos-15-large
|
|
28
|
+
arch: x64
|
|
29
|
+
artifact: tsr-macos-x64
|
|
30
|
+
- os: windows-latest
|
|
31
|
+
arch: x64
|
|
32
|
+
artifact: tsr-windows-x64.exe
|
|
33
|
+
|
|
34
|
+
runs-on: ${{ matrix.os }}
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: '3.12'
|
|
43
|
+
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: |
|
|
46
|
+
pip install nuitka
|
|
47
|
+
pip install -e .
|
|
48
|
+
|
|
49
|
+
- name: Build binary (Unix)
|
|
50
|
+
if: runner.os != 'Windows'
|
|
51
|
+
run: |
|
|
52
|
+
python -m nuitka \
|
|
53
|
+
--standalone \
|
|
54
|
+
--onefile \
|
|
55
|
+
--output-dir=dist \
|
|
56
|
+
--output-filename=${{ matrix.artifact }} \
|
|
57
|
+
--assume-yes-for-downloads \
|
|
58
|
+
--remove-output \
|
|
59
|
+
tensors.py
|
|
60
|
+
|
|
61
|
+
- name: Build binary (Windows)
|
|
62
|
+
if: runner.os == 'Windows'
|
|
63
|
+
run: |
|
|
64
|
+
python -m nuitka `
|
|
65
|
+
--standalone `
|
|
66
|
+
--onefile `
|
|
67
|
+
--output-dir=dist `
|
|
68
|
+
--output-filename=${{ matrix.artifact }} `
|
|
69
|
+
--assume-yes-for-downloads `
|
|
70
|
+
--remove-output `
|
|
71
|
+
tensors.py
|
|
72
|
+
|
|
73
|
+
- name: Upload artifact
|
|
74
|
+
uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: ${{ matrix.artifact }}
|
|
77
|
+
path: dist/${{ matrix.artifact }}
|
|
78
|
+
|
|
79
|
+
publish:
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
needs: build-binaries
|
|
82
|
+
|
|
83
|
+
steps:
|
|
84
|
+
- uses: actions/checkout@v4
|
|
85
|
+
|
|
86
|
+
- name: Set up Python
|
|
87
|
+
uses: actions/setup-python@v5
|
|
88
|
+
with:
|
|
89
|
+
python-version: '3.12'
|
|
90
|
+
|
|
91
|
+
- name: Install build tools
|
|
92
|
+
run: pip install build
|
|
93
|
+
|
|
94
|
+
- name: Extract version from tag
|
|
95
|
+
id: version
|
|
96
|
+
run: |
|
|
97
|
+
TAG=${GITHUB_REF#refs/tags/v}
|
|
98
|
+
echo "version=$TAG" >> $GITHUB_OUTPUT
|
|
99
|
+
if [[ "$TAG" =~ -pre[0-9]*$ ]] || [[ "$TAG" =~ -alpha[0-9]*$ ]] || [[ "$TAG" =~ -beta[0-9]*$ ]] || [[ "$TAG" =~ -rc[0-9]*$ ]] || [[ "$TAG" =~ -a[0-9]*$ ]]; then
|
|
100
|
+
echo "prerelease=true" >> $GITHUB_OUTPUT
|
|
101
|
+
else
|
|
102
|
+
echo "prerelease=false" >> $GITHUB_OUTPUT
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
- name: Build package
|
|
106
|
+
run: python -m build
|
|
107
|
+
|
|
108
|
+
- name: Download all artifacts
|
|
109
|
+
uses: actions/download-artifact@v4
|
|
110
|
+
with:
|
|
111
|
+
path: binaries
|
|
112
|
+
|
|
113
|
+
- name: Prepare release assets
|
|
114
|
+
run: |
|
|
115
|
+
mkdir -p release
|
|
116
|
+
cp dist/* release/
|
|
117
|
+
find binaries -type f -exec cp {} release/ \;
|
|
118
|
+
ls -la release/
|
|
119
|
+
|
|
120
|
+
- name: Publish to PyPI
|
|
121
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
122
|
+
|
|
123
|
+
- name: Create GitHub Release
|
|
124
|
+
uses: softprops/action-gh-release@v2
|
|
125
|
+
with:
|
|
126
|
+
files: release/*
|
|
127
|
+
prerelease: ${{ steps.version.outputs.prerelease }}
|
|
128
|
+
generate_release_notes: true
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Publish Package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: write
|
|
10
|
-
id-token: write
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
publish:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v4
|
|
18
|
-
|
|
19
|
-
- name: Set up Python
|
|
20
|
-
uses: actions/setup-python@v5
|
|
21
|
-
with:
|
|
22
|
-
python-version: '3.12'
|
|
23
|
-
|
|
24
|
-
- name: Install build tools
|
|
25
|
-
run: pip install build
|
|
26
|
-
|
|
27
|
-
- name: Extract version from tag
|
|
28
|
-
id: version
|
|
29
|
-
run: |
|
|
30
|
-
TAG=${GITHUB_REF#refs/tags/v}
|
|
31
|
-
echo "version=$TAG" >> $GITHUB_OUTPUT
|
|
32
|
-
if [[ "$TAG" =~ -pre[0-9]*$ ]] || [[ "$TAG" =~ -alpha[0-9]*$ ]] || [[ "$TAG" =~ -beta[0-9]*$ ]] || [[ "$TAG" =~ -rc[0-9]*$ ]] || [[ "$TAG" =~ -a[0-9]*$ ]]; then
|
|
33
|
-
echo "prerelease=true" >> $GITHUB_OUTPUT
|
|
34
|
-
else
|
|
35
|
-
echo "prerelease=false" >> $GITHUB_OUTPUT
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
|
-
- name: Build package
|
|
39
|
-
run: python -m build
|
|
40
|
-
|
|
41
|
-
- name: Publish to PyPI
|
|
42
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
43
|
-
|
|
44
|
-
- name: Create GitHub Release
|
|
45
|
-
uses: softprops/action-gh-release@v2
|
|
46
|
-
with:
|
|
47
|
-
files: dist/*
|
|
48
|
-
prerelease: ${{ steps.version.outputs.prerelease }}
|
|
49
|
-
generate_release_notes: true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|