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

docs: Fix double logo on PyPI #1043

Merged
merged 4 commits into from
May 9, 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
10 changes: 9 additions & 1 deletion .github/workflows/python-sshnpd-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ jobs:
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # v3.0.0
with:
poetry-version: '1.8.2'


# The dark mode and light mode Atsign logos in the GitHub README don't
# show properly on PyPI so we have a copy of the README.md in
# README.PyPI.md with just the light mode logo.
# This step checks that we don't have drift between the docs.
- name: Check that READMEs are in sync
run: |
diff <(tail -n +2 README.md) <(tail -n +2 README.PyPI.md)

- name: Build using Poetry
working-directory: packages/python/sshnpd
run: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/python_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Python tests
on:
pull_request:
paths:
- 'packages/python/**'

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
with:
src: './packages/python'
22 changes: 3 additions & 19 deletions .github/workflows/update_python_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
pull_request:
paths:
- 'packages/python/sshnpd/pyproject.toml'
- 'examples/automations/python/sshnoports_automation_python/pyproject.toml'
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -47,23 +46,8 @@ jobs:
echo 'No changes to commit on this run'
exit 0
else
git commit -m "build(deps): Bump sshnpd requirements.txt"
git push
fi

- name: Bump sshnoports_automation_python Python dependencies
working-directory: examples/automations/python
if: ${{ github.actor == 'dependabot[bot]' }}
run: |
poetry update
poetry export --format requirements.txt --output requirements.txt
git config --global user.name 'dependabot[bot]'
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
git add requirements.txt
if [ -z "$(git status --porcelain)" ]; then
echo 'No changes to commit on this run'
exit 0
else
git commit -m "build(deps): Bump sshnoports_sdk requirements.txt"
poetry version patch
git add pyproject.toml
git commit -m "build(deps): Bump sshnpd requirements.txt and poetry version"
git push
fi
1 change: 0 additions & 1 deletion examples/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions examples/automations/python/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions examples/automations/python/pyproject.toml

This file was deleted.

131 changes: 0 additions & 131 deletions examples/automations/python/requirements.txt

This file was deleted.

This file was deleted.

This file was deleted.

Loading