Skip to content

Commit

Permalink
Upgrade to repo-config v0.7.5 with regenerated templates
Browse files Browse the repository at this point in the history
Manual removal of some files.

Signed-off-by: cwasicki <[email protected]>
  • Loading branch information
cwasicki committed Nov 30, 2023
1 parent 6ef2853 commit e388e25
Show file tree
Hide file tree
Showing 27 changed files with 604 additions and 295 deletions.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ body:
- Documentation (part:docs)
- Unit, integration and performance tests (part:tests)
- Build script, CI, dependencies, etc. (part:tooling)
# TODO(cookiecutter): Add other parts
# Please have in mind that that the part:xxx labels need to
# be created in the GitHub repository.
validations:
required: true
- type: textarea
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ blank_issues_enabled: true
contact_links:
- name: Ask a question ❓
url: https://github.com/frequenz-floss/frequenz-api-weather/discussions/new?category=support
# TODO(cookiecutter): Make sure the GitHub repository has a discussion category "Support"
# Rename the "Q&A" category to "Support" and change the emoji to 🆘 (SOS)
about: Use this if you are not sure how to do something, have installation problems, etc.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# License: MIT
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
# This Dockerfile is used to run the tests in arm64, which is not supported by
# GitHub Actions at the moment.

FROM docker.io/library/ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Python 3.11 and curl to install pip later
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get install --no-install-recommends -y \
ca-certificates \
curl \
git \
python3.11 \
python3.11-distutils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install pip
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11

RUN update-alternatives --install \
/usr/local/bin/python python /usr/bin/python3.11 1 && \
python -m pip install --upgrade --no-cache-dir pip

COPY entrypoint.bash /usr/bin/entrypoint.bash

ENTRYPOINT ["/usr/bin/entrypoint.bash"]
9 changes: 9 additions & 0 deletions .github/containers/nox-cross-arch/entrypoint.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# License: MIT
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
set -e

echo "System details:" $(uname -a)
echo "Machine:" $(uname -m)

exec "$@"
12 changes: 12 additions & 0 deletions .github/containers/test-installation/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# License: MIT
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
# This Dockerfile is used to test the installation of the python package in
# multiple platforms in the CI. It is not used to build the package itself.

FROM --platform=${TARGETPLATFORM} python:3.11-slim

RUN python -m pip install --upgrade --no-cache-dir pip

COPY dist dist
RUN pip install dist/*.whl && \
rm -rf dist
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
time: "07:00"
interval: "monthly"
day: "sunday"
labels:
- "part:tooling"
- "type:tech-debt"
Expand Down Expand Up @@ -34,8 +34,8 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
time: "06:00"
interval: "monthly"
day: "sunday"
labels:
- "part:tooling"
- "type:tech-debt"
Expand All @@ -52,8 +52,8 @@ updates:
ignore:
- dependency-name: "submodules/frequenz-api-common"
schedule:
interval: "weekly"
time: "06:00"
interval: "monthly"
day: "sunday"
labels:
- "part:tooling"
- "type:tech-debt"
3 changes: 3 additions & 0 deletions .github/keylabeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ labelMappings:
"part:tests": "part:tests"
"part:tooling": "part:tooling"
"part:❓": "part:❓"
# TODO(cookiecutter): Add other parts
# Please have in mind that that the part:xxx labels need to
# be created in the GitHub repository.
Loading

0 comments on commit e388e25

Please sign in to comment.