diff --git a/.github/workflows/deploy.yml b/.github/workflows/pypi-release.yml similarity index 65% rename from .github/workflows/deploy.yml rename to .github/workflows/pypi-release.yml index ed978fae..1cfe82b1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/pypi-release.yml @@ -1,4 +1,4 @@ -name: Deploy +name: "Deploy" on: push: @@ -17,16 +17,12 @@ jobs: with: python-version: "3.10" - - name: Install and configure Poetry - uses: snok/install-poetry@v1 - with: - version: 1.2.1 - virtualenvs-create: false - installer-parallel: true + - name: Install build dependencies + run: python -m pip install --upgrade build + + - name: Build source distribution + run: python -m build . - - name: Build - run: | - poetry build - name: Try install wheel run: | pip install -U virtualenv @@ -53,17 +49,17 @@ jobs: name: dist path: dist -# - name: Publish a Python distribution to Test PyPI -# uses: pypa/gh-action-pypi-publish@master -## if: github.event.action != 'published' -# with: -# user: __token__ -# password: ${{ secrets.PYPI_TEST_TOKEN }} -# repository_url: https://test.pypi.org/legacy/ + # - name: Publish a Python distribution to Test PyPI + # uses: pypa/gh-action-pypi-publish@master + ## if: github.event.action != 'published' + # with: + # user: __token__ + # password: ${{ secrets.PYPI_TEST_TOKEN }} + # repository_url: https://test.pypi.org/legacy/ - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@master -# if: github.event.action == 'published' + # if: github.event.action == 'published' with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 03eef35e..2cf3c391 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -1,7 +1,9 @@ from contextlib import suppress from aiogram.dispatcher.flags import FlagGenerator - +from . import methods +from . import types +from . import enums from .client import session from .client.bot import Bot from .dispatcher.dispatcher import Dispatcher @@ -24,6 +26,7 @@ __all__ = ( "__version__", "types", "methods", + "enums", "Bot", "session", "Dispatcher",