diff --git a/Dockerfile-3.13 b/Dockerfile-3.12 similarity index 96% rename from Dockerfile-3.13 rename to Dockerfile-3.12 index 2a4bfd2..252e556 100644 --- a/Dockerfile-3.13 +++ b/Dockerfile-3.12 @@ -1,4 +1,4 @@ -FROM python:3.13-alpine as base +FROM python:3.12-alpine as base RUN mkdir /src WORKDIR /src diff --git a/Makefile b/Makefile index 01068ef..5140a3f 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,25 @@ -export PYTHON_VERSIONS := 3.13 +export PYTHON_VERSIONS := 3.12 .PHONY: dev-build dev-build: ## Create the docker image for you dev environment. - docker-compose build + docker compose --profile "*" build .PHONY: dev-clean dev-clean: ## Remove all the docker containers for this project. - docker-compose down --rmi local --volumes + docker compose --profile "*" down --rmi local --volumes .PHONY: dev-setup ## Basic environment configuration dev-setup: build-scripts/ca-certs/export-certs +.PHONY: dev-shell +dev-shell: ## Start a shell in the dev container + docker compose run release sh + .PHONY: dev-test dev-test: ## Run the tests. for PYTHON_VERSION in ${PYTHON_VERSIONS} ; do \ - docker-compose run --rm "hubble-shuttle-$$PYTHON_VERSION" python -m unittest discover ; \ + docker compose run --rm "hubble-shuttle-$$PYTHON_VERSION" python -m unittest discover ; \ done .PHONY: build diff --git a/README.md b/README.md index 8a057c6..5059d6f 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ pip install hubble_shuttle ### Supported Python versions -Shuttle is build and tested with Python 3.13. +Shuttle is build and tested with Python 3.12. ## Client-level configuration diff --git a/build-scripts/ca-certs/export-certs b/build-scripts/ca-certs/export-certs index d81766a..0fc7672 100755 --- a/build-scripts/ca-certs/export-certs +++ b/build-scripts/ca-certs/export-certs @@ -13,7 +13,7 @@ if command -v security 2>&1 >/dev/null then # macOS: `security` command allows for exporting certs echo "Exporting macOS root certificate store to $export_path..." - security find-certificate -a -c ysi-YSIFWCERT01-CA -p > $export_path + security find-certificate -a -p > $export_path else echo "Exporting certificates is unsupported on this platform." exit 1 diff --git a/docker-compose.yml b/docker-compose.yml index 28840cf..de01c2f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,9 @@ services: - hubble-shuttle-3.13: - container_name: hubble-shuttle-3.13 + hubble-shuttle-3.12: + container_name: hubble-shuttle-3.12 build: context: . - dockerfile: Dockerfile-3.13 + dockerfile: Dockerfile-3.12 target: dev profiles: - dev @@ -18,7 +18,7 @@ services: release: build: context: . - dockerfile: Dockerfile-3.13 + dockerfile: Dockerfile-3.12 target: release profiles: - release diff --git a/pyproject.toml b/pyproject.toml index e92e43c..180fc80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] description = "Hubble's Shuttle" readme = "README.md" -requires-python = ">=3.13" +requires-python = ">=3.12" dependencies = [ "requests>2.32.0", ]