From 9ee9c04a69c67f85ae952861024ad8440d462af8 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Mon, 14 Dec 2020 14:26:12 +0100 Subject: [PATCH] Remove python-dotenv from the dependencies zsh-dotenv automatically loads the environment variables upon entering the project's root. --- poetry.lock | 17 +---------------- pyproject.toml | 1 - setup.cfg | 2 -- src/urban_meal_delivery/configuration.py | 5 ----- 4 files changed, 1 insertion(+), 24 deletions(-) diff --git a/poetry.lock b/poetry.lock index b44af50..58c6815 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1346,17 +1346,6 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" [package.dependencies] six = ">=1.5" -[[package]] -name = "python-dotenv" -version = "0.14.0" -description = "Add .env support to your django/flask apps in development and deployments" -category = "main" -optional = false -python-versions = "*" - -[package.extras] -cli = ["click (>=5.0)"] - [[package]] name = "python-editor" version = "1.0.4" @@ -1817,7 +1806,7 @@ research = ["jupyterlab", "nb_black", "numpy", "pandas", "pytz"] [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "eba980d4335eef2012a1e7ce27941731149eb224cdfad856aa0bcd7701e9e557" +content-hash = "5f49faba0f11ddf2c4439fe0aad8113a68cbd504b2f68e57dfbec38db3cbe474" [metadata.files] alabaster = [ @@ -2478,10 +2467,6 @@ python-dateutil = [ {file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"}, {file = "python_dateutil-2.8.1-py2.py3-none-any.whl", hash = "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a"}, ] -python-dotenv = [ - {file = "python-dotenv-0.14.0.tar.gz", hash = "sha256:8c10c99a1b25d9a68058a1ad6f90381a62ba68230ca93966882a4dbc3bc9c33d"}, - {file = "python_dotenv-0.14.0-py2.py3-none-any.whl", hash = "sha256:c10863aee750ad720f4f43436565e4c1698798d763b63234fb5021b6c616e423"}, -] python-editor = [ {file = "python-editor-1.0.4.tar.gz", hash = "sha256:51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b"}, {file = "python_editor-1.0.4-py2-none-any.whl", hash = "sha256:5f98b069316ea1c2ed3f67e7f5df6c0d8f10b689964a4a811ff64f0106819ec8"}, diff --git a/pyproject.toml b/pyproject.toml index ec5414b..2656f96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,6 @@ python = "^3.8" alembic = "^1.4.2" click = "^7.1.2" psycopg2 = "^2.8.5" # adapter for PostgreSQL -python-dotenv = "^0.14.0" sqlalchemy = "^1.3.18" # Jupyter Lab => notebooks with analyses using the developed package diff --git a/setup.cfg b/setup.cfg index 5bbd00d..f764328 100644 --- a/setup.cfg +++ b/setup.cfg @@ -217,8 +217,6 @@ single_line_exclusions = typing [mypy] cache_dir = .cache/mypy -[mypy-dotenv] -ignore_missing_imports = true [mypy-nox.*] ignore_missing_imports = true [mypy-packaging] diff --git a/src/urban_meal_delivery/configuration.py b/src/urban_meal_delivery/configuration.py index 0e6eefa..c4cc451 100644 --- a/src/urban_meal_delivery/configuration.py +++ b/src/urban_meal_delivery/configuration.py @@ -13,11 +13,6 @@ import random import string import warnings -import dotenv - - -dotenv.load_dotenv() - def random_schema_name() -> str: """Generate a random PostgreSQL schema name for testing."""