From 8ae72adb49a6e580432a5f79526fc4d3fa7a770a Mon Sep 17 00:00:00 2001 From: vista Date: Fri, 5 Nov 2021 17:02:25 +0100 Subject: [PATCH] Move to standard package layout, add requirements into setup.cfg --- setup.cfg | 10 +++++++++- {pypeeringmanager => src/pypeeringmanager}/__init__.py | 0 .../pypeeringmanager}/core/__init__.py | 0 {pypeeringmanager => src/pypeeringmanager}/core/api.py | 0 {pypeeringmanager => src/pypeeringmanager}/core/app.py | 0 .../pypeeringmanager}/models/__init__.py | 0 .../pypeeringmanager}/models/peering.py | 0 7 files changed, 9 insertions(+), 1 deletion(-) rename {pypeeringmanager => src/pypeeringmanager}/__init__.py (100%) rename {pypeeringmanager => src/pypeeringmanager}/core/__init__.py (100%) rename {pypeeringmanager => src/pypeeringmanager}/core/api.py (100%) rename {pypeeringmanager => src/pypeeringmanager}/core/app.py (100%) rename {pypeeringmanager => src/pypeeringmanager}/models/__init__.py (100%) rename {pypeeringmanager => src/pypeeringmanager}/models/peering.py (100%) diff --git a/setup.cfg b/setup.cfg index 9088067..6e74aed 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,4 +17,12 @@ classifiers = Programming Language :: Python :: 2 [options] -packages = pypeeringmanager +package_dir= + =src +packages=find: +install_requires = + pynetbox>=6.1.3 + requests>=2.20.0,<3.0 + +[options.packages.find] +where=src diff --git a/pypeeringmanager/__init__.py b/src/pypeeringmanager/__init__.py similarity index 100% rename from pypeeringmanager/__init__.py rename to src/pypeeringmanager/__init__.py diff --git a/pypeeringmanager/core/__init__.py b/src/pypeeringmanager/core/__init__.py similarity index 100% rename from pypeeringmanager/core/__init__.py rename to src/pypeeringmanager/core/__init__.py diff --git a/pypeeringmanager/core/api.py b/src/pypeeringmanager/core/api.py similarity index 100% rename from pypeeringmanager/core/api.py rename to src/pypeeringmanager/core/api.py diff --git a/pypeeringmanager/core/app.py b/src/pypeeringmanager/core/app.py similarity index 100% rename from pypeeringmanager/core/app.py rename to src/pypeeringmanager/core/app.py diff --git a/pypeeringmanager/models/__init__.py b/src/pypeeringmanager/models/__init__.py similarity index 100% rename from pypeeringmanager/models/__init__.py rename to src/pypeeringmanager/models/__init__.py diff --git a/pypeeringmanager/models/peering.py b/src/pypeeringmanager/models/peering.py similarity index 100% rename from pypeeringmanager/models/peering.py rename to src/pypeeringmanager/models/peering.py