diff --git a/pyproject.toml b/pyproject.toml index 994ea1a..8dceeb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,48 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "click-man" +authors = [ + {name = "Timo Furrer", email = "tuxtimo@gmail.com"}, +] +maintainers = [ + {name = "Timo Furrer", email = "tuxtimo@gmail.com"}, + {name = "Stephen Finucane", email = "stephen@that.guru"}, +] +description = "Generate man pages for click based CLI applications" +readme = {file = "README.md", content-type="text/markdown"} +requires-python = ">=3.9" +license = {text = "MIT"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Documentation", +] +dependencies = [ + "click", +] +version = "0.5.0" + +[project.scripts] +click-man = "click_man.__main__:cli" + +[project.urls] +Source = "https://github.com/click-contrib/click-man" + +# [tool.setuptools] +# include-package-data = false + +[tool.setuptools.packages.find] +include = ["click_man*"] +exclude = ["tests*"] +namespaces = false + [tool.ruff] line-length = 79 diff --git a/setup.py b/setup.py deleted file mode 100644 index 97e7b50..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -import os -from setuptools import setup, find_packages - - -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() - - -setup( - name='click-man', - version='0.4.2', - url='https://github.com/click-contrib/click-man', - license='MIT', - description='Generate man pages for click based CLI applications', - long_description=read('README.md'), - long_description_content_type='text/markdown', - author='Timo Furrer', - author_email='tuxtimo@gmail.com', - install_requires=[ - 'click', - ], - packages=find_packages(exclude=('tests',)), - entry_points={ - 'console_scripts': [ - 'click-man = click_man.__main__:cli', - ] - }, - python_requires='>=3.9', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3 :: Only', - 'Topic :: Documentation', - ], -)