Switch from pip venv to uv
This commit is contained in:
29
setup.py
29
setup.py
@@ -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"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user