From 5fbdccc89f60c9e3c2967a1966fac57f6566fa54 Mon Sep 17 00:00:00 2001 From: Louis-Philippe VĂ©ronneau Date: Sun, 27 Nov 2022 16:11:22 -0500 Subject: Migrate away from setup.py and use PEP 612-style pyproject.toml Closes #240. --- pyproject.toml | 39 +++++++++++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 40 ---------------------------------------- 3 files changed, 39 insertions(+), 42 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..05f6090 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,39 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +py-modules = ['mpv'] + +[project] +name = "python-mpv" +version = "1.0.1" +description = "A python interface to the mpv media player" +readme = "README.rst" +authors = [{name = "jaseg", email = "github@jaseg.net"}] +license = {text = "GPLv3+"} +requires-python = ">=3.7" +keywords = ['mpv', 'library', 'video', 'audio', 'player', 'display', 'multimedia'] +classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'Environment :: X11 Applications', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', + 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', + 'Natural Language :: English', + 'Operating System :: POSIX', + 'Programming Language :: C', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Topic :: Multimedia :: Sound/Audio :: Players', + 'Topic :: Multimedia :: Video :: Display' +] + +[project.urls] +homepage = "https://github.com/jaseg/python-mpv" + +[project.optional-dependencies] +screenshot_raw = ["Pillow"] +test = ['xvfbwrapper'] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ddb7da9..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description_file = README.rst diff --git a/setup.py b/setup.py deleted file mode 100755 index eface0a..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 - -from setuptools import setup -from pathlib import Path - -setup( - name = 'python-mpv', - version = '1.0.1', - py_modules = ['mpv'], - description = 'A python interface to the mpv media player', - long_description = (Path(__file__).parent / 'README.rst').read_text(), - long_description_content_type = 'text/x-rst', - url = 'https://github.com/jaseg/python-mpv', - author = 'jaseg', - author_email = 'github@jaseg.net', - license = 'GPLv2+', - extras_require = { - 'screenshot_raw': ['Pillow'] - }, - tests_require = ['xvfbwrapper'], - test_suite = 'tests', - keywords = ['mpv', 'library', 'video', 'audio', 'player', 'display', - 'multimedia'], - python_requires='>=3.7', - classifiers = [ - 'Development Status :: 5 - Production/Stable', - 'Environment :: X11 Applications', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', - 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', - 'Natural Language :: English', - 'Operating System :: POSIX', - 'Programming Language :: C', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Topic :: Multimedia :: Sound/Audio :: Players', - 'Topic :: Multimedia :: Video :: Display'] -) -- cgit