[O] Moderize python build tool from setup-tools to hatchling
This commit is contained in:
parent
264cf11690
commit
063679b72d
3 changed files with 51 additions and 67 deletions
51
pyproject.toml
Normal file
51
pyproject.toml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "HyFetch"
|
||||
dynamic = ["version"]
|
||||
description = "neofetch with flags <3"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
{ name = "Azalea Gui", email = "me@hydev.org" },
|
||||
]
|
||||
license = "MIT"
|
||||
classifiers = [
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
]
|
||||
dependencies = [
|
||||
# Universal dependencies
|
||||
'typing_extensions; python_version < "3.8"',
|
||||
|
||||
# Windows dependencies
|
||||
'psutil ; platform_system=="Windows"',
|
||||
'colorama>=0.4.6 ; platform_system=="Windows"',
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/hykilpikonna/HyFetch"
|
||||
|
||||
[project.scripts]
|
||||
"hyfetch.v1" = "hyfetch.__main__:run_py"
|
||||
"hyfetch.rs" = "hyfetch.__main__:run_rust"
|
||||
"hyfetch" = "hyfetch.__main__:run_rust"
|
||||
|
||||
[tool.hatch.version]
|
||||
source = "regex"
|
||||
path = "Cargo.toml"
|
||||
regex = 'version = "(?P<version>.+?)"'
|
||||
|
||||
[tool.hatch.build]
|
||||
exclude = ["/tools"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.files]
|
||||
"{py_scripts}/neowofetch" = "hyfetch/scripts/neowofetch"
|
||||
Loading…
Add table
Add a link
Reference in a new issue