Revert "Revert "refactor setup.py because 'build' wants to be a pissy whinybaby""
This reverts commit 01fb718590.
This commit is contained in:
parent
01fb718590
commit
f38671c608
|
|
@ -1,3 +0,0 @@
|
||||||
discord.py>=2.0.0
|
|
||||||
aiohttp>=3.7.4,<4
|
|
||||||
orjson
|
|
||||||
4
setup.py
4
setup.py
|
|
@ -2,6 +2,7 @@ import setuptools
|
||||||
import re
|
import re
|
||||||
|
|
||||||
version = ''
|
version = ''
|
||||||
|
requirements = ['discord.py>=2.0.0', 'aiohttp>=3.7.4,<4', 'orjson']
|
||||||
with open('pomice/__init__.py') as f:
|
with open('pomice/__init__.py') as f:
|
||||||
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
|
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:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
with open("requirements.txt") as f:
|
|
||||||
requirements = f.read().splitlines()
|
|
||||||
|
|
||||||
with open("README.md") as f:
|
with open("README.md") as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue