Skip to content

Commit 2433c2d

Browse files
committed
0.1.4
Changed the crate and Python module name from 'pyqmc' to 'pyqmc_rust' across Cargo.toml, pyproject.toml, src/lib.rs, README.md, and test.py. Updated versions to 0.1.4 and adjusted CI workflow comments for maturin. This aligns naming conventions and prepares for future releases.
1 parent 1a620e5 commit 2433c2d

8 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/CI.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# This file is autogenerated by maturin v1.9.4
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
16
name: CI
27

38
on:
@@ -6,7 +11,7 @@ on:
611
- main
712
- master
813
tags:
9-
- "*"
14+
- '*'
1015
pull_request:
1116
workflow_dispatch:
1217

@@ -154,15 +159,18 @@ jobs:
154159
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
155160
needs: [linux, musllinux, windows, macos, sdist]
156161
permissions:
162+
# Use to sign the release artifacts
157163
id-token: write
164+
# Used to upload release artifacts
158165
contents: write
166+
# Used to generate artifact attestation
159167
attestations: write
160168
steps:
161169
- uses: actions/download-artifact@v4
162170
- name: Generate artifact attestation
163171
uses: actions/attest-build-provenance@v2
164172
with:
165-
subject-path: "wheels-*/*"
173+
subject-path: 'wheels-*/*'
166174
- name: Publish to PyPI
167175
if: ${{ startsWith(github.ref, 'refs/tags/') }}
168176
uses: PyO3/maturin-action@v1

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "pyqmc"
3-
version = "0.1.3"
2+
name = "pyqmc_rust"
3+
version = "0.1.4"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77
[lib]
8-
name = "pyqmc"
8+
name = "pyqmc_rust"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## pyqmc-rust
1+
## pyqmc_rust
22
QQ Music Crypt Decryption Library. Written in Rust with PyO3 bindings.
33

44
## 本程序代码从um/lib_um_crypto_rust借鉴

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ requires = ["maturin>=1.9,<2.0"]
33
build-backend = "maturin"
44

55
[project]
6-
name = "pyqmc"
6+
name = "pyqmc_rust"
77
requires-python = ">=3.8"
88
classifiers = [
99
"Programming Language :: Rust",
1010
"Programming Language :: Python :: Implementation :: CPython",
1111
"Programming Language :: Python :: Implementation :: PyPy",
1212
]
1313
dynamic = ["version"]
14+
1415
[tool.maturin]
1516
features = ["pyo3/extension-module"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ mod test {
8080

8181
/// A Python module implemented in Rust.
8282
#[pymodule]
83-
fn pyqmc(m: &Bound<'_, PyModule>) -> PyResult<()> {
83+
fn pyqmc_rust(m: &Bound<'_, PyModule>) -> PyResult<()> {
8484
m.add_class::<QMCv2Cipher>()?;
8585
Ok(())
8686
}

src/utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "utils"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
edition = "2021"
55

66
[dependencies]

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import pyqmc
1+
import pyqmc_rust
22

33

44
def decrypt_with_ekey():
55
ekey = "aWw0MjNSVWxDu8nvoETp6fPi/JwEf9RVZv+gE2M1KsaCSD47MKiip61QnoD+Q/aAbH3KmX9MY9j17b3L9iYBxdXJ0n20aJKqFbryGqq3BXwrAUzd53WbmNS4/5DkyOgVsZXSFEBbfmpiBTic8BsQsqplMsqA6gxBz7vRFUZXBQpgBzSKA/CtpdnI8+13ru8vDppfP66TxPktwH6ccFAXnE+ZzG4TB0RadbniHeVSzOAX7HqN8phn6tTOdfCy1EvIaC1kbArfd0qH7jfdC2Tv/OpTt6Z+HuiA3PK0dLmp5WQl/1IBKVdRRYT9U6vBk6/Es7uxpgEs/7AbZKzpaVujnadJ0T62TJvIR0V1WBC+cVxW0ZorD5ohI1R6ihg8pXYhUIV3kfiYogQupcdFWK7mVGM42H5GBM8g9ox1HTVXv3Yqw2NNryGFdOFsgAGOw2n8Rnn0ms48cH3UDgzvCH0H6UjsqSo3KPp+YFjvE5JvWmCyWspnIzYy0vBSZZ758ONCPh0D7tD6nvTEvf+wxw2KfuEku7U7r7bl8cPi0vMmyVTVAafI+i/rN/qMx9h1rVnwgNO5SV8a7YjCxobrVcMSbkGCaVBRLNVVoZ1doz1TU2y5Eg0fbOheg6Or/+OS2KdIVbbFvg21kx/UO7wElMZB5KjopT/TEqrc2kaONu4F0JtufpVaUOp/xL/BBPLEYsB8"
66

7-
cipher = pyqmc.QMCv2Cipher.new_from_ekey(ekey.encode())
7+
cipher = pyqmc_rust.QMCv2Cipher.new_from_ekey(ekey.encode())
88

99
with open("AIM0002QpiAq45fm0g.mflac", "rb") as f:
1010
data = bytearray(f.read())

0 commit comments

Comments
 (0)