From 47551e8c713a90f2656e41ca07f8197ee6a3d771 Mon Sep 17 00:00:00 2001 From: Catherine Date: Tue, 31 Jan 2023 19:47:32 +0000 Subject: [PATCH] Add PEP 518 `pyproject.toml`. See also commits: * 7fca037f (adding it) * 416b2531 (reverting it) * a2ef4cb6 (adding it) * 810c19dd (reverting it) Third time's the charm? --- docs/install.rst | 2 +- pyproject.toml | 3 +++ setup.py | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/docs/install.rst b/docs/install.rst index e8d07e3..76c2a1f 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -203,7 +203,7 @@ Editable development snapshot .. |develop:first-time| replace:: To install an editable development snapshot of Amaranth for the first time, run: .. |develop:update| replace:: Any changes made to the ``amaranth`` directory will immediately affect any code that uses Amaranth. To update the snapshot, run: -.. |develop:reinstall| replace:: each time the editable development snapshot is updated in case package dependencies have been added or changed. Otherwise, code using Amaranth may misbehave or crash with an ``ImportError``. +.. |develop:reinstall| replace:: any time package dependencies may have been added or changed (notably after updating the snapshot with ``git``). Otherwise, code using Amaranth may crash because of a dependency version mismatch. .. platform-picker:: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e6670cf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["wheel", "setuptools~=62.0", "setuptools_scm"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index c658c53..9ea9eed 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,6 @@ setup( #long_description="""TODO""", license="BSD", python_requires="~=3.7", - setup_requires=["wheel", "setuptools", "setuptools_scm"], install_requires=[ "importlib_metadata; python_version<'3.8'", # for __version__ and amaranth._toolchain.yosys "importlib_resources; python_version<'3.9'", # for amaranth._toolchain.yosys