keygen-py 0.0.1.dev5__tar.gz → 0.0.1.dev7__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.
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/.github/workflows/pr-checks.yml +47 -2
- keygen_py-0.0.1.dev7/.github/workflows/py-machineid.yaml +31 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/.github/workflows/release.yml +46 -5
- keygen_py-0.0.1.dev7/.github/workflows/winregistry.yaml +35 -0
- keygen_py-0.0.1.dev7/.gitignore +10 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/PKG-INFO +1 -1
- keygen_py-0.0.1.dev7/conda-recipes/LICENSE +21 -0
- keygen_py-0.0.1.dev7/conda-recipes/deps/py-machineid/recipe.yaml +48 -0
- keygen_py-0.0.1.dev7/conda-recipes/deps/winregistry/LICENSE +20 -0
- keygen_py-0.0.1.dev7/conda-recipes/deps/winregistry/recipe.yaml +50 -0
- keygen_py-0.0.1.dev7/conda-recipes/recipe.yaml +46 -0
- keygen_py-0.0.1.dev7/conda-recipes/variants.yaml +5 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/pyproject.toml +1 -1
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/src/config.rs +5 -4
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/src/lib.rs +2 -2
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/src/license.rs +3 -3
- keygen_py-0.0.1.dev5/.gitignore +0 -5
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/Cargo.lock +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/Cargo.toml +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/LICENSE +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/README.md +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/examples/offline_verification.py +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/examples/online_validation.py +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/keygen_sh.pyi +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/poetry.lock +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/src/date.rs +0 -0
- {keygen_py-0.0.1.dev5 → keygen_py-0.0.1.dev7}/src/utils.rs +0 -0
|
@@ -5,13 +5,32 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
7
|
types: [opened, synchronize, reopened]
|
|
8
|
+
paths-ignore:
|
|
9
|
+
- conda-recipes/deps/**
|
|
8
10
|
|
|
9
11
|
permissions:
|
|
10
12
|
contents: read
|
|
11
13
|
|
|
14
|
+
# Make sure CI fails on all warnings, including Clippy lints
|
|
15
|
+
env:
|
|
16
|
+
RUSTFLAGS: "-Dwarnings"
|
|
17
|
+
|
|
18
|
+
concurrency:
|
|
19
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
20
|
+
cancel-in-progress: true
|
|
21
|
+
|
|
12
22
|
jobs:
|
|
23
|
+
lint:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
- name: Run Clippy
|
|
28
|
+
run: cargo clippy --all-targets --all-features
|
|
29
|
+
|
|
13
30
|
build:
|
|
14
31
|
name: ${{ matrix.platform.runner }} ${{ matrix.platform.target }} ${{ matrix.platform.manylinux }}
|
|
32
|
+
needs:
|
|
33
|
+
- lint
|
|
15
34
|
runs-on: ${{ matrix.platform.runner }}
|
|
16
35
|
strategy:
|
|
17
36
|
fail-fast: true
|
|
@@ -19,8 +38,10 @@ jobs:
|
|
|
19
38
|
platform:
|
|
20
39
|
- runner: ubuntu-latest
|
|
21
40
|
target: x86_64
|
|
41
|
+
target-platform: linux-64
|
|
22
42
|
before: 'yum install --assumeyes perl-core'
|
|
23
43
|
manylinux: 'auto'
|
|
44
|
+
create-conda-package: true
|
|
24
45
|
- runner: ubuntu-latest
|
|
25
46
|
target: x86_64
|
|
26
47
|
before: 'apt update && apt install -y libssl-dev'
|
|
@@ -54,23 +75,37 @@ jobs:
|
|
|
54
75
|
manylinux: 'musllinux_1_2'
|
|
55
76
|
- runner: windows-latest
|
|
56
77
|
target: x64
|
|
78
|
+
target-platform: win-64
|
|
79
|
+
create-conda-package: true
|
|
57
80
|
- runner: windows-latest
|
|
58
81
|
target: x86
|
|
59
82
|
- runner: macos-latest
|
|
60
83
|
target: x86_64
|
|
84
|
+
target-platform: osx-64
|
|
85
|
+
create-conda-package: true
|
|
61
86
|
- runner: macos-latest
|
|
62
87
|
target: aarch64
|
|
88
|
+
target-platform: osx-arm64
|
|
89
|
+
create-conda-package: true
|
|
63
90
|
steps:
|
|
64
91
|
- uses: actions/checkout@v4
|
|
65
92
|
- uses: actions/setup-python@v5
|
|
66
93
|
if: runner.os == 'Windows'
|
|
67
94
|
with:
|
|
68
|
-
python-version:
|
|
95
|
+
python-version: |
|
|
96
|
+
3.9
|
|
97
|
+
3.10
|
|
98
|
+
3.11
|
|
99
|
+
3.12
|
|
69
100
|
architecture: ${{ matrix.platform.target }}
|
|
70
101
|
- uses: actions/setup-python@v5
|
|
71
102
|
if: runner.os != 'Windows'
|
|
72
103
|
with:
|
|
73
|
-
python-version:
|
|
104
|
+
python-version: |
|
|
105
|
+
3.9
|
|
106
|
+
3.10
|
|
107
|
+
3.11
|
|
108
|
+
3.12
|
|
74
109
|
- name: Build wheels
|
|
75
110
|
uses: PyO3/maturin-action@v1
|
|
76
111
|
with:
|
|
@@ -79,9 +114,19 @@ jobs:
|
|
|
79
114
|
sccache: 'true'
|
|
80
115
|
manylinux: ${{ matrix.platform.manylinux }}
|
|
81
116
|
before-script-linux: ${{ matrix.platform.before }}
|
|
117
|
+
- name: Build conda package
|
|
118
|
+
if: matrix.platform.create-conda-package
|
|
119
|
+
uses: prefix-dev/rattler-build-action@v0.2.19
|
|
120
|
+
with:
|
|
121
|
+
upload-artifact: false
|
|
122
|
+
artifact-name: conda-${{ matrix.platform.runner }}-${{ matrix.platform.target }}
|
|
123
|
+
recipe-path: 'conda-recipes/recipe.yaml'
|
|
124
|
+
build-args: '--target-platform ${{ matrix.platform.target-platform }} --experimental'
|
|
82
125
|
|
|
83
126
|
sdist:
|
|
84
127
|
runs-on: ubuntu-latest
|
|
128
|
+
needs:
|
|
129
|
+
- lint
|
|
85
130
|
steps:
|
|
86
131
|
- uses: actions/checkout@v4
|
|
87
132
|
- name: Build sdist
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Release pymachineid
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
paths:
|
|
8
|
+
- conda-recipes/deps/py-machineid/*
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Release py-machineid
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: 3.x
|
|
22
|
+
- name: Build conda package
|
|
23
|
+
uses: prefix-dev/rattler-build-action@v0.2.19
|
|
24
|
+
with:
|
|
25
|
+
recipe-path: 'conda-recipes/deps/py-machineid/recipe.yaml'
|
|
26
|
+
- name: Publish to prefix.dev channel
|
|
27
|
+
run: |
|
|
28
|
+
for pkg in $(find output -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do
|
|
29
|
+
echo "Uploading ${pkg}"
|
|
30
|
+
rattler-build upload prefix -c terraquantumag "${pkg}"
|
|
31
|
+
done
|
|
@@ -4,6 +4,8 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
+
paths-ignore:
|
|
8
|
+
- conda-recipes/deps/**
|
|
7
9
|
|
|
8
10
|
permissions:
|
|
9
11
|
contents: read
|
|
@@ -18,8 +20,10 @@ jobs:
|
|
|
18
20
|
platform:
|
|
19
21
|
- runner: ubuntu-latest
|
|
20
22
|
target: x86_64
|
|
23
|
+
target-platform: linux-64
|
|
21
24
|
before: 'yum install --assumeyes perl-core'
|
|
22
25
|
manylinux: 'auto'
|
|
26
|
+
create-conda-package: true
|
|
23
27
|
- runner: ubuntu-latest
|
|
24
28
|
target: x86_64
|
|
25
29
|
before: 'apt update && apt install -y libssl-dev'
|
|
@@ -53,23 +57,37 @@ jobs:
|
|
|
53
57
|
manylinux: 'musllinux_1_2'
|
|
54
58
|
- runner: windows-latest
|
|
55
59
|
target: x64
|
|
60
|
+
target-platform: win-64
|
|
61
|
+
create-conda-package: true
|
|
56
62
|
- runner: windows-latest
|
|
57
63
|
target: x86
|
|
58
64
|
- runner: macos-latest
|
|
59
65
|
target: x86_64
|
|
66
|
+
target-platform: osx-64
|
|
67
|
+
create-conda-package: true
|
|
60
68
|
- runner: macos-latest
|
|
61
69
|
target: aarch64
|
|
70
|
+
target-platform: osx-arm64
|
|
71
|
+
create-conda-package: true
|
|
62
72
|
steps:
|
|
63
73
|
- uses: actions/checkout@v4
|
|
64
74
|
- uses: actions/setup-python@v5
|
|
65
75
|
if: runner.os == 'Windows'
|
|
66
76
|
with:
|
|
67
|
-
python-version:
|
|
77
|
+
python-version: |
|
|
78
|
+
3.9
|
|
79
|
+
3.10
|
|
80
|
+
3.11
|
|
81
|
+
3.12
|
|
68
82
|
architecture: ${{ matrix.platform.target }}
|
|
69
83
|
- uses: actions/setup-python@v5
|
|
70
84
|
if: runner.os != 'Windows'
|
|
71
85
|
with:
|
|
72
|
-
python-version:
|
|
86
|
+
python-version: |
|
|
87
|
+
3.9
|
|
88
|
+
3.10
|
|
89
|
+
3.11
|
|
90
|
+
3.12
|
|
73
91
|
- name: Build wheels
|
|
74
92
|
uses: PyO3/maturin-action@v1
|
|
75
93
|
with:
|
|
@@ -83,6 +101,14 @@ jobs:
|
|
|
83
101
|
with:
|
|
84
102
|
name: wheels-${{ matrix.platform.runner }}-${{ matrix.platform.manylinux }}-${{ matrix.platform.target }}
|
|
85
103
|
path: dist
|
|
104
|
+
- name: Build conda package
|
|
105
|
+
if: matrix.platform.create-conda-package
|
|
106
|
+
uses: prefix-dev/rattler-build-action@v0.2.19
|
|
107
|
+
with:
|
|
108
|
+
upload-artifact: true
|
|
109
|
+
artifact-name: conda-${{ matrix.platform.runner }}-${{ matrix.platform.target }}
|
|
110
|
+
recipe-path: 'conda-recipes/recipe.yaml'
|
|
111
|
+
build-args: '--target-platform ${{ matrix.platform.target-platform }} --experimental'
|
|
86
112
|
|
|
87
113
|
sdist:
|
|
88
114
|
runs-on: ubuntu-latest
|
|
@@ -99,6 +125,7 @@ jobs:
|
|
|
99
125
|
name: wheels-sdist
|
|
100
126
|
path: dist
|
|
101
127
|
|
|
128
|
+
|
|
102
129
|
release:
|
|
103
130
|
name: Release
|
|
104
131
|
runs-on: ubuntu-latest
|
|
@@ -109,16 +136,30 @@ jobs:
|
|
|
109
136
|
attestations: write
|
|
110
137
|
steps:
|
|
111
138
|
- uses: actions/checkout@v4
|
|
139
|
+
- name: Install rattler-build
|
|
140
|
+
run: |
|
|
141
|
+
mkdir -p ${{ runner.temp }}/rattler-build
|
|
142
|
+
curl -Ls \
|
|
143
|
+
https://github.com/prefix-dev/rattler-build/releases/latest/download/rattler-build-x86_64-unknown-linux-musl \
|
|
144
|
+
-o ${{ runner.temp }}/rattler-build/rattler-build
|
|
145
|
+
chmod +x ${{ runner.temp }}/rattler-build/rattler-build
|
|
146
|
+
echo ${{ runner.temp }}/rattler-build >> $GITHUB_PATH
|
|
112
147
|
- uses: actions/download-artifact@v4
|
|
113
148
|
- name: Generate artifact attestation
|
|
114
149
|
uses: actions/attest-build-provenance@v1
|
|
115
150
|
with:
|
|
116
|
-
subject-path:
|
|
117
|
-
|
|
151
|
+
subject-path: |
|
|
152
|
+
wheels-*/*
|
|
153
|
+
conda-*/*
|
|
118
154
|
- name: Get project version
|
|
119
155
|
id: 'pyproject_version'
|
|
120
156
|
run: echo "version=v$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)" >> $GITHUB_OUTPUT
|
|
121
|
-
|
|
157
|
+
- name: Publish to prefix.dev channel
|
|
158
|
+
run: |
|
|
159
|
+
for pkg in $(find conda-*/* -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do
|
|
160
|
+
echo "Uploading ${pkg}"
|
|
161
|
+
rattler-build upload prefix -c terraquantumag "${pkg}"
|
|
162
|
+
done
|
|
122
163
|
- name: Publish to PyPI
|
|
123
164
|
uses: PyO3/maturin-action@v1
|
|
124
165
|
env:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Release winregistry
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
paths:
|
|
8
|
+
- conda-recipes/deps/winregistry/*
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Release winregistry
|
|
13
|
+
runs-on: windows-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: 3.x
|
|
22
|
+
- name: Build conda package
|
|
23
|
+
uses: prefix-dev/rattler-build-action@v0.2.19
|
|
24
|
+
with:
|
|
25
|
+
recipe-path: 'conda-recipes/deps/winregistry/recipe.yaml'
|
|
26
|
+
build-args: '--target-platform win-64'
|
|
27
|
+
- name: Publish to prefix.dev channel
|
|
28
|
+
run: |
|
|
29
|
+
$files = Get-ChildItem -Path output -Recurse -Include *.conda, *.tar.bz2
|
|
30
|
+
|
|
31
|
+
foreach ($pkg in $files) {
|
|
32
|
+
Write-Output "Uploading $pkg"
|
|
33
|
+
rattler-build upload prefix -c terraquantumag $pkg
|
|
34
|
+
}
|
|
35
|
+
shell: pwsh
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: keygen-py
|
|
3
|
-
Version: 0.0.1.
|
|
3
|
+
Version: 0.0.1.dev7
|
|
4
4
|
License-File: LICENSE
|
|
5
5
|
Summary: Unofficial Keygen SDK for Python. Integrate license activation and offline licensing. Wrapper around keygen-rs rust crate
|
|
6
6
|
Author-email: Terra Quantum AG <info@terraquantum.swiss>, Cedric Kring <ck@terraquantum.swiss>, Steven Beckers <sb@terraquantum.swiss>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Terra Quantum AG
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
|
|
3
|
+
context:
|
|
4
|
+
name: py-machineid
|
|
5
|
+
version: 0.6.0
|
|
6
|
+
|
|
7
|
+
package:
|
|
8
|
+
name: ${{ name|lower }}
|
|
9
|
+
version: ${{ version }}
|
|
10
|
+
|
|
11
|
+
source:
|
|
12
|
+
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/py-machineid-${{ version }}.tar.gz
|
|
13
|
+
sha256: 00c38d8521d429a4539bdd92967234db28a1a2b4b263062b351ca002332e633f
|
|
14
|
+
|
|
15
|
+
build:
|
|
16
|
+
number: 0
|
|
17
|
+
noarch: python
|
|
18
|
+
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
|
|
19
|
+
|
|
20
|
+
requirements:
|
|
21
|
+
host:
|
|
22
|
+
- python
|
|
23
|
+
- pip
|
|
24
|
+
- setuptools
|
|
25
|
+
- wheel
|
|
26
|
+
run:
|
|
27
|
+
- python
|
|
28
|
+
- if: win
|
|
29
|
+
then: winregistry
|
|
30
|
+
|
|
31
|
+
tests:
|
|
32
|
+
- python:
|
|
33
|
+
imports:
|
|
34
|
+
- machineid
|
|
35
|
+
pip_check: true
|
|
36
|
+
|
|
37
|
+
about:
|
|
38
|
+
summary: Get the unique machine ID of any host (without admin privileges)
|
|
39
|
+
license: MIT
|
|
40
|
+
license_file: LICENSE
|
|
41
|
+
homepage: https://github.com/keygen-sh/py-machineid
|
|
42
|
+
repository: https://github.com/keygen-sh/py-machineid
|
|
43
|
+
|
|
44
|
+
extra:
|
|
45
|
+
-maintainers:
|
|
46
|
+
- sbtq
|
|
47
|
+
- cedrictq
|
|
48
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included
|
|
12
|
+
in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
|
|
3
|
+
context:
|
|
4
|
+
name: winregistry
|
|
5
|
+
version: 1.1.1
|
|
6
|
+
|
|
7
|
+
package:
|
|
8
|
+
name: ${{ name|lower }}
|
|
9
|
+
version: ${{ version }}
|
|
10
|
+
|
|
11
|
+
source:
|
|
12
|
+
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/winregistry-${{ version }}.tar.gz
|
|
13
|
+
sha256: 942fecad3751c1b78b9e6b0a520266903c3023f104668ce1bdbf381ec993ad8b
|
|
14
|
+
|
|
15
|
+
build:
|
|
16
|
+
number: 0
|
|
17
|
+
skip: not win
|
|
18
|
+
script:
|
|
19
|
+
- ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
|
|
20
|
+
|
|
21
|
+
requirements:
|
|
22
|
+
host:
|
|
23
|
+
- python >=3.7,<4.0
|
|
24
|
+
- poetry-core >=1.0.0
|
|
25
|
+
- pip
|
|
26
|
+
run:
|
|
27
|
+
- python >=3.7.0,<4.0.0
|
|
28
|
+
|
|
29
|
+
tests:
|
|
30
|
+
- python:
|
|
31
|
+
imports:
|
|
32
|
+
- winregistry
|
|
33
|
+
- requirements:
|
|
34
|
+
run:
|
|
35
|
+
- pip
|
|
36
|
+
script:
|
|
37
|
+
- pip check
|
|
38
|
+
|
|
39
|
+
about:
|
|
40
|
+
summary: Library aimed at working with Windows registry
|
|
41
|
+
license: MIT
|
|
42
|
+
license_file: LICENSE
|
|
43
|
+
homepage: https://github.com/shpaker/winregistry
|
|
44
|
+
repository: https://github.com/shpaker/winregistry
|
|
45
|
+
|
|
46
|
+
extra:
|
|
47
|
+
maintainers:
|
|
48
|
+
- sbtq
|
|
49
|
+
- cedrictq
|
|
50
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
|
|
3
|
+
context:
|
|
4
|
+
name: ${{ load_from_file("pyproject.toml").project.name }}
|
|
5
|
+
version: ${{ load_from_file("pyproject.toml").project.version }}
|
|
6
|
+
|
|
7
|
+
package:
|
|
8
|
+
name: ${{ name|lower }}
|
|
9
|
+
version: ${{ version }}
|
|
10
|
+
|
|
11
|
+
source:
|
|
12
|
+
path: ../dist
|
|
13
|
+
use_gitignore: false
|
|
14
|
+
|
|
15
|
+
build:
|
|
16
|
+
script: pip install --find-links . keygen-py
|
|
17
|
+
number: 0
|
|
18
|
+
|
|
19
|
+
requirements:
|
|
20
|
+
build:
|
|
21
|
+
- python
|
|
22
|
+
host:
|
|
23
|
+
- python
|
|
24
|
+
- pip
|
|
25
|
+
- setuptools
|
|
26
|
+
- wheel
|
|
27
|
+
run:
|
|
28
|
+
- python
|
|
29
|
+
|
|
30
|
+
tests:
|
|
31
|
+
- python:
|
|
32
|
+
imports:
|
|
33
|
+
- keygen_sh
|
|
34
|
+
pip_check: true
|
|
35
|
+
|
|
36
|
+
about:
|
|
37
|
+
summary: Unofficial Keygen SDK for Python. Integrate license activation and offline licensing. Wrapper around keygen-rs rust crate
|
|
38
|
+
license: MIT
|
|
39
|
+
license_file: LICENSE
|
|
40
|
+
homepage: https://github.com/terra-quantum-public/keygen-py
|
|
41
|
+
|
|
42
|
+
extra:
|
|
43
|
+
recipe-maintainers:
|
|
44
|
+
- sbtq
|
|
45
|
+
- cedrictq
|
|
46
|
+
|
|
@@ -13,6 +13,7 @@ impl KeygenConfig {
|
|
|
13
13
|
#[pyo3(signature = (api_url, api_version, api_prefix, account, product, package=None, environment=None, license_key=None, token=None, public_key=None, platform=None, user_agent=None, max_clock_drift=5)
|
|
14
14
|
)]
|
|
15
15
|
#[new]
|
|
16
|
+
#[allow(clippy::too_many_arguments)]
|
|
16
17
|
pub fn new(api_url: String,
|
|
17
18
|
api_version: String,
|
|
18
19
|
api_prefix: String,
|
|
@@ -34,7 +35,7 @@ impl KeygenConfig {
|
|
|
34
35
|
api_prefix,
|
|
35
36
|
account,
|
|
36
37
|
product,
|
|
37
|
-
package: package.
|
|
38
|
+
package: package.unwrap_or("".to_string()),
|
|
38
39
|
environment,
|
|
39
40
|
license_key,
|
|
40
41
|
token,
|
|
@@ -47,8 +48,8 @@ impl KeygenConfig {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
impl
|
|
51
|
-
fn
|
|
52
|
-
|
|
51
|
+
impl From<KeygenConfig> for config::KeygenConfig {
|
|
52
|
+
fn from(val: KeygenConfig) -> Self {
|
|
53
|
+
val.inner
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -29,8 +29,8 @@ fn validate<'a>(py: Python<'a>, fingerprints: Option<Bound<'a, PyList>>, entitle
|
|
|
29
29
|
let fingerprints = fingerprints.unwrap_or_else(|| PyList::empty_bound(py));
|
|
30
30
|
let entitlements = entitlements.unwrap_or_else(|| PyList::empty_bound(py));
|
|
31
31
|
|
|
32
|
-
let fingerprints_vec = pylist_to_string_slice(fingerprints
|
|
33
|
-
let entitlements_vec = pylist_to_string_slice(entitlements
|
|
32
|
+
let fingerprints_vec = pylist_to_string_slice(fingerprints)?;
|
|
33
|
+
let entitlements_vec = pylist_to_string_slice(entitlements)?;
|
|
34
34
|
|
|
35
35
|
pyo3_async_runtimes::tokio::future_into_py(py, async move {
|
|
36
36
|
let result = keygen_rs::validate(&fingerprints_vec, &entitlements_vec).await;
|
|
@@ -36,9 +36,9 @@ impl License {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
impl
|
|
40
|
-
fn
|
|
41
|
-
match
|
|
39
|
+
impl From<SchemeCode> for license::SchemeCode {
|
|
40
|
+
fn from(val: SchemeCode) -> Self {
|
|
41
|
+
match val {
|
|
42
42
|
SchemeCode::Ed25519Sign => license::SchemeCode::Ed25519Sign,
|
|
43
43
|
}
|
|
44
44
|
}
|
keygen_py-0.0.1.dev5/.gitignore
DELETED
|
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
|