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

use poetry #198

Merged
merged 2 commits into from
Feb 2, 2025
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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/python-3/.devcontainer/base.Dockerfile

# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
ARG VARIANT="3.10-bullseye"
ARG VARIANT="3.13-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
Expand Down
7 changes: 3 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.11-bullseye",
"VARIANT": "3.13-bullseye",
// Options
"NODE_VERSION": "none"
}
Expand All @@ -23,7 +23,6 @@
"settings": {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.pipenvPath": "/usr/local/py-utils/bin/pipenv",
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
Expand Down Expand Up @@ -60,7 +59,7 @@
"forwardPorts": [8000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pipenv install --dev",
"postCreateCommand": "poetry install",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
Expand All @@ -70,7 +69,7 @@
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/java:1": {
"version": "17"
"version": "21"
},
"ghcr.io/devcontainers/features/sshd": {}
}
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,21 @@ on:
workflow_call:

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.13"

jobs:
build-docs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "setup python ${{ env.PYTHON_VERSION }}"
uses: "actions/setup-python@v5"
- uses: "KyoriPowered/.github/.github/actions/setup-python-env@trunk"
with:
python-version: "${{ env.PYTHON_VERSION }}"
cache: "pipenv"
- name: "setup python / install pipenv"
run: "pip install pipenv"
- name: "setup python / dependencies"
run: "pipenv install"
runtime_version: "${{ env.PYTHON_VERSION }}"
activate_venv: true
- uses: "ammaraskar/sphinx-problem-matcher@master"
- name: "build docs"
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pipenv run make html
run: "make html"
- name: "store output"
uses: "actions/upload-artifact@v4"
with:
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/check-spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,22 @@ on:
pull_request:

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.13"

jobs:
check-spelling:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "setup python ${{ env.PYTHON_VERSION }}"
uses: "actions/setup-python@v5"
- name: "setup python"
uses: "KyoriPowered/.github/.github/actions/setup-python-env@trunk"
with:
python-version: "${{ env.PYTHON_VERSION }}"
cache: "pipenv"
- name: "setup python / install pipenv"
run: "pip install pipenv"
- name: "setup python / dependencies"
run: "pipenv install"
runtime_version: "${{ env.PYTHON_VERSION }}"
activate_venv: true
- name: "setup python / spelling problem matcher"
run: |
echo "::add-matcher::.github/sphinx-spelling-matcher.json"
- name: "run spellcheck"
run: |
pipenv run make spelling
run: "make spelling"

26 changes: 0 additions & 26 deletions Pipfile

This file was deleted.

Loading
Loading