diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7ee4569 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,32 @@ +[build-system] +requires = ['setuptools>=61', 'setuptools_scm>=6.2'] +build-backend = 'setuptools.build_meta' + +[tool.setuptools] +packages = ['codearchiver', 'codearchiver.modules'] + +[tool.setuptools_scm] + +[project] +name = 'codearchive' +description = 'A VCS repository archival tool' +readme = 'README.md' +authors = [{name = 'JustAnotherArchivist'}] +classifiers = [ + 'Development Status :: 3 - Alpha', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', +] +dependencies = [ + 'requests[socks]', +] +requires-python = '~=3.9' +dynamic = ['version'] + +[project.urls] +repository = "https://gitea.arpa.li/JustAnotherArchivist/codearchiver" + +[project.scripts] +codearchiver = 'codearchiver.cli:main' diff --git a/setup.py b/setup.py deleted file mode 100644 index 79b5376..0000000 --- a/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -import setuptools - - -setuptools.setup( - name = 'codearchiver', - description = 'A VCS repository archival tool', - author = 'JustAnotherArchivist', - url = 'https://git.kiska.pw/JustAnotherArchivist/codearchiver', - classifiers = [ - 'Development Status :: 3 - Alpha', - 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - ], - packages = ['codearchiver', 'codearchiver.modules'], - python_requires = '~=3.9', - setup_requires = ['setuptools_scm'], - use_scm_version = True, - install_requires = ['requests[socks]'], - entry_points = { - 'console_scripts': [ - 'codearchiver = codearchiver.cli:main', - ], - }, -)