diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index b1b1aed..0000000 --- a/.coveragerc +++ /dev/null @@ -1,3 +0,0 @@ -[run] -branch = true -include = pypi2pkgbuild.py diff --git a/lib/.gitignore b/lib/.gitignore deleted file mode 100644 index db57b8e..0000000 --- a/lib/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# This empty lib directory is used so that editable installs don't add the -# toplevel directory to sys.path. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e2240de --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[build-system] +requires = ["setuptools>=61", "setuptools_scm[toml]>=6.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "pypi2pkgbuild" +description = "A PyPI to PKGBUILD converter." +readme = "README.rst" +authors = [{name = "Antony Lee"}] +urls = {Repository = "https://github.com/anntzer/pypi2pkgbuild"} +license = {text = "MIT"} +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: MIT License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", + "Topic :: System :: Software Distribution", +] +requires-python = ">=3.8" +dynamic = ["version"] + +[tool.setuptools] +packages = [] +script-files = ["pypi2pkgbuild.py"] + +[tool.setuptools_scm] +version_scheme = "post-release" +local_scheme = "node-and-date" +fallback_version = "0+unknown" + +[tool.coverage.run] +branch = true +include = ["pypi2pkgbuild.py"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 996129b..0000000 --- a/setup.py +++ /dev/null @@ -1,28 +0,0 @@ -from setuptools import setup - - -setup( - name="pypi2pkgbuild", - description="A PyPI to PKGBUILD converter.", - long_description=open("README.rst", encoding="utf-8").read(), - url="https://github.com/anntzer/pypi2pkgbuild", - author="Antony Lee", - license="MIT", - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Console", - "Intended Audience :: System Administrators", - "License :: OSI Approved :: MIT License", - "Operating System :: POSIX :: Linux", - "Programming Language :: Python :: 3", - "Topic :: System :: Software Distribution", - ], - package_dir={"": "lib"}, - python_requires=">=3.8", - setup_requires=["setuptools_scm"], - use_scm_version=lambda: { # xref pypi2pkgbuild.py - "version_scheme": "post-release", - "local_scheme": "node-and-date", - }, - scripts=["pypi2pkgbuild.py"], -)