diff --git a/pyproject.toml b/pyproject.toml index 78f6535f..4b0aac2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] # Minimum requirements for the build system to execute. -requires = ["setuptools", "wheel"] # PEP 508 specifications. +requires = ["setuptools>=46.4.0", "wheel"] # PEP 508 specifications. # Actually tell PEP517 tools to call setuptools build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index 05936ff3..ecc3f5b6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,12 @@ classifiers = [options] packages = ppb_vector python_requires = >= 3.7 + +setup_requires = + pytest-runner +install_requires = file: requirements.txt +test_requires = file: requirements-tests.txt + zip_safe = True [aliases] diff --git a/setup.py b/setup.py deleted file mode 100755 index 257640f6..00000000 --- a/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -from setuptools import setup - - -def requirements(section=None): - """Helper for loading dependencies from requirements files.""" - if section is None: - filename = "requirements.txt" - else: - filename = f"requirements-{section}.txt" - - with open(filename) as file: - return [line.strip() for line in file] - - -# See setup.cfg for the actual configuration. -setup( - # setup needs to be able to import the library, for attr: to work - setup_requires=requirements() + ['pytest-runner'], - install_requires=requirements(), - tests_require=requirements('tests'), -)