From 01fb71859064c87468d9e0efced7613f8e7d9b58 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Thu, 6 Oct 2022 19:28:37 -0400 Subject: [PATCH] Revert "refactor setup.py because 'build' wants to be a pissy whinybaby" This reverts commit 1f7f85df937a9dfce42b9ba8b92f06acd3e2d986. --- requirements.txt | 3 +++ setup.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..33e405b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +discord.py>=2.0.0 +aiohttp>=3.7.4,<4 +orjson diff --git a/setup.py b/setup.py index 5e843c4..ba8ca15 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ 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) @@ -26,7 +25,8 @@ 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()