From a6cc7c2e21ca68dd013a88bc02c9525ede62b96e Mon Sep 17 00:00:00 2001 From: Reinert Huseby Karlsen Date: Fri, 6 May 2022 14:23:53 +0200 Subject: [PATCH] move to src structure --- setup.cfg | 8 +++++++- {sondera => src/sondera}/__init__.py | 4 ---- {sondera => src/sondera}/clients/__init__.py | 0 {sondera => src/sondera}/clients/parameters.py | 0 {sondera => src/sondera}/clients/sgu/__init__.py | 0 {sondera => src/sondera}/clients/sgu/groundwater.py | 0 {sondera => src/sondera}/clients/smhi/__init__.py | 0 {sondera => src/sondera}/clients/smhi/hydroobs.py | 0 {sondera => src/sondera}/clients/smhi/metobs.py | 0 {sondera => src/sondera}/clients/smhi/smhistrang.py | 0 {sondera => src/sondera}/datatypes.py | 0 {sondera => src/sondera}/exceptions.py | 0 {sondera => src/sondera}/geo_utils.py | 0 13 files changed, 7 insertions(+), 5 deletions(-) rename {sondera => src/sondera}/__init__.py (72%) rename {sondera => src/sondera}/clients/__init__.py (100%) rename {sondera => src/sondera}/clients/parameters.py (100%) rename {sondera => src/sondera}/clients/sgu/__init__.py (100%) rename {sondera => src/sondera}/clients/sgu/groundwater.py (100%) rename {sondera => src/sondera}/clients/smhi/__init__.py (100%) rename {sondera => src/sondera}/clients/smhi/hydroobs.py (100%) rename {sondera => src/sondera}/clients/smhi/metobs.py (100%) rename {sondera => src/sondera}/clients/smhi/smhistrang.py (100%) rename {sondera => src/sondera}/datatypes.py (100%) rename {sondera => src/sondera}/exceptions.py (100%) rename {sondera => src/sondera}/geo_utils.py (100%) diff --git a/setup.cfg b/setup.cfg index 6c11b8b..277e104 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,6 +9,7 @@ url = https://github.com/rhkarls/sondera project_urls = Bug Tracker = https://github.com/rhkarls/sondera/issues classifiers = + Development Status :: 2 - Pre-Alpha License :: OSI Approved :: MIT License Programming Language :: Python :: 3 Programming Language :: Python :: 3.8 @@ -17,7 +18,9 @@ classifiers = [options] python_requires = >= 3.8 -packages = sondera +package_dir= + =src +packages = find: zip_safe = False install_requires = numpy @@ -26,6 +29,9 @@ install_requires = requests tqdm +[options.packages.find] +where = src + [options.extras_require] test = pytest diff --git a/sondera/__init__.py b/src/sondera/__init__.py similarity index 72% rename from sondera/__init__.py rename to src/sondera/__init__.py index 464774e..3463a04 100644 --- a/sondera/__init__.py +++ b/src/sondera/__init__.py @@ -3,7 +3,3 @@ __author__ = """Reinert Huseby Karlsen""" __email__ = '' __version__ = '0.0.1' - -from .clients import smhi - -__all__ = [smhi] diff --git a/sondera/clients/__init__.py b/src/sondera/clients/__init__.py similarity index 100% rename from sondera/clients/__init__.py rename to src/sondera/clients/__init__.py diff --git a/sondera/clients/parameters.py b/src/sondera/clients/parameters.py similarity index 100% rename from sondera/clients/parameters.py rename to src/sondera/clients/parameters.py diff --git a/sondera/clients/sgu/__init__.py b/src/sondera/clients/sgu/__init__.py similarity index 100% rename from sondera/clients/sgu/__init__.py rename to src/sondera/clients/sgu/__init__.py diff --git a/sondera/clients/sgu/groundwater.py b/src/sondera/clients/sgu/groundwater.py similarity index 100% rename from sondera/clients/sgu/groundwater.py rename to src/sondera/clients/sgu/groundwater.py diff --git a/sondera/clients/smhi/__init__.py b/src/sondera/clients/smhi/__init__.py similarity index 100% rename from sondera/clients/smhi/__init__.py rename to src/sondera/clients/smhi/__init__.py diff --git a/sondera/clients/smhi/hydroobs.py b/src/sondera/clients/smhi/hydroobs.py similarity index 100% rename from sondera/clients/smhi/hydroobs.py rename to src/sondera/clients/smhi/hydroobs.py diff --git a/sondera/clients/smhi/metobs.py b/src/sondera/clients/smhi/metobs.py similarity index 100% rename from sondera/clients/smhi/metobs.py rename to src/sondera/clients/smhi/metobs.py diff --git a/sondera/clients/smhi/smhistrang.py b/src/sondera/clients/smhi/smhistrang.py similarity index 100% rename from sondera/clients/smhi/smhistrang.py rename to src/sondera/clients/smhi/smhistrang.py diff --git a/sondera/datatypes.py b/src/sondera/datatypes.py similarity index 100% rename from sondera/datatypes.py rename to src/sondera/datatypes.py diff --git a/sondera/exceptions.py b/src/sondera/exceptions.py similarity index 100% rename from sondera/exceptions.py rename to src/sondera/exceptions.py diff --git a/sondera/geo_utils.py b/src/sondera/geo_utils.py similarity index 100% rename from sondera/geo_utils.py rename to src/sondera/geo_utils.py