diff --git a/.gitignore b/.gitignore index c18dd8d..5924a38 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ __pycache__/ +*.egg-info/ + diff --git a/LICENSE b/LICENSE index c98bf14..7d99338 100644 --- a/LICENSE +++ b/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 diff --git a/argclass.py b/argclass.py index e8fea69..1659e43 100644 --- a/argclass.py +++ b/argclass.py @@ -1,3 +1,4 @@ +# Copyright 2021-2025 Pavel Lutskov import typing from argparse import ArgumentParser from dataclasses import dataclass, MISSING diff --git a/pyproject.toml b/pyproject.toml index 2582f18..d1779d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 318f873..0000000 --- a/setup.cfg +++ /dev/null @@ -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