Skip to content

Commit

Permalink
replace setup.py by pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Nov 4, 2023
1 parent 848e7c9 commit 6c2c12a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- run: python3 -m pip install build
- name: build
run: python3 setup.py bdist_wheel sdist
run: python3 -m build
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "cplay-ng"
version = "5.2.0"
description = "A simple curses audio player"
readme = "README.rst"
license = { text = "GPLv2+" }
keywords = ["music-player", "curses"]
authors = [
{name = "Ulf Betlehem", email = "[email protected]"},
]
maintainers = [
{name = "Tobias Bengfort", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
]

[project.urls]
Homepage = "https://github.com/xi/cplay-ng"

[project.scripts]
cplay-ng = "cplay:main"

[tool.setuptools]
py-modules = ["cplay"]
34 changes: 0 additions & 34 deletions setup.py

This file was deleted.

0 comments on commit 6c2c12a

Please sign in to comment.