Migrate to pyproject.toml for build

This commit is contained in:
2025-05-14 21:33:34 +02:00
parent 4f8e111729
commit 81842e6d19
5 changed files with 29 additions and 18 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
__pycache__/ __pycache__/
*.egg-info/

View File

@@ -1,4 +1,4 @@
Copyright 2021 Pavel Lutskov Copyright 2021-2025 Pavel Lutskov
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in

View File

@@ -1,3 +1,4 @@
# Copyright 2021-2025 Pavel Lutskov
import typing import typing
from argparse import ArgumentParser from argparse import ArgumentParser
from dataclasses import dataclass, MISSING from dataclasses import dataclass, MISSING

View File

@@ -1,10 +1,33 @@
[project]
name = "argclass"
description = "A simple dataclass-based interface to Python's argparse"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{name = "Pavel Lutskov", email = "pavel.lutskov@gmail.com"},
]
requires-python = ">=3.10"
classifiers = [
"Private :: Do Not Upload",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dynamic = ["version"]
[project.urls]
Repository = "https://git.ltskv.de/pavel/argclass"
[build-system] [build-system]
requires = [ requires = [
"setuptools>=42", "setuptools>=77",
"setuptools-scm>=8",
"wheel" "wheel"
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.black] [tool.black]
line-length = 79 line-length = 79
target-version = ["py38"] target-version = ["py310"]

View File

@@ -1,15 +0,0 @@
[metadata]
name = argclass
version = 0.1.0
author = Pavel Lutskov
author_email = pavel.lutskov@gmail.com
description = A simple dataclass-based interface to Python's argparse
url = https://git.deguo.duckdns.org/pavel/argclass
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent
[options]
py_modules = argclass
python_requires = >=3.8