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(