cplay-ng

simple curses audio player
git clone https://git.ce9e.org/cplay-ng.git

commit
b8f3b422d3a4a16e3c335b3b87bae0509836f017
parent
848e7c9e90814efb4b44e769b8fb8561dea5f33c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-11-04 10:36
replace setup.py by pyproject.toml

Diffstat

M .github/workflows/main.yml 3 ++-
A pyproject.toml 34 ++++++++++++++++++++++++++++++++++
D setup.py 34 ----------------------------------

3 files changed, 36 insertions, 35 deletions


diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml

@@ -15,8 +15,9 @@ jobs:
   15    15     steps:
   16    16     - uses: actions/checkout@v4
   17    17     - uses: actions/setup-python@v4
   -1    18     - run: python3 -m pip install build
   18    19     - name: build
   19    -1       run: python3 setup.py bdist_wheel sdist
   -1    20       run: python3 -m build
   20    21     - name: publish
   21    22       uses: pypa/gh-action-pypi-publish@release/v1
   22    23       with:

diff --git a/pyproject.toml b/pyproject.toml

@@ -0,0 +1,34 @@
   -1     1 [build-system]
   -1     2 requires = ["setuptools"]
   -1     3 build-backend = "setuptools.build_meta"
   -1     4 
   -1     5 [project]
   -1     6 name = "cplay-ng"
   -1     7 version = "5.2.0"
   -1     8 description = "A simple curses audio player"
   -1     9 readme = "README.rst"
   -1    10 license = {text = "GPLv2+"}
   -1    11 keywords = ["music-player", "curses"]
   -1    12 authors = [
   -1    13     {name = "Ulf Betlehem", email = "flu@iki.fi"}
   -1    14 ]
   -1    15 maintainers = [
   -1    16     {name = "Tobias Bengfort", email = "tobias.bengfort@posteo.de"}
   -1    17 ]
   -1    18 classifiers = [
   -1    19     "Development Status :: 5 - Production/Stable",
   -1    20     "Environment :: Console :: Curses",
   -1    21     "Intended Audience :: End Users/Desktop",
   -1    22     "Natural Language :: English",
   -1    23     "Operating System :: OS Independent",
   -1    24     "Programming Language :: Python",
   -1    25 ]
   -1    26 
   -1    27 [project.urls]
   -1    28 Homepage = "https://github.com/xi/cplay-ng"
   -1    29 
   -1    30 [project.scripts]
   -1    31 cplay-ng = "cplay:main"
   -1    32 
   -1    33 [tool.setuptools]
   -1    34 py-modules = ["cplay"]

diff --git a/setup.py b/setup.py

@@ -1,34 +0,0 @@
    1    -1 #!/usr/bin/env python
    2    -1 
    3    -1 from setuptools import setup
    4    -1 
    5    -1 README = open('README.rst').read()
    6    -1 
    7    -1 
    8    -1 setup(
    9    -1     name='cplay-ng',
   10    -1     version='5.2.0',
   11    -1     description='A simple curses audio player',
   12    -1     long_description=README,
   13    -1     url='https://github.com/xi/cplay-ng',
   14    -1     author='Ulf Betlehem',
   15    -1     author_email='flu@iki.fi',
   16    -1     maintainer='Tobias Bengfort',
   17    -1     maintainer_email='tobias.bengfort@posteo.de',
   18    -1     py_modules=['cplay'],
   19    -1     entry_points={'console_scripts': [
   20    -1         'cplay-ng=cplay:main',
   21    -1     ]},
   22    -1     license='GPLv2+',
   23    -1     classifiers=[
   24    -1         'Development Status :: 5 - Production/Stable',
   25    -1         'Environment :: Console :: Curses',
   26    -1         'Intended Audience :: End Users/Desktop',
   27    -1         'Natural Language :: English',
   28    -1         'Operating System :: OS Independent',
   29    -1         'Programming Language :: Python',
   30    -1         'License :: OSI Approved :: GNU General Public License v2 or later '
   31    -1             '(GPLv2+)',
   32    -1         'Topic :: Multimedia :: Sound/Audio :: Players',
   33    -1     ],
   34    -1 )