Skip to content

Commit 3c8c37e

Browse files
authored
update test toolchain (#283)
1 parent b5864fc commit 3c8c37e

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ cd my-env
2828
. bin/activate
2929
git clone https://github.com/geopython/pygeometa.git
3030
cd pygeometa
31-
python3 setup.py build
32-
python3 setup.py install
31+
pip3 install .
3332
```
3433

3534
## Running
@@ -163,9 +162,6 @@ vi pygeometa/schemas/foo/__init__.py
163162
### Running Tests
164163

165164
```bash
166-
# via setuptools
167-
python3 setup.py test
168-
# manually
169165
cd tests
170166
python3 run_tests.py
171167
```

setup.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,8 @@
4545
# =================================================================
4646

4747
from pathlib import Path
48-
from setuptools import Command, find_packages, setup
48+
from setuptools import find_packages, setup
4949
import re
50-
import sys
51-
52-
53-
class PyTest(Command):
54-
user_options = []
55-
56-
def initialize_options(self):
57-
pass
58-
59-
def finalize_options(self):
60-
pass
61-
62-
def run(self):
63-
import subprocess
64-
errno = subprocess.call([sys.executable, 'tests/run_tests.py'])
65-
raise SystemExit(errno)
6650

6751

6852
def read(filename) -> str:
@@ -133,6 +117,5 @@ def get_package_version():
133117
'Programming Language :: Python',
134118
'Topic :: Scientific/Engineering :: GIS'
135119
],
136-
cmdclass={'test': PyTest},
137120
test_suite='tests.run_tests'
138121
)

0 commit comments

Comments
 (0)