Skip to content

Commit ff8742f

Browse files
authored
Custom user agent (#121)
1 parent 20ba6b2 commit ff8742f

36 files changed

+1999
-1530
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM mcr.microsoft.com/vscode/devcontainers/python:3.9-bullseye
1+
FROM mcr.microsoft.com/devcontainers/python:2.0.2-3.12-trixie
22

3-
ENV PYTHONUNBUFFERED 1
3+
ENV PYTHONUNBUFFERED=1
44

55
# Update args in docker-compose.yaml to set the UID/GID of the "vscode" user.
66
ARG USER_UID=1000

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
},
7171
"features": {
7272
// details can be found here: https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
73-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
73+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {"moby": false}
7474
}
7575
}

.devcontainer/docker-compose.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
version: '3'
2-
31
services:
42
app:
53
build:
64
context: .
75
dockerfile: ./Dockerfile
86
args:
9-
# [Choice] Python version: 3, 3.8, 3.7, 3.6
10-
VARIANT: 3.9
117
# [Choice] Install Node.js
12-
INSTALL_NODE: "true"
8+
INSTALL_NODE: "false"
139
NODE_VERSION: "lts/*"
1410
PACKAGE_NAME: "ghga_connector"
1511
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
@@ -18,6 +14,7 @@ services:
1814

1915
init: true
2016

17+
# Makes testcontainers work on linux based hosts
2118
extra_hosts:
2219
- host.docker.internal:host-gateway
2320

@@ -39,22 +36,23 @@ services:
3936
# (Adding the "ports" property to this file will not forward from a Codespace.)
4037

4138
localstack:
42-
image: 'localstack/localstack:0.14.2'
39+
image: localstack/localstack
4340
environment:
4441
SERVICES: s3
4542
DEFAULT_REGION: eu-west-1
4643
AWS_DEFAULT_REGION: eu-west-1
4744
# accessible at localhost
4845
HOSTNAME_EXTERNAL: localhost
4946
USE_SSL: "false"
50-
DATA_DIR: /tmp/localstack/data
47+
DATA_DIR: /var/lib/localstack/data
5148
DEBUG: 1
5249
volumes:
5350
- type: volume
5451
source: s3_fs
55-
target: /tmp/localstack
52+
target: /var/lib/localstack
5653
volume:
5754
nocopy: true
5855
# useful ports: 4566 - AWS API
56+
5957
volumes:
6058
s3_fs: {}

.github/workflows/check_config_docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
id: checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Common steps
1717
id: common
1818
uses: ghga-de/gh-action-common@v6
19+
with:
20+
python-version: '3.12'
1921

2022
- name: Check config docs
2123
id: check-config-docs

.github/workflows/check_pyproject.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
id: checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Common steps
1717
id: common
1818
uses: ghga-de/gh-action-common@v6
19+
with:
20+
python-version: '3.12'
1921

2022
- name: Check pyproject.toml
2123
id: check-pyproject

.github/workflows/check_readme.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
id: checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Common steps
1717
id: common
1818
uses: ghga-de/gh-action-common@v6
19+
with:
20+
python-version: '3.12'
1921

2022
- name: Check README
2123
id: check-readme

.github/workflows/check_template_files.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
id: checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

16-
- name: Set up Python 3.12
16+
- name: Set up Python 3.13
1717
id: setup-python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
20-
python-version: '3.12'
20+
python-version: '3.13'
2121

2222
- name: Check template files
2323
id: check-template-files

.github/workflows/pypi_publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Set up Python 3.12
1616
uses: actions/setup-python@v5

.github/workflows/static_code_analysis.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
id: checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Common steps
1717
id: common
1818
uses: ghga-de/gh-action-common@v6
19+
with:
20+
python-version: '3.12'
1921

2022
- name: Run pre-commit
2123
uses: pre-commit/[email protected]

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ['3.9', '3.10', '3.11', '3.12']
14+
python-version: ['3.10', '3.11', '3.12']
1515

1616
steps:
1717
- name: Checkout repository
1818
id: checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
- name: Common steps
2222
id: common

0 commit comments

Comments
 (0)