From 6d137327b9bd44569695d772a6355044a3c3ac58 Mon Sep 17 00:00:00 2001 From: Bill Little Date: Tue, 26 Nov 2024 13:54:05 +0000 Subject: [PATCH 1/2] drop setup.py --- setup.py | 13 ------------- src/geovista/cli.py | 2 +- tox.ini | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100755 setup.py diff --git a/setup.py b/setup.py deleted file mode 100755 index 56bac319..00000000 --- a/setup.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) 2021, GeoVista Contributors. -# -# This file is part of GeoVista and is distributed under the 3-Clause BSD license. -# See the LICENSE file in the package root directory for licensing details. - -"""geovista setuptools packaging.""" - -from __future__ import annotations - -from setuptools import setup - -setup() diff --git a/src/geovista/cli.py b/src/geovista/cli.py index a0bae6b8..a52d3312 100644 --- a/src/geovista/cli.py +++ b/src/geovista/cli.py @@ -23,7 +23,7 @@ from click_default_group import DefaultGroup import lazy_loader as lazy -from ._version import version as __version__ +from . import __version__ from .cache import CACHE, pooch_mute from .common import get_modules from .config import resources diff --git a/tox.ini b/tox.ini index e770824b..ae62aac3 100644 --- a/tox.ini +++ b/tox.ini @@ -89,10 +89,10 @@ platform = linux passenv = GEOVISTA_DOWNLOAD + CI setenv = linkcheck: BUILDER = linkcheck doctest: BUILDER = doctest - CI = true GEOVISTA_POOCH_MUTE = true usedevelop = true From 8373df038d648e588c1fe1fd1dd9fef944c478d7 Mon Sep 17 00:00:00 2001 From: Bill Little Date: Wed, 27 Nov 2024 13:47:10 +0000 Subject: [PATCH 2/2] add changelog news fragment --- changelog/1227.contributor.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/1227.contributor.rst diff --git a/changelog/1227.contributor.rst b/changelog/1227.contributor.rst new file mode 100644 index 00000000..adfe4d86 --- /dev/null +++ b/changelog/1227.contributor.rst @@ -0,0 +1,3 @@ +Dropped the use of ``setup.py``, given the already configured +`PEP 517 `__ ``build-backend`` with +`setuptools `__. (:user:`bjlittle`)