Migrate to pyproject.toml for build
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
||||
__pycache__/
|
||||
*.egg-info/
|
||||
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -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
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2021-2025 Pavel Lutskov
|
||||
import typing
|
||||
from argparse import ArgumentParser
|
||||
from dataclasses import dataclass, MISSING
|
||||
|
||||
@@ -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]
|
||||
requires = [
|
||||
"setuptools>=42",
|
||||
"setuptools>=77",
|
||||
"setuptools-scm>=8",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools_scm]
|
||||
|
||||
[tool.black]
|
||||
line-length = 79
|
||||
target-version = ["py38"]
|
||||
target-version = ["py310"]
|
||||
|
||||
15
setup.cfg
15
setup.cfg
@@ -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
|
||||
Reference in New Issue
Block a user