From 8948f31e59c0ab7afe0ef20fb9e53ce5f05c5fdc Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 12 Oct 2025 14:38:03 -0400 Subject: [PATCH 1/2] update test toolchain --- README.md | 6 +----- setup.py | 16 ---------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/README.md b/README.md index 9e6dcf7..edc18b2 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,7 @@ cd my-env . bin/activate git clone https://github.com/geopython/pygeometa.git cd pygeometa -python3 setup.py build -python3 setup.py install +pip3 install . ``` ## Running @@ -163,9 +162,6 @@ vi pygeometa/schemas/foo/__init__.py ### Running Tests ```bash -# via setuptools -python3 setup.py test -# manually cd tests python3 run_tests.py ``` diff --git a/setup.py b/setup.py index 5ade574..55f8865 100644 --- a/setup.py +++ b/setup.py @@ -50,21 +50,6 @@ import sys -class PyTest(Command): - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - import subprocess - errno = subprocess.call([sys.executable, 'tests/run_tests.py']) - raise SystemExit(errno) - - def read(filename) -> str: """read file contents""" @@ -133,6 +118,5 @@ def get_package_version(): 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS' ], - cmdclass={'test': PyTest}, test_suite='tests.run_tests' ) From 68c8bacda8cf578f1549bc41b3e04aa3895a1f5d Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 12 Oct 2025 14:41:08 -0400 Subject: [PATCH 2/2] fix flake8 --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 55f8865..32ccd44 100644 --- a/setup.py +++ b/setup.py @@ -45,9 +45,8 @@ # ================================================================= from pathlib import Path -from setuptools import Command, find_packages, setup +from setuptools import find_packages, setup import re -import sys def read(filename) -> str: