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:
Andrew Hamilton 2024-12-10 22:54:35 +10:00
parent a6e802e852
commit e164f4e7d1
12 changed files with 303 additions and 87 deletions

14
fill3/pyproject.toml Normal file
View file

@ -0,0 +1,14 @@
[project]
name = "fill3"
version = "v2024.12.07"
description = "Fill3 provides basic widgets for a tui."
authors = [
{ name = "Andrew Hamilton", email = "and_hamilton@yahoo.com" },
]
requires-python = ">=3.11"
dependencies = [
"termstr @ git+https://gitlab.com/ahamilton/eris@v2024.12.07#subdirectory=termstr",
]
[project.urls]
Homepage = "https://github.com/ahamilton/eris"

View file

@ -1,19 +0,0 @@
#!/usr/bin/env python3.11
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="fill3",
version="v2024.12.07",
description=("Fill3 provides basic widgets for a tui."),
url="https://github.com/ahamilton/eris",
author="Andrew Hamilton",
author_email="and_hamilton@yahoo.com",
license="Artistic 2.0",
packages=["fill3"],
install_requires=["termstr @ git+https://gitlab.com/ahamilton/eris@v2024.12.07#subdirectory=termstr"])

27
fill3/uv.lock generated Normal file
View file

@ -0,0 +1,27 @@
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 = "fill3"
version = "2024.12.7"
source = { virtual = "." }
dependencies = [
{ name = "termstr" },
]
[package.metadata]
requires-dist = [{ name = "termstr", git = "https://gitlab.com/ahamilton/eris?subdirectory=termstr&rev=v2024.12.07" }]
[[package]]
name = "termstr"
version = "2024.12.7"
source = { git = "https://gitlab.com/ahamilton/eris?subdirectory=termstr&rev=v2024.12.07#a6e802e8522aa27551257b32590f045243a0785e" }
dependencies = [
{ name = "cwcwidth" },
]