From d68765bf68abe3935d22010eeee285a67715bfdc Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Sun, 20 Feb 2022 11:14:13 -0600 Subject: [PATCH] Migrate away from setup.py --- pyproject.toml | 20 ++++++++++++++++++++ requirements.txt | 3 --- setup.cfg | 20 ++++++++++++++++++++ setup.py | 24 ------------------------ 4 files changed, 40 insertions(+), 27 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt create mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..09d6c9f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "gap" +description = "Generated argument parser" +readme = "README.md" +version = "1.0.2" +authors = [ { name = "Dominic Ricottone", email = "me@dominic-ricottone.com" } ] +urls = { source = "git.dominic-ricottone.com/gap" } +license = { file = "LICENSE.md" } +requires-python = ">=3.6" +dependencies = [ + "toml >= 0.10.2", +] + +[project.scripts] +gap = "gap.__main__:main" + diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index f81db54..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -setuptools>=47.1.1 -toml>=0.10.1 - diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..214160f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,20 @@ +[metadata] +name = gap +version = 1.0.2 +description = Generated argument parser +long_description = file: README.md +license = GPL +author = Dominic Ricottone +author_email = me@dominic-ricottone.com +url = git.dominic-ricottone.com/gap + +[options] +packages = gap +python_requires = >= 3.6 +install_requires = + toml >= 0.10.2 + +[options.entry_points] +console_scripts = + gap = gap.__main__:main + diff --git a/setup.py b/setup.py deleted file mode 100644 index 3643713..0000000 --- a/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python3 - -from setuptools import setup - -long_description = None -with open('README.md', encoding='utf-8') as f: - long_description = f.read() - -setup( - name="gap", - packages=["gap"], - version="1.0.1", - license="GPL", - description="Generated argument parser", - long_description=long_description, - long_description_content_type='text/markdown', - author="Dominic Ricottone", - author_email="me@dominic-ricottone.com", - url="git.dominic-ricottone.com/gap", - entry_points={"console_scripts": ["gap = gap.__main__:main"]}, - install_requires=["toml>=0.10.1"], - python_requires=">=3.6", -) - -- 2.45.2