From b9196984d23dfce11df6ac7ec97b31decd33a1ed Mon Sep 17 00:00:00 2001 From: mads-bertelsen Date: Wed, 11 Sep 2024 15:21:31 +0200 Subject: [PATCH] Update of how requirements are found --- setup.cfg | 2 +- setup.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index 8c28267..7d0748b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,3 @@ [metadata] -description-file = README.md +description_file = README.md diff --git a/setup.py b/setup.py index 21246aa..331bcd4 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,7 @@ from setuptools import setup, find_packages -import sys - -with open("requirements/prod.txt") as requirements_file: - require = requirements_file.read() - requirements = require.split() - -import codecs import os.path +import codecs +import sys def read(rel_path): @@ -24,6 +19,9 @@ def get_from_init(rel_path, field): raise RuntimeError("Unable to find " + field + " string.") +require = read(os.path.join("requirements", "prod.txt")) +requirements = require.split() + initfile = "libpyvinyl/__init__.py" version = get_from_init(initfile, "__version__") setup(