From f38671c608c9d8e9460356b0f9cde69d0c3328a7 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Thu, 6 Oct 2022 19:30:23 -0400 Subject: [PATCH] Revert "Revert "refactor setup.py because 'build' wants to be a pissy whinybaby"" This reverts commit 01fb71859064c87468d9e0efced7613f8e7d9b58. --- requirements.txt | 3 --- setup.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 33e405b..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -discord.py>=2.0.0 -aiohttp>=3.7.4,<4 -orjson diff --git a/setup.py b/setup.py index ba8ca15..5e843c4 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ import setuptools import re version = '' +requirements = ['discord.py>=2.0.0', 'aiohttp>=3.7.4,<4', 'orjson'] with open('pomice/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) @@ -25,8 +26,7 @@ if version.endswith(('a', 'b', 'rc')): except Exception: pass -with open("requirements.txt") as f: - requirements = f.read().splitlines() + with open("README.md") as f: readme = f.read()