Commit dcfd6504 authored by Daniel Scheffler's avatar Daniel Scheffler

Exclude tests from being installed via 'pip install'.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 667e8ba1
......@@ -4,7 +4,7 @@ include HISTORY.rst
include LICENSE
include README.rst
recursive-include tests *
recursive-exclude tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
......
......@@ -31,7 +31,7 @@ from six import PY3
def data_DB_updater(gms_obj_dict, path_db):
# type: (dict) -> None
# type: (dict, str) -> None
"""Updates the table "scenes_proc" or "mgrs_tiles_proc within a postgreSQL or an SQL database
according to the given dictionary of a GMS object.
......
......@@ -36,8 +36,17 @@ version = {}
with open("py_tools_ds/version.py") as version_file:
exec(version_file.read(), version)
requirements = ['gdal>=2.1.0', 'numpy', 'shapely', 'six', 'pandas', 'scikit-image>=0.16.0', 'geopandas',
'pyproj>=2.2.0', 'spectral']
requirements = [
'gdal>=2.1.0',
'geopandas',
'numpy',
'pandas',
'pyproj>=2.2.0',
'scikit-image>=0.16.0',
'shapely',
'six',
'spectral'
]
setup_requirements = [] # TODO(danschef): put setup requirements (distutils extensions, etc.) here
test_requirements = requirements + ["coverage", "nose", "nose2", "nose-htmloutput", "rednose"]
......@@ -49,7 +58,7 @@ setup(
author="Daniel Scheffler",
author_email='daniel.scheffler@gfz-potsdam.de',
url='https://gitext.gfz-potsdam.de/danschef/py_tools_ds',
packages=find_packages(), # searches for packages with an __init__.py and returns them as properly formatted list
packages=find_packages(exclude=['tests*']), # searches for packages with an __init__.py and returns a list
package_dir={'py_tools_ds': 'py_tools_ds'},
include_package_data=True,
install_requires=requirements,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment