From 4f9c13e461db47c08514115e94e5d2906a08fce9 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Tue, 11 Apr 2023 18:13:16 -0400 Subject: [PATCH 1/4] Update pip before resolving dependencies in container. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4eaf1cc4..294a77b1 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ requirements : ${REQUIREMENTS} ${REQUIREMENTS} : requirements/%.txt : requirements.in */setup.py mkdir -p $(dir $@) ${RUN} -w /workspace -v `pwd`:/workspace --platform=linux/amd64 python:$* bash -c \ - "pip install pip-tools && pip-compile --resolver=backtracking -v --upgrade -o $@ $<" + "pip install --upgrade pip pip-tools && pip-compile --resolver=backtracking -v --upgrade -o $@ $<" # Remove any generated files. clean : From 646763e3121c3d3f720d91cc61f3e1da75a4e857 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Tue, 11 Apr 2023 18:13:37 -0400 Subject: [PATCH 2/4] Add breaking changes note to README and issue template. --- .github/ISSUE_TEMPLATE/bug-or-unexpected-behavior.md | 4 +++- README.rst | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-or-unexpected-behavior.md b/.github/ISSUE_TEMPLATE/bug-or-unexpected-behavior.md index 56242051..08181b67 100644 --- a/.github/ISSUE_TEMPLATE/bug-or-unexpected-behavior.md +++ b/.github/ISSUE_TEMPLATE/bug-or-unexpected-behavior.md @@ -7,6 +7,8 @@ assignees: '' --- +⚠️ testcontainers-python version 4.0.0 introduces breaking changes. Please review the note in the documentation (https://testcontainers-python.readthedocs.io/) before filing a bug. + **Describe the bug** A clear and concise description of what the bug is. What did you expect to happen? What happened instead? @@ -24,7 +26,7 @@ raise RuntimeError("something went wrong") Provide a summary of your runtime environment. Which operating system, python version, and docker version are you using? What is the version of `testcontainers-python` you are using? You can run the following commands to get the relevant information. ```bash -# Get the operating system information (on a unix os). +# Get the operating system information (e.g., on a unix os). $ uname -a # Get the python version. $ python --version diff --git a/README.rst b/README.rst index 08145687..e941b384 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,16 @@ testcontainers-python .. image:: https://readthedocs.org/projects/testcontainers-python/badge/?version=latest :target: http://testcontainers-python.readthedocs.io/en/latest/?badge=latest -testcontainers-python facilitates the use of Docker containers for functional and integration testing. The collection of packages currently supports the following features. +testcontainers-python facilitates the use of Docker containers for functional and integration testing. + +.. note:: + + testcontainers-python version 4.0.0 introduces several breaking changes. To use an older version, add :code:`testcontainers-python<4` :code:`install_requires` in your :code:`setup.py` if you are building a package or your :code:`requirements.txt` for pinned dependencies. + + - Container arguments, such as user name, database name, and ports have been unified across containers in `testcontainers/testcontainers-python#296 `__. You may have to update your code if you modify the default values. The unified arguments are :code:`username`, :code:`password`, :code:`dbname`, and :code:`port`. If a container exposes more than one port, the port name is :code:`[specific_name]_port`. + - Class-level configuration variables have been removed in `testcontainers/testcontainers-python#296 `__, and configuration variables should be specified using environment variables (as before) or specified in the constructor. + +The collection of packages currently supports the following features. .. toctree:: From d44ccad37431bbe1cffad7a515222d78721b0e92 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Tue, 11 Apr 2023 18:14:06 -0400 Subject: [PATCH 3/4] Update python package versions. --- arangodb/setup.py | 2 +- azurite/setup.py | 2 +- clickhouse/setup.py | 2 +- compose/setup.py | 2 +- core/setup.py | 2 +- elasticsearch/setup.py | 2 +- google/setup.py | 2 +- kafka/setup.py | 2 +- keycloak/setup.py | 2 +- localstack/setup.py | 2 +- meta/setup.py | 2 +- minio/setup.py | 2 +- mongodb/setup.py | 2 +- mssql/setup.py | 2 +- mysql/setup.py | 2 +- neo4j/setup.py | 2 +- nginx/setup.py | 2 +- opensearch/setup.py | 2 +- oracle/setup.py | 2 +- postgres/setup.py | 2 +- rabbitmq/setup.py | 2 +- redis/setup.py | 2 +- selenium/setup.py | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/arangodb/setup.py b/arangodb/setup.py index 2309bca7..7394d752 100644 --- a/arangodb/setup.py +++ b/arangodb/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-arangodb", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/azurite/setup.py b/azurite/setup.py index 18b10858..f452b6c9 100644 --- a/azurite/setup.py +++ b/azurite/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-azurite", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/clickhouse/setup.py b/clickhouse/setup.py index 004a151c..76e0b110 100644 --- a/clickhouse/setup.py +++ b/clickhouse/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-clickhouse", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/compose/setup.py b/compose/setup.py index bfe128e2..a08d669f 100644 --- a/compose/setup.py +++ b/compose/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-compose", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/core/setup.py b/core/setup.py index 0270c6de..6844a4e8 100644 --- a/core/setup.py +++ b/core/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-core", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/elasticsearch/setup.py b/elasticsearch/setup.py index 09d57cc6..e0307ce1 100644 --- a/elasticsearch/setup.py +++ b/elasticsearch/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-elasticsearch", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/google/setup.py b/google/setup.py index 10a1247d..a0c22e6d 100644 --- a/google/setup.py +++ b/google/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-gcp", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/kafka/setup.py b/kafka/setup.py index ac9412f7..f99ce8e6 100644 --- a/kafka/setup.py +++ b/kafka/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-kafka", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/keycloak/setup.py b/keycloak/setup.py index 13236ea5..df97fe78 100644 --- a/keycloak/setup.py +++ b/keycloak/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-keycloak", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/localstack/setup.py b/localstack/setup.py index 649104a7..2688e837 100644 --- a/localstack/setup.py +++ b/localstack/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-localstack", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/meta/setup.py b/meta/setup.py index 2dfba3a2..6c2ae0d3 100644 --- a/meta/setup.py +++ b/meta/setup.py @@ -20,7 +20,7 @@ setuptools.setup( name="testcontainers", - version="4.0.0rc1", + version="4.0.0", description=description, long_description=long_description, long_description_content_type="text/x-rst", diff --git a/minio/setup.py b/minio/setup.py index 93925707..e746340f 100644 --- a/minio/setup.py +++ b/minio/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-minio", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/mongodb/setup.py b/mongodb/setup.py index 0f8966c6..f728064d 100644 --- a/mongodb/setup.py +++ b/mongodb/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-mongodb", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/mssql/setup.py b/mssql/setup.py index c1fd7485..be5f13a2 100644 --- a/mssql/setup.py +++ b/mssql/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-mssql", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/mysql/setup.py b/mysql/setup.py index 4ca79d71..811e1b36 100644 --- a/mysql/setup.py +++ b/mysql/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-mysql", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/neo4j/setup.py b/neo4j/setup.py index ec2c30bb..2e7c7924 100644 --- a/neo4j/setup.py +++ b/neo4j/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-neo4j", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/nginx/setup.py b/nginx/setup.py index bb24ba3c..02054822 100644 --- a/nginx/setup.py +++ b/nginx/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-nginx", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/opensearch/setup.py b/opensearch/setup.py index 1e3db8c7..a6e48046 100644 --- a/opensearch/setup.py +++ b/opensearch/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-opensearch", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/oracle/setup.py b/oracle/setup.py index 0a6fd4e2..9069fd3b 100644 --- a/oracle/setup.py +++ b/oracle/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-oracle", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/postgres/setup.py b/postgres/setup.py index 1d9abd35..b90af377 100644 --- a/postgres/setup.py +++ b/postgres/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-postgres", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/rabbitmq/setup.py b/rabbitmq/setup.py index 853887ea..f8083558 100644 --- a/rabbitmq/setup.py +++ b/rabbitmq/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-rabbitmq", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/redis/setup.py b/redis/setup.py index 2e1131e5..d4202ea2 100644 --- a/redis/setup.py +++ b/redis/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-redis", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, diff --git a/selenium/setup.py b/selenium/setup.py index b2fff38f..685248a7 100644 --- a/selenium/setup.py +++ b/selenium/setup.py @@ -4,7 +4,7 @@ setup( name="testcontainers-selenium", - version="0.0.1rc1", + version="0.1.0", packages=find_namespace_packages(), description=description, long_description=description, From be3ccfe9aa1a12284b966b01bc104b1644e479c2 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Wed, 12 Apr 2023 17:06:40 -0400 Subject: [PATCH 4/4] Add note regarding updated `PubSubContainer`. --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index e941b384..33482076 100644 --- a/README.rst +++ b/README.rst @@ -16,6 +16,7 @@ testcontainers-python facilitates the use of Docker containers for functional an - Container arguments, such as user name, database name, and ports have been unified across containers in `testcontainers/testcontainers-python#296 `__. You may have to update your code if you modify the default values. The unified arguments are :code:`username`, :code:`password`, :code:`dbname`, and :code:`port`. If a container exposes more than one port, the port name is :code:`[specific_name]_port`. - Class-level configuration variables have been removed in `testcontainers/testcontainers-python#296 `__, and configuration variables should be specified using environment variables (as before) or specified in the constructor. + - The Google Cloud Pub/Sub client library was updated to v2 in `testcontainers/testcontainers-python#333 `__. This may result in breaking changes for users of the :class:`testcontainers.google.PubSubContainer`. The collection of packages currently supports the following features.