forked from pool/python-environ-config
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5c1b0bcf1d | |||
| cc66c7daf7 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e83fa15efbd7ab7130268c33992d9d42747232315d05586e5276c96ee89020f9
|
||||
size 44948
|
||||
3
environ_config-24.1.0.tar.gz
Normal file
3
environ_config-24.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:473a25809b2199bcd2aab0d70c9ed9289d3ff4dfca16eec518a74c65f2a9f021
|
||||
size 44900
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 29 03:47:53 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 24.1.0:
|
||||
* Added
|
||||
+ Support for Python 3.13.
|
||||
+ Support for Moto 5. #76
|
||||
* Removed
|
||||
+ Support for Python 3.7.
|
||||
- Remove urllib3 BuildRequires.
|
||||
- Drop patch support-moto-5.patch, merged upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 13 05:40:17 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-environ-config
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,19 +17,17 @@
|
||||
|
||||
|
||||
Name: python-environ-config
|
||||
Version: 23.2.0
|
||||
Version: 24.1.0
|
||||
Release: 0
|
||||
Summary: Boilerplate-free configuration with env variables
|
||||
License: MIT
|
||||
URL: https://github.com/hynek/environ_config
|
||||
Source: https://files.pythonhosted.org/packages/source/e/environ-config/environ_config-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM Based on gh#hynek/environ-config#76
|
||||
Patch0: support-moto-5.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
||||
BuildRequires: %{python_module hatch_vcs}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-attrs >= 17.4.0
|
||||
@@ -40,7 +38,6 @@ BuildRequires: %{python_module attrs >= 17.4.0}
|
||||
BuildRequires: %{python_module boto3}
|
||||
BuildRequires: %{python_module moto}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module urllib3 < 2}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
From 2c51eda55d152d4bd59f51a033c5976bfe05a897 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Kowalik <steven@wedontsleep.org>
|
||||
Date: Tue, 13 Feb 2024 15:53:34 +1100
|
||||
Subject: [PATCH 1/2] Support moto 5.0
|
||||
|
||||
moto 5.0 has been released, and the major change is to pull all of the
|
||||
mocking into one function. Use the new mock_aws function, but continue
|
||||
to support moto 4.2, since it's easy.
|
||||
---
|
||||
pyproject.toml | 2 +-
|
||||
tests/test_secrets_awssm.py | 9 ++++++---
|
||||
2 files changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tests/test_secrets_awssm.py b/tests/test_secrets_awssm.py
|
||||
index db999d1..90b863c 100644
|
||||
--- a/tests/test_secrets_awssm.py
|
||||
+++ b/tests/test_secrets_awssm.py
|
||||
@@ -23,7 +23,10 @@
|
||||
import boto3
|
||||
import pytest
|
||||
|
||||
-from moto import mock_secretsmanager
|
||||
+try:
|
||||
+ from moto import mock_aws
|
||||
+except ImportError:
|
||||
+ from moto import mock_secretsmanager as mock_aws
|
||||
|
||||
import environ
|
||||
|
||||
@@ -62,7 +65,7 @@ def _mock_aws_credentials(force_region):
|
||||
|
||||
@pytest.fixture(name="secretsmanager")
|
||||
def _secretsmanager():
|
||||
- with mock_secretsmanager():
|
||||
+ with mock_aws():
|
||||
yield boto3.client("secretsmanager", region_name="us-east-2")
|
||||
|
||||
|
||||
@@ -122,7 +125,7 @@ def test_secret_works_with_default_client_overridden(
|
||||
class Cfg:
|
||||
pw = sm.secret()
|
||||
|
||||
- with mock_secretsmanager():
|
||||
+ with mock_aws():
|
||||
# we need to make sure we're using the same region. It doesn't
|
||||
# matter which -- moto _and_ boto will try figure it out from the
|
||||
# environment -- but it has to be the same.
|
||||
|
||||
From 40a01bee6579d9265e731b9f12e6a890f68bf0c5 Mon Sep 17 00:00:00 2001
|
||||
From: "pre-commit-ci[bot]"
|
||||
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
||||
Date: Tue, 13 Feb 2024 04:56:33 +0000
|
||||
Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks
|
||||
|
||||
for more information, see https://pre-commit.ci
|
||||
---
|
||||
tests/test_secrets_awssm.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tests/test_secrets_awssm.py b/tests/test_secrets_awssm.py
|
||||
index 90b863c..b109eb3 100644
|
||||
--- a/tests/test_secrets_awssm.py
|
||||
+++ b/tests/test_secrets_awssm.py
|
||||
@@ -23,6 +23,7 @@
|
||||
import boto3
|
||||
import pytest
|
||||
|
||||
+
|
||||
try:
|
||||
from moto import mock_aws
|
||||
except ImportError:
|
||||
Reference in New Issue
Block a user