diff --git a/PKGBUILD b/PKGBUILD index 4be6883..fa8e05a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -12,8 +12,7 @@ license=('GPL-3.0-or-later') makedepends=('git' 'python-setuptools' 'python-build' - 'python-installer' - 'python-wheel') + 'python-installer') depends=('python>=3.10' 'rsync' 'python-dotenv') diff --git a/pyproject.toml b/pyproject.toml index 75e0100..2da4466 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,51 @@ [build-system] -requires = ['setuptools'] +requires = ['setuptools>=77'] build-backend = 'setuptools.build_meta' + +[project] +name = "simple_backup" +dynamic = ["version"] +description = "Simple backup script that uses rsync to copy files" +readme = "README.md" +requires-python = ">=3.10" +license = "GPL-3.0-or-later" +license-files = ["LICENSE"] +authors = [ + { name = "Daniele Fucini", email = "dfucini@gmail.com" } +] +maintainers = [ + { name = "Daniele Fucini", email = "dfucini@gmail.com" } +] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Natural Language :: English", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Topic :: System :: Archiving :: Backup", +] +dependencies = [ + "python-dotenv", +] + +[project.optional-dependencies] +JOURNAL = ["systemd-python"] +NOTIFICATIONS = ["dbus-python"] +REMOTE = ["paramiko"] + +[project.urls] +Homepage = "https://git.shouldnt.work/fuxino/simple_backup" + +[project.scripts] +simple_backup = "simple_backup.simple_backup:simple_backup" + +[tool.setuptools] +packages = ["simple_backup"] + +[tool.setuptools.dynamic] +version = { attr = "simple_backup.__version__" } diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index e5e0c65..0000000 --- a/setup.cfg +++ /dev/null @@ -1,39 +0,0 @@ -[metadata] -name = simple_backup -version = attr: simple_backup.__version__ -description = Simple backup script using rsync -long_description = file: README.md -author = Daniele Fucini -author_email = dfucini@gmail.com -license = GPL3 -url = https://git.shouldnt.work/fuxino -classifiers = - Development Status :: 4 - Beta - Environment :: Console - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Natural Language :: English - Operating System :: POSIX :: Linux - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Topic :: System :: Archiving :: Backup - -[options] -packages = simple_backup -python_requires = >=3.10 -install_requires = - python-dotenv - -[options.extras_require] -JOURNAL = - systemd-python -NOTIFICATIONS = - dbus-python -REMOTE = - paramiko - -[options.entry_points] -console_scripts = - simple_backup = simple_backup.simple_backup:simple_backup -