mirror of
https://github.com/TeamPGM/tgcrypto.git
synced 2024-11-27 01:55:50 +00:00
Update TgCrypto to v1.2.6a0
This commit is contained in:
parent
7c7d865c02
commit
17768a3422
35
.github/workflows/wheels.yml
vendored
35
.github/workflows/wheels.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: Build wheels
|
name: Build wheels
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
workflow_dispatch: ~
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_wheels:
|
build_wheels:
|
||||||
@ -11,10 +12,10 @@ jobs:
|
|||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.11.2
|
uses: pypa/cibuildwheel@v2.16.5
|
||||||
env:
|
env:
|
||||||
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
|
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
|
||||||
CIBW_TEST_REQUIRES: tox
|
CIBW_TEST_REQUIRES: tox
|
||||||
@ -23,6 +24,32 @@ jobs:
|
|||||||
CIBW_BUILD_VERBOSITY: 1
|
CIBW_BUILD_VERBOSITY: 1
|
||||||
|
|
||||||
- name: Store wheels
|
- name: Store wheels
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: dist-${{ matrix.os }}
|
||||||
path: ./wheelhouse/*.whl
|
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 }}
|
||||||
|
@ -12,12 +12,12 @@ cryptographic algorithms Telegram requires, namely:
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Python 3.7 or higher.
|
- Python 3.12 or higher.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ pip3 install -U tgcrypto
|
$ pip3 install -U pyrotgcrypto
|
||||||
```
|
```
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
5
setup.py
5
setup.py
@ -22,8 +22,8 @@ with open("README.md", encoding="utf-8") as f:
|
|||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="TgCrypto",
|
name="PyroTgCrypto",
|
||||||
version="1.2.5",
|
version="1.2.6a0",
|
||||||
description="Fast and Portable Cryptography Extension Library for Pyrogram",
|
description="Fast and Portable Cryptography Extension Library for Pyrogram",
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
@ -45,6 +45,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: Implementation",
|
"Programming Language :: Python :: Implementation",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
|
Loading…
Reference in New Issue
Block a user