Publish package to pypi

This commit is contained in:
Xoconoch
2025-08-15 19:51:54 -05:00
parent ff8e63e8c0
commit 11564b0543
5 changed files with 63 additions and 0 deletions

35
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Publish to PyPI
on:
push:
tags:
- "v*.*.*" # Triggers only on version tags
permissions:
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

3
pyproject.toml Normal file
View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

25
setup.cfg Normal file
View File

@@ -0,0 +1,25 @@
[metadata]
name = spotizerr-auth
version = 1.0.0
author = spotizerr-dev
description = A Spotizerr authentication utility for configuring Spotify credentials
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Xoconoch/spotizerr-auth
license = GPL-3.0-or-later
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Operating System :: OS Independent
[options]
packages = find:
python_requires = >=3.7
install_requires =
librespot-spotizerr==0.3.0
requests
rich
[options.entry_points]
console_scripts =
spotizerr-auth=spotizerr_auth.main:main

View File