Skip to content

Commit ef5d017

Browse files
committed
chore: migrate to pyproject.toml and github actions
1 parent 7070969 commit ef5d017

3 files changed

Lines changed: 63 additions & 24 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and Publish Python Package
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install Build Tool
25+
run: python -m pip install --upgrade pip build
26+
27+
- name: Build Wheel and Tarball
28+
run: python -m build
29+
30+
- name: Publish Package to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "streamcontroller-streamdeck"
7+
description = "Library to control Elgato StreamDeck devices."
8+
readme = "README.md"
9+
requires-python = ">=3.9"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Core447", email = "core447@proton.me"}
13+
]
14+
classifiers = [
15+
"Programming Language :: Python :: 3",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
]
19+
dependencies = []
20+
dynamic = ["version"]
21+
22+
[project.urls]
23+
Homepage = "https://github.com/StreamController/sc-python-elgato-streamdeck"
24+
25+
[tool.setuptools]
26+
include-package-data = true
27+
28+
[tool.setuptools.packages.find]
29+
where = ["src"]
30+
31+
[tool.setuptools.dynamic]
32+
version = {file = ["VERSION"]}

setup.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)