From 343f48d703a8b798dd8c77392dc2149c83807ec6 Mon Sep 17 00:00:00 2001 From: The many faced demon <154847721+themanyfaceddemon@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:15:51 +0300 Subject: [PATCH] fix (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Пытка починки релиза --- .github/workflows/python-publish.yml | 7 ++++++- DMBotNetwork/__init__.py | 2 +- DMBotNetwork/version.py | 1 + setup.py | 9 +++++++-- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 DMBotNetwork/version.py diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 664bd39..b589a86 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -14,16 +14,21 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Python uses: actions/setup-python@v3 with: - python-version: '3.x' + python-version: '3.12' + - name: Install dependencies run: | python -m pip install --upgrade pip pip install build + pip install -r requirements.txt + - name: Build package run: python -m build + - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: diff --git a/DMBotNetwork/__init__.py b/DMBotNetwork/__init__.py index 8ea3f3d..24da32b 100644 --- a/DMBotNetwork/__init__.py +++ b/DMBotNetwork/__init__.py @@ -3,6 +3,6 @@ from .main.utils.cl_unit import ClUnit from .main.utils.decorator import require_access from .main.utils.server_db import ServerDB +from .version import __version__ __all__ = ["Client", "Server", "ClUnit", "require_access", "ServerDB"] -__version__ = "0.3.1" diff --git a/DMBotNetwork/version.py b/DMBotNetwork/version.py new file mode 100644 index 0000000..260c070 --- /dev/null +++ b/DMBotNetwork/version.py @@ -0,0 +1 @@ +__version__ = "0.3.1" diff --git a/setup.py b/setup.py index ea4a2a2..6bc8cdb 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,19 @@ from setuptools import find_packages, setup +from DMBotNetwork import __version__ + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + setup( name="DMBotNetwork", - version="0.3.1", + version=__version__, packages=find_packages(), install_requires=["aiosqlite", "aiofiles", "bcrypt", "msgpack"], author="Angels And Demons dev team", author_email="dm.bot.adm@gmail.com", description="Нэткод для проектов DMBot", - long_description=open("README.md").read(), + long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/AngelsAndDemonsDM/DM-Bot-network", classifiers=[