Switch from pip venv to uv

This commit is contained in:
2025-11-26 19:21:48 -08:00
committed by =michael hohn
parent fe026416c5
commit bb2d9797db
6 changed files with 572 additions and 25 deletions

View File

@@ -1,13 +1,24 @@
from pathlib import Path
import tomllib
from setuptools import setup, find_packages
import glob
def load_dependencies() -> list[str]:
"""Read the dependency list directly from pyproject.toml for consistency."""
pyproject_path = Path(__file__).with_name("pyproject.toml")
if not pyproject_path.exists():
return []
data = tomllib.loads(pyproject_path.read_text())
return data.get("project", {}).get("dependencies", [])
setup(
name='mrvahepc',
version='0.1.0',
description='A Python package for serving CodeQL databases',
author='Michael Hohn',
author_email='hohn@github.com',
packages=['mrvahepc'],
install_requires=[],
scripts=glob.glob("bin/mc-*"),
name="mrvahepc",
version="0.1.0",
description="A Python package for serving CodeQL databases",
author="Michael Hohn",
author_email="hohn@github.com",
packages=find_packages(),
install_requires=load_dependencies(),
scripts=["bin/mc-hepc-init", "bin/mc-hepc-serve"],
)