File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed
Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ cd my-env
2828. bin/activate
2929git clone https://github.com/geopython/pygeometa.git
3030cd 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
169165cd tests
170166python3 run_tests.py
171167```
Original file line number Diff line number Diff line change 4545# =================================================================
4646
4747from pathlib import Path
48- from setuptools import Command , find_packages , setup
48+ from setuptools import find_packages , setup
4949import 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
6852def 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)
You can’t perform that action at this time.
0 commit comments