diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 379c79a..ce28fdf 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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 }} diff --git a/README.md b/README.md index 8174b29..18b47b0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/setup.py b/setup.py index 00e1720..60203ab 100644 --- a/setup.py +++ b/setup.py @@ -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",