From f03815055c4fae8acf8a00db0030223cbd375054 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 26 Jan 2024 20:08:02 +0100 Subject: build:convert from setup.py to pyproject.toml --- pyproject.toml | 28 ++++++++++++++++++++++++++++ setup.py | 34 ---------------------------------- 2 files changed, 28 insertions(+), 34 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..547984d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "epubgrep" +version = "0.9.0" +authors = [{name = "Matěj Cepl", email = "mcepl@cepl.eu"}] +description = "Grep through EPub files" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.7", + "Environment :: Console", + "Intended Audience :: Information Technology", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries :: Python Modules", +] +urls = {Homepage = "https://git.cepl.eu/cgit/epubgrep"} +dependencies = ["epub_meta"] + +[project.scripts] +epubgrep = "epubgrep:main" diff --git a/setup.py b/setup.py deleted file mode 100644 index 244815c..0000000 --- a/setup.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python3 - -from setuptools import setup, find_packages - -setup( - name="epubgrep", - version="0.8.0", - description='Grep through EPub files', - author=u'Matěj Cepl', - author_email='mcepl@cepl.eu', - url='https://gitlab.com/mcepl/epubgrep', - packages=find_packages(), - test_suite='tests', - install_requires=['epub_meta'], - entry_points={ - 'console_scripts': [ - 'epubgrep=epubgrep:main', - ], - }, - classifiers=[ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.7", - "Environment :: Console", - "Intended Audience :: Information Technology", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Topic :: Software Development :: Libraries :: Python Modules", - ], -) -- cgit