-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (34 loc) · 1.27 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
38
39
40
from typing import List
import setuptools
def read_multiline_as_list(file_path: str) -> List[str]:
with open(file_path) as fh:
contents = fh.read().split("\n")
if contents[-1] == "":
contents.pop()
return [c for c in contents if not c.startswith("--")]
with open("README.md", "r") as fh:
long_description = fh.read()
requirements = read_multiline_as_list("requirements.txt")
setuptools.setup(
name="positional-vectorizer",
author="Tiago Albineli Motta",
author_email="[email protected]",
version=open("VERSION").read(),
description="Positional Vectorizer is a scikit-learn transformer that converts text to bag of words vector using a positional ranking algorithm as score",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/timotta/positional-vectorizer",
packages=setuptools.find_packages(
include=["positional_vectorizer", "positional_vectorizer.*"]
),
license="new BSD",
include_package_data=True,
keywords="machine learning, embedding, vectorizer, scikit-learn, text, NLP",
entry_points={
"console_scripts": [
# '',
],
},
python_requires=">=3.10, <3.12",
install_requires=requirements,
)