Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
- pytest to 8.1.1
- pytest-cov to 5.0.0
- pdoc to 14.4.0
  • Loading branch information
j4ckofalltrades committed Mar 30, 2024
1 parent e9a71b8 commit 401853e
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 54 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
environment:
name: "codecov"
steps:
- uses: "actions/checkout@master"
- uses: "actions/checkout@v4"

- name: "Setup Python"
uses: "actions/setup-python@master"
uses: "actions/setup-python@v4"
with:
python-version: "3.9"
python-version: "3.x"

- name: "Generate coverage report"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.x

- name: Generate docs
run: |
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Publish Python distribution to PyPI

on: push
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
build:
Expand All @@ -10,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Build a binary wheel and a source tarball
Expand All @@ -19,15 +23,13 @@ jobs:
poetry install
poetry build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
name: Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -39,7 +41,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -60,7 +62,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ see [Powerline Segment reference](https://powerline.readthedocs.io/en/master/con
- If adding the segment to the shell, edit `~/.config/powerline/themes/shell/default.json`.
- If adding the segment to the tmux status line, edit `~/.config/powerline/themes/tmux/default.json`.

### Alternative config location

If your Kubernetes config file is not in the default location `~/.kube/config`, you can point to it by setting
the value of the `$KUBECONFIG` environment variable to where your config file is.

### Toggle visibility

Toggle entire segment or specific section's visibility with the following environment variables:
Expand Down
68 changes: 34 additions & 34 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "powerline-k8s"
version = "1.5.2"
version = "1.5.3"
description = "A custom Powerline segment for displaying the current Kubernetes context and namespace"
authors = ["Jordan Duabe <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/j4ckofalltrades/powerline-k8s"
repository = "https://github.com/j4ckofalltrades/powerline-k8s"
documentation = "https://j4ckofalltrades.github.io/powerline-k8s"
keywords = ["powerline", "kubernetes"]

[tool.poetry.urls]
Expand All @@ -18,15 +23,11 @@ kubernetes = "^29.0.0"
powerline-status = "^2.7"

[tool.poetry.group.test.dependencies]
pytest = "^7.1.3"
pytest-cov = "^3.0.0"
pytest = "^8.1.1"
pytest-cov = "^5.0.0"

[tool.poetry.group.docs.dependencies]
pdoc = "^12.1.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
pdoc = "^14.4.0"

[tool.ruff]
exclude = [
Expand Down

0 comments on commit 401853e

Please sign in to comment.