Skip to content

Commit

Permalink
for real fix build (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
themanyfaceddemon authored Oct 10, 2024
1 parent 71b475f commit 580f6b5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"build",
"aiofiles",
"aiosqlite",
"aiohttp",
"bcrypt",
"msgpack"
]
build-backend = "setuptools.build_meta"
19 changes: 15 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
from pathlib import Path

from setuptools import find_packages, setup

from DMBotNetwork import __version__

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def read_version():
init_file = Path("DMBotNetwork") / "version.py"
with init_file.open("r", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]

raise RuntimeError("Не удалось прочитать версию.")


long_description = Path("README.md").read_text(encoding="utf-8")

setup(
name="DMBotNetwork",
version=__version__,
version=read_version(),
packages=find_packages(),
install_requires=["aiosqlite", "aiohttp", "aiofiles", "bcrypt", "msgpack"],
author="Angels And Demons dev team",
Expand Down

0 comments on commit 580f6b5

Please sign in to comment.