diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f9e66b0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = 'lostfiles' +version = '0.5.3' +description = 'A simple script to identify files not tracked by Portage package manager' +readme = 'README.md' +requires-python = '>=3.8' +keywords = ['gentoo', 'portage', 'maintenance'] +license = {file = 'LICENSE'} +authors = [ + {name = 'Michael Egger', email = 'egger.m@protonmail.com'}, +] + +[project.scripts] +lostfiles = "lostfiles:main" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 8c5eafb..0000000 --- a/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -from os import path - -from setuptools import setup - - -def read(filename: str) -> str: - """Helper to read README.""" - this_directory = path.abspath(path.dirname(__file__)) - with open(path.join(this_directory, filename), encoding="utf-8") as f: - return f.read() - - -setup( - name="lostfiles", - version="0.5.2", - author="Michael Egger", - author_email="egger.m@protonmail.com", - description="A simple script to identify files not tracked by Portage package manager.", - url="https://github.com/gcarq/portage-lostfiles", - license="GPL-2.0", - keywords="gentoo portage maintenance", - py_modules=["lostfiles"], - zip_safe=False, - long_description=read("README.md"), - long_description_content_type="text/markdown", - python_requires=">=3.8", - install_requires=['portage>=3,<4'], - classifiers=[ - "Topic :: Utilities", - "Environment :: Console", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ], - entry_points={"console_scripts": ["lostfiles=lostfiles:main"]}, -)