Skip to content

Commit

Permalink
Replaced setup.py with pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Simionato committed Feb 22, 2025
1 parent 0a1832e commit 7849ea6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 40 deletions.
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "decorator"
authors = [
{name = "Michele Simionato", email = "[email protected]"},
]
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__"
39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7849ea6

Please sign in to comment.