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..32ccd44 100644 --- a/setup.py +++ b/setup.py @@ -45,24 +45,8 @@ # ================================================================= from pathlib import Path -from setuptools import Command, find_packages, setup +from setuptools import find_packages, setup import re -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: @@ -133,6 +117,5 @@ def get_package_version(): 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS' ], - cmdclass={'test': PyTest}, test_suite='tests.run_tests' )