From 52c535259bb94f4344a322b445539058256a5851 Mon Sep 17 00:00:00 2001 From: Johannes Ziemke Date: Mon, 11 Mar 2024 16:32:18 +0100 Subject: [PATCH] Move build time deps to pyproject.toml --- pyproject.toml | 6 ++++++ setup.py | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9d6a768 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=40.8.0", + "wheel" +] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index c5b5c5d..365298e 100644 --- a/setup.py +++ b/setup.py @@ -3,14 +3,6 @@ import setuptools -try: - from pip import main as pipmain -except ImportError: - from pip._internal import main as pipmain - -pipmain(["install", "setuptools"]) -pipmain(["install", "distro"]) - extras = { "core": [], "tests": ["pytest", "pytest-mock", "testresources"], @@ -41,10 +33,7 @@ long_description_content_type="text/markdown", license="Custom", install_requires=[ - "pip>=21", 'importlib-metadata<=4.12.0; python_version <= "3.7"', # problem with gym for importlib-metadata==5.0.0 and python <=3.7 - "setuptools", - "distro>=1", "gymnasium>=0.26.3", "inputs", "screeninfo",