-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
65 lines (58 loc) · 1.96 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
import re
from pathlib import Path
from setuptools import find_packages, setup
_dir = Path(__file__).resolve().parent
VERSION = _dir.joinpath("VERSION").open().read().strip()
README = _dir.joinpath("README.md").open().read()
def load_reqs(filename):
with open(filename) as reqs_file:
return [
# pin nucliadb-xxx to the same version as nucliadb
line.strip() + f"=={VERSION}"
if line.startswith("nucliadb-") and "=" not in line
else line.strip()
for line in reqs_file.readlines()
if not (
re.match(r"\s*#", line) or re.match("-e", line) or re.match("-r", line)
)
]
requirements = load_reqs("requirements.txt")
setup(
name="nuclia",
version=VERSION,
long_description=README,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
],
url="https://nuclia.com",
author="Nuclia",
keywords="search, semantic, AI",
author_email="[email protected]",
python_requires=">=3.8, <4",
license="BSD",
zip_safe=True,
include_package_data=True,
package_data={"": ["*.txt", "*.md"], "nucliadb": ["py.typed"]},
packages=find_packages(),
install_requires=requirements,
entry_points={
"console_scripts": [
# Service commands
# Standalone
"nuclia = nuclia.cli.run:run",
]
},
project_urls={
"Nuclia": "https://nuclia.com",
"Github": "https://github.com/nuclia/nucliadb",
"Slack": "https://join.slack.com/t/nuclia-community/shared_invite/zt-2ldfznncw-LW6GJjOicdEA18kgI~95Xw",
},
)