Skip to content

Commit

Permalink
5.1.3 pyperclipimg
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaM-TL committed Dec 22, 2024
1 parent e4beafa commit 6c8d656
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload FotoKilof Package to PyPI when a Release is Created

on:
release:
types: [published]

jobs:
publish-to-pypi:
name: Publish Package to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/FotoKilof
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: "Install build"
run: pip install build

- name: Build package
run: python -m build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh release upload '${{ github.pypi }}' dist/** --repo '${{ github.repository }}'
4 changes: 3 additions & 1 deletion fotokilof/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
import platform
import re
from PIL import Image
import pyperclipimg

if platform.system() != "Windows":
import subprocess

if platform.system() in ("Linux", "Darwin", "Windows"):
import pyperclipimg

module_logger = logging.getLogger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"ttkbootstrap",
"wand",
"pywin32; platform_system=='Windows'",
"pyperclipimg",
"pyperclipimg; platform_system=='Linux' or platform_system=='Darwin' or platform_system=='Windows'",
]
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 6c8d656

Please sign in to comment.