packaging: Use pyproject.toml files instead of setup.py
- Should at least work with pip and uv. - Also added uv.lock files.
This commit is contained in:
parent
a6e802e852
commit
e164f4e7d1
12 changed files with 303 additions and 87 deletions
15
termstr/pyproject.toml
Normal file
15
termstr/pyproject.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[project]
|
||||
name = "termstr"
|
||||
version = "v2024.12.07"
|
||||
description = "Termstr provides strings with extra terminal styling."
|
||||
authors = [
|
||||
{ name = "Andrew Hamilton", email = "and_hamilton@yahoo.com" },
|
||||
]
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"cwcwidth==0.1.5",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/ahamilton/eris"
|
||||
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/env python3.11
|
||||
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
|
||||
setup(name="termstr",
|
||||
version="v2024.12.07",
|
||||
description=("Termstr provides strings with extra terminal styling."),
|
||||
url="https://github.com/ahamilton/eris",
|
||||
author="Andrew Hamilton",
|
||||
author_email="and_hamilton@yahoo.com",
|
||||
license="Artistic 2.0",
|
||||
py_modules=["termstr"],
|
||||
install_requires=["cwcwidth==0.1.5"])
|
||||
19
termstr/uv.lock
generated
Normal file
19
termstr/uv.lock
generated
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version = 1
|
||||
requires-python = ">=3.11"
|
||||
|
||||
[[package]]
|
||||
name = "cwcwidth"
|
||||
version = "0.1.5"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/38/17/aadd0c6190dca91aa27c4d7e84d69d30fdf4966e7764247cdc395f8fe7d9/cwcwidth-0.1.5.tar.gz", hash = "sha256:2c840e7d85f6de45c45986b416d79312c91882e1121b78d4c347e49c4238c09d", size = 11071 }
|
||||
|
||||
[[package]]
|
||||
name = "termstr"
|
||||
version = "2024.12.7"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "cwcwidth" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [{ name = "cwcwidth", specifier = "==0.1.5" }]
|
||||
Loading…
Add table
Add a link
Reference in a new issue