Skip to content

Commit

Permalink
package unreal-qt and release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdelbeke committed Jul 4, 2023
1 parent 8abb60c commit dce4db3
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/p/unreal-qt

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
#build-backend = "setuptools.build_meta"


[tool.setuptools]
packages = ["unreal_qt"]


[project]
name = "unreal-qt"
authors = [
{name = "Hannes D"},
]
description = "A Qt manager for Unreal that enables the use of PyQt & PySide in Unreal Engine"
readme = "README.md"
requires-python = ">=3.4"
keywords = ["application", "unreal", "pyside", "pyqt", "qt", "engine", "unrealengine"]
#license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3.7",
]
#dynamic = ["dependencies"]
dependencies = ['importlib-metadata; python_version<"3.7"']
#dynamic = ["version"]
version = "0.0.1"

#[project.optional-dependencies]
#yaml = ["pyyaml"]

#[project.scripts]
#my-script = "my_package.module:function"

[project.urls]
Homepage = "https://github.com/hannesdelbeke/unreal-qt"
Source = "https://github.com/hannesdelbeke/unreal-qt"

0 comments on commit dce4db3

Please sign in to comment.