diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..978df5a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "decorator" +authors = [ + {name = "Michele Simionato", email = "michele.simionato@gmail.com"}, +] +description = "Decorators for Humans" +readme = "README.rst" +dynamic = ["version"] +requires-python = ">=3.8" +keywords = ["decorators"] +license = {text = "BSD-2-Clause"} +classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: Implementation :: CPython', + 'Topic :: Software Development :: Libraries', + 'Topic :: Utilities'] + +[tool.setuptools.dynamic] +version.attr = "decorator.__version__" diff --git a/setup.py b/setup.py deleted file mode 100644 index 46b7c21..0000000 --- a/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -from setuptools import setup - -dic = dict(__file__=None) -exec(open('src/decorator.py').read(), dic) # extract the __version__ -VERSION = dic['__version__'] - - -if __name__ == '__main__': - setup(name='decorator', - version=VERSION, - description='Decorators for Humans', - long_description=open('README.rst').read(), - author='Michele Simionato', - author_email='michele.simionato@gmail.com', - url='https://github.com/micheles/decorator', - license="BSD-2-Clause", - package_dir={'': 'src'}, - py_modules=['decorator'], - keywords="decorators generic utility", - platforms=["All"], - python_requires='>=3.7', - classifiers=['Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Natural Language :: English', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.13', - 'Programming Language :: Python :: Implementation :: CPython', - 'Topic :: Software Development :: Libraries', - 'Topic :: Utilities'], - test_suite='tests', - zip_safe=False) diff --git a/src/decorator.py b/src/decorator.py index da3646c..406a9b5 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -41,7 +41,7 @@ from contextlib import _GeneratorContextManager from inspect import getfullargspec, iscoroutinefunction, isgeneratorfunction -__version__ = '5.1.1' +__version__ = '5.2.0' DEF = re.compile(r'\s*def\s*([_\w][_\w\d]*)\s*\(') POS = inspect.Parameter.POSITIONAL_OR_KEYWORD