-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (27 loc) · 1.08 KB
/
setup.py
File metadata and controls
34 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from pathlib import Path
from setuptools import find_packages, setup
def parse_requirements(path: str) -> list[str]:
"""Return non-empty, non-comment requirement lines."""
reqs = []
for line in Path(path).read_text(encoding="utf-8").splitlines():
line = line.strip()
if line and not line.startswith("#"):
reqs.append(line)
return reqs
setup(
name="spider",
version="0.1.0",
description="Add your description here",
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
python_requires=">=3.12",
packages=find_packages(include=["spider", "spider.*"]),
include_package_data=True,
install_requires=parse_requirements("requirements.txt"),
extras_require={"dev": ["ruff>=0.13.2"]},
entry_points={"console_scripts": ["spider-mjwp=examples.run_mjwp:main"]},
)