-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
101 lines (90 loc) · 2.97 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) FoundationaLLM. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from codecs import open
from setuptools import setup, find_packages
import sys
try:
from fllm_cli_bdist_wheel import cmdclass
except ImportError:
from distutils import log as logger
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}
VERSION = "1.0.0b5"
# If we have source, validate that our version numbers match
# This should prevent uploading releases with mismatched versions.
try:
with open('foundationallm/cli/__main__.py', 'r', encoding='utf-8') as f:
content = f.read()
except OSError:
pass
else:
import re
m = re.search(r'__version__\s*=\s*[\'"](.+?)[\'"]', content)
if not m:
print('Could not find __version__ in foundationallm/cli/__main__.py')
sys.exit(1)
if m.group(1) != VERSION:
print('Expected __version__ = "{}"; found "{}"'.format(VERSION, m.group(1)))
sys.exit(1)
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'License :: OSI Approved :: MIT License',
]
DEPENDENCIES = [
"antlr4-python3-runtime~=4.13.1",
'chardet~=3.0.4',
'colorama~=0.4.4',
# On Linux, the distribution (Ubuntu, Debian, etc) and version are checked for `fllm feedback`
'distro; sys_platform == "linux"',
'fabric~=2.4',
'javaproperties~=0.5.1',
'jsondiff~=2.0.0',
'packaging>=20.9',
'pycomposefile>=0.0.29',
'PyGithub~=1.38',
'PyNaCl~=1.5.0',
'scp~=0.13.2',
'semver==2.13.0',
'six>=1.10.0', # six is still used by countless extensions
'sshtunnel~=0.1.4',
'urllib3',
'websocket-client~=1.3.1',
'xmltodict~=0.12'
]
with open('README.rst', 'r', encoding='utf-8') as f:
README = f.read()
setup(
name='fllm-cli',
version=VERSION,
description='FoundationaLLM Command-Line Tools',
long_description=README,
license='MIT',
author='FoundationaLLM',
author_email='[email protected]',
url='https://github.com/solliancenet/fllm-cli',
zip_safe=False,
classifiers=CLASSIFIERS,
scripts=[
'fllm',
'fllm.completion.sh',
'fllm.bat',
'fllmps.ps1'
],
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=DEPENDENCIES,
python_requires='>=3.8.0',
package_data={
},
cmdclass=cmdclass
)