~dricottone/gap

d68765bf68abe3935d22010eeee285a67715bfdc — Dominic Ricottone 2 years ago 916e157
Migrate away from setup.py
4 files changed, 40 insertions(+), 27 deletions(-)

A pyproject.toml
D requirements.txt
A setup.cfg
D setup.py
A pyproject.toml => pyproject.toml +20 -0
@@ 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"


D requirements.txt => requirements.txt +0 -3
@@ 1,3 0,0 @@
setuptools>=47.1.1
toml>=0.10.1


A setup.cfg => setup.cfg +20 -0
@@ 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


D setup.py => setup.py +0 -24
@@ 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",
)