Skip to content

Commit

Permalink
Remove setup.py completely. Requires setuptools>=64.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Aug 12, 2022
1 parent 6aa4888 commit cfc20a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ TESTDIR=tmp-test-dir-with-unique-name
PYTEST_COV_ARGS=--cov=$(PROJECT) --cov-config=../pyproject.toml \
--cov-report=term-missing --cov-report=xml --cov-report=html \
--pyargs ${PYTEST_EXTRA}
BLACK_FILES=$(PROJECT) setup.py doc/conf.py examples
BLACK_FILES=$(PROJECT) doc/conf.py examples
BLACKDOC_OPTIONS=--line-length 79
DOCFORMATTER_FILES=$(PROJECT) setup.py doc/conf.py examples
DOCFORMATTER_FILES=$(PROJECT) doc/conf.py examples
DOCFORMATTER_OPTIONS=--recursive --pre-summary-newline --make-summary-multi-line --wrap-summaries 79 --wrap-descriptions 79
FLAKE8_FILES=$(PROJECT) setup.py doc/conf.py examples
LINT_FILES=$(PROJECT) setup.py doc/conf.py
FLAKE8_FILES=$(PROJECT) doc/conf.py examples
LINT_FILES=$(PROJECT) doc/conf.py

help:
@echo "Commands:"
Expand Down
2 changes: 1 addition & 1 deletion doc/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ alongside the rest of the Scientific Python ecosystem, and therefore supports:
* All minor versions of NumPy released in the 24 months prior to the project,
and at minimum the last three minor versions.

In `setup.py`, the `python_requires` variable should be set to the minimum
In `pyproject.toml`, the `requires-python` key should be set to the minimum
supported version of Python. Minimum Python and NumPy version support should be
adjusted upward on every major and minor release, but never on a patch release.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=61", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
10 changes: 0 additions & 10 deletions setup.py

This file was deleted.

0 comments on commit cfc20a7

Please sign in to comment.