-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
37 lines (31 loc) · 1.13 KB
/
setup.py
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
35
36
37
import sys
import pathlib
try:
from skbuild import setup
except ImportError:
print(
"Please update pip, you need pip 10 or greater,\n"
" or you need to install the PEP 518 requirements in pyproject.toml yourself",
file=sys.stderr,
)
raise
from setuptools import find_packages
with open(pathlib.Path(__file__).parent.resolve() / "README.md", encoding="utf-8") as f:
long_description = f.read()
with open(pathlib.Path(__file__).parent.resolve() / "version.txt", "r", encoding="utf-8") as version_file:
version = version_file.read().strip()
setup(
name="vowpal-wabbit-next",
version=version,
description="Experimental python bindings for VowpalWabbit",
long_description=long_description,
long_description_content_type="text/markdown",
author="VowpalWabbit",
license="BSD-3-Clause",
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={"vowpal_wabbit_next": ["py.typed", "_core.pyi"]},
cmake_install_dir="src/vowpal_wabbit_next",
install_requires=["numpy", "typing_extensions; python_version=='3.7'", ],
python_requires=">=3.7",
)