Skip to content

Commit

Permalink
Update TgCrypto to v1.2.6a0
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored Feb 28, 2024
1 parent 7c7d865 commit 17768a3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build wheels

on: [push]
on:
workflow_dispatch: ~

jobs:
build_wheels:
Expand All @@ -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
Expand All @@ -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 }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
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",
Expand All @@ -45,6 +45,7 @@
"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",
Expand Down

0 comments on commit 17768a3

Please sign in to comment.