Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup repos #5

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "template-python",
"name": "workshop-azure-iot",
// https://mcr.microsoft.com/en-us/product/devcontainers/python/tags
"image": "mcr.microsoft.com/devcontainers/python:dev-3.10-bookworm",
"customizations": {
Expand All @@ -13,4 +13,4 @@
},
"postCreateCommand": "pipx install poetry && make install-deps-dev",
"remoteUser": "vscode"
}
}
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ features, by not reporting duplicate issues. Providing the following information
- **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
causing the problem (line of code or commit)

You can file new issues by providing the above information at the corresponding repository's issues link: https://github.com/ks6088ts/template-python/issues/new.
You can file new issues by providing the above information at the corresponding repository's issues link: https://github.com/ks6088ts-labs/workshop-azure-iot/issues/new.

### <a name="submit-pr"></a> Submitting a Pull Request (PR)

Before you submit your Pull Request (PR) consider the following guidelines:

- Search the repository https://github.com/ks6088ts/template-python/pulls for an open or closed PR that relates to your submission. You don't want to duplicate effort.
- Search the repository https://github.com/ks6088ts-labs/workshop-azure-iot/pulls for an open or closed PR that relates to your submission. You don't want to duplicate effort.

- Make your changes in a new git fork
- Commit your changes using a descriptive commit message
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Support Request
url: https://github.com/ks6088ts/template-python/issues
url: https://github.com/ks6088ts-labs/workshop-azure-iot/issues
about: Create an issue for support request or question relating to this repository
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ What kind of change does this Pull Request introduce?
- Get the code

```
git clone [email protected]:ks6088ts/template-python.git
cd template-python
git clone [email protected]:ks6088ts-labs/workshop-azure-iot.git
cd workshop-azure-iot
```

- Test the code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
GIT_REVISION=${{ github.sha }}
GIT_TAG=${{steps.set_version.outputs.no-dash}}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/template-python:${{steps.set_version.outputs.no-dash}}
${{ secrets.DOCKERHUB_USERNAME }}/template-python:latest
${{ secrets.DOCKERHUB_USERNAME }}/workshop-azure-iot:${{steps.set_version.outputs.no-dash}}
${{ secrets.DOCKERHUB_USERNAME }}/workshop-azure-iot:latest
2 changes: 1 addition & 1 deletion .github/workflows/ghcr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "v*"
env:
IMAGE_NAME: template-python
IMAGE_NAME: workshop-azure-iot
jobs:
ghcr:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

CMD ["python", "template_python/core.py"]
CMD ["python", "workshop_azure_iot/core.py"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ ci-test: install-deps-dev format-check lint test ## run CI tests
# Docker
# ---
DOCKER_REPO_NAME ?= ks6088ts
DOCKER_IMAGE_NAME ?= template-python
DOCKER_COMMAND ?= python template_python/core.py
DOCKER_IMAGE_NAME ?= workshop-azure-iot
DOCKER_COMMAND ?= python workshop_azure_iot/core.py

# Tools
TOOLS_DIR ?= $(HOME)/.local/bin
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![test](https://github.com/ks6088ts/template-python/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/ks6088ts/template-python/actions/workflows/test.yaml?query=branch%3Amain)
[![docker](https://github.com/ks6088ts/template-python/actions/workflows/docker.yaml/badge.svg?branch=main)](https://github.com/ks6088ts/template-python/actions/workflows/docker.yaml?query=branch%3Amain)
[![docker-release](https://github.com/ks6088ts/template-python/actions/workflows/docker-release.yaml/badge.svg)](https://github.com/ks6088ts/template-python/actions/workflows/docker-release.yaml)
[![ghcr-release](https://github.com/ks6088ts/template-python/actions/workflows/ghcr-release.yaml/badge.svg)](https://github.com/ks6088ts/template-python/actions/workflows/ghcr-release.yaml)
[![test](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/test.yaml?query=branch%3Amain)
[![docker](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/docker.yaml/badge.svg?branch=main)](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/docker.yaml?query=branch%3Amain)
[![docker-release](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/docker-release.yaml/badge.svg)](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/docker-release.yaml)
[![ghcr-release](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/ghcr-release.yaml/badge.svg)](https://github.com/ks6088ts-labs/workshop-azure-iot/actions/workflows/ghcr-release.yaml)

# template-python
# workshop-azure-iot

This is a template repository for Python

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "template-python"
name = "workshop-azure-iot"
version = "0.0.1"
description = "A GitHub template repository for Python"
authors = ["ks6088ts <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from template_python.core import hello_world
from workshop_azure_iot.core import hello_world


def test_hello_world_verbose(caplog):
Expand Down
File renamed without changes.
File renamed without changes.