Spaces:
Sleeping
Sleeping
Download setup.py from darshhh32/nutrivision-ai: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/setup.py
- Command line
-
hf download hf://spaces/darshhh32/nutrivision-ai/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/setup.py
1.65 kB
| """Packaging configuration for NutriVision AI. | |
| Installs the ``nutrivision`` package (under ``src/``) in editable mode so | |
| that modules can be imported as ``from nutrivision.<module> import ...`` | |
| from anywhere in the project. | |
| Usage | |
| ----- | |
| pip install -e . | |
| """ | |
| from pathlib import Path | |
| from setuptools import find_packages, setup | |
| ROOT = Path(__file__).parent | |
| LONG_DESCRIPTION = (ROOT / "README.md").read_text(encoding="utf-8") if (ROOT / "README.md").exists() else "" | |
| def _read_requirements() -> list: | |
| """Parse requirements.txt, ignoring comments and blank lines.""" | |
| req_file = ROOT / "requirements.txt" | |
| requirements = [] | |
| for line in req_file.read_text(encoding="utf-8").splitlines(): | |
| line = line.strip() | |
| if line and not line.startswith("#"): | |
| requirements.append(line) | |
| return requirements | |
| setup( | |
| name="nutrivision-ai", | |
| version="1.0.0", | |
| author="NAVANEETH Y", | |
| author_email="core.kathaai@gmail.com", | |
| description=( | |
| "Intelligent Food Recognition, Nutrient Analysis and Quality " | |
| "Monitoring System for Government School Mid-Day Meals." | |
| ), | |
| long_description=LONG_DESCRIPTION, | |
| long_description_content_type="text/markdown", | |
| package_dir={"": "src"}, | |
| packages=find_packages(where="src"), | |
| python_requires=">=3.9", | |
| install_requires=_read_requirements(), | |
| include_package_data=True, | |
| classifiers=[ | |
| "Programming Language :: Python :: 3", | |
| "Programming Language :: Python :: 3.10", | |
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | |
| "Topic :: Scientific/Engineering :: Image Recognition", | |
| ], | |
| ) | |