Removing legacy build files setup.py and setup.cfg (#1711)
* Removing legacy build and dist files * Bumped requirement for setuptools to deal with dynamic license inclusion * Added dynamic versioning and licensing to pyproject.toml * Clarified the license according to the LICENSE file, GPL-3.0-only
This commit is contained in:
parent
1c6b0bae73
commit
dc5291f781
|
|
@ -1,14 +1,15 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=67"]
|
requires = ["setuptools>=67.5"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "archinstall"
|
name = "archinstall"
|
||||||
dynamic = ["version", "entry-points", "license"]
|
dynamic = ["version", "entry-points"]
|
||||||
description = "Arch Linux installer - guided, templates etc."
|
description = "Arch Linux installer - guided, templates etc."
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Anton Hvornum", email = "anton@hvornum.se"},
|
{name = "Anton Hvornum", email = "anton@hvornum.se"},
|
||||||
]
|
]
|
||||||
|
license = {text = "GPL-3.0-only"}
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|
||||||
|
|
@ -26,11 +27,24 @@ Home = "https://archlinux.org"
|
||||||
Documentation = "https://archinstall.readthedocs.io/"
|
Documentation = "https://archinstall.readthedocs.io/"
|
||||||
Source = "https://github.com/archlinux/archinstall"
|
Source = "https://github.com/archlinux/archinstall"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
doc = ["sphinx"]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
archinstall = "archinstall:run_as_a_module"
|
archinstall = "archinstall:run_as_a_module"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[tool.setuptools]
|
||||||
doc = ["sphinx"]
|
packages = ["archinstall", "profiles", "examples"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
archinstall = [
|
||||||
|
"examples/*.py",
|
||||||
|
"profiles/*.py",
|
||||||
|
"profiles/applications/*.py"
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = {attr = "archinstall.__version__"}
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
|
|
|
||||||
43
setup.cfg
43
setup.cfg
|
|
@ -1,43 +0,0 @@
|
||||||
[metadata]
|
|
||||||
name = archinstall
|
|
||||||
version = attr: archinstall.__version__
|
|
||||||
description = Arch Linux installer - guided, templates etc.
|
|
||||||
author = Anton Hvornum
|
|
||||||
author_email = anton@hvornum.se
|
|
||||||
long_description = file: README.md
|
|
||||||
long_description_content_type = text/markdown
|
|
||||||
keywords = linux, arch, archinstall, installer
|
|
||||||
license = GPL
|
|
||||||
license_files =
|
|
||||||
LICENSE
|
|
||||||
project_urls =
|
|
||||||
Source = https://github.com/archlinux/archinstall
|
|
||||||
Documentation = https://archinstall.readthedocs.io/
|
|
||||||
classifiers =
|
|
||||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
"Programming Language :: Python :: 3.10",
|
|
||||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
||||||
"Operating System :: POSIX :: Linux",
|
|
||||||
|
|
||||||
[options]
|
|
||||||
packages = find:
|
|
||||||
python_requires = >= 3.10
|
|
||||||
zip_safe = True
|
|
||||||
include_package_data = True
|
|
||||||
|
|
||||||
[options.packages.find]
|
|
||||||
include =
|
|
||||||
archinstall
|
|
||||||
archinstall.*
|
|
||||||
|
|
||||||
[options.package_data]
|
|
||||||
archinstall =
|
|
||||||
examples/*.py
|
|
||||||
profiles/*.py
|
|
||||||
profiles/applications/*.py
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
console_scripts =
|
|
||||||
archinstall = archinstall:run_as_a_module
|
|
||||||
Loading…
Reference in New Issue