Update TgCrypto to v1.2.6a0

This commit is contained in:
omg-xtao 2024-02-28 13:15:43 +00:00 committed by GitHub
parent 7c7d865c02
commit 17768a3422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 8 deletions

View File

@ -1,6 +1,7 @@
name: Build wheels
on: [push]
on:
workflow_dispatch: ~
jobs:
build_wheels:
@ -11,10 +12,10 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.11.2
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_TEST_REQUIRES: tox
@ -23,6 +24,32 @@ jobs:
CIBW_BUILD_VERBOSITY: 1
- name: Store wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
path: ./wheelhouse/*.whl
upload_pypi:
name: Upload to pypi
runs-on: ubuntu-latest
needs:
- build_wheels
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Twine
run: |
pip install twine
- name: upload to pypi
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

View File

@ -12,12 +12,12 @@ cryptographic algorithms Telegram requires, namely:
## Requirements
- Python 3.7 or higher.
- Python 3.12 or higher.
## Installation
``` bash
$ pip3 install -U tgcrypto
$ pip3 install -U pyrotgcrypto
```
## API

View File

@ -22,8 +22,8 @@ with open("README.md", encoding="utf-8") as f:
readme = f.read()
setup(
name="TgCrypto",
version="1.2.5",
name="PyroTgCrypto",
version="1.2.6a0",
description="Fast and Portable Cryptography Extension Library for Pyrogram",
long_description=readme,
long_description_content_type="text/markdown",
@ -45,6 +45,7 @@ setup(
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",