forked from openlawlibrary/pygls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
101 lines (90 loc) · 3.46 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
############################################################################
# Copyright(c) Open Law Library. All rights reserved. #
# See ThirdPartyNotices.txt in the project root for additional notices. #
# #
# Licensed under the Apache License, Version 2.0 (the "License") #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http: // www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
############################################################################
import os
from setuptools import find_packages, setup
PACKAGE_NAME = 'pygls'
VERSION = '0.8.0'
AUTHOR = 'Open Law Library'
AUTHOR_EMAIL = '[email protected]'
DESCRIPTION = 'a pythonic generic language server (pronounced like "pie glass").'
KEYWORDS = 'python pythonic generic language server protocol'
LICENSE = 'Apache 2.0'
URL = 'https://github.com/openlawlibrary/pygls/tree/master/'
packages = find_packages()
print('packages:', packages)
package_root_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(package_root_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
development = [
"bandit==1.6.0", # Run locally: bandit -r ./pygls
"flake8==3.7.7", # Run locally: flake8
]
docs_require = [
"sphinx==2.0.1",
"sphinx_rtd_theme==0.4.3"
]
tests_require = [
"mock==3.0.5",
"pytest==4.5.0",
"pytest-asyncio==0.10.0"
]
# pip install pygls
# pip install pygls pygls[docs]
# pip install pygls pygls[test]
setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
keywords=KEYWORDS,
license=LICENSE,
packages=packages,
include_package_data=True,
data_files=[
('lib/site-packages/pygls', [
'./CHANGELOG.md',
'./LICENSE.txt',
'./README.md',
'ThirdPartyNotices.txt'
])
],
zip_safe=False,
install_requires=[],
extras_require={
'dev': development,
'docs': docs_require,
'test': tests_require,
},
tests_require=tests_require,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
)