Setup py formatting; docu changes; removed file

This commit is contained in:
itdominator 2023-11-12 00:06:58 -06:00
parent 818934e539
commit cb30a63a5b
4 changed files with 26 additions and 97 deletions

View File

@ -1,80 +0,0 @@
digraph "classes" {
charset="utf-8"
rankdir=BT
"0" [label="Array", shape="record"];
"1" [label="Boolean", shape="record"];
"2" [label="Class", shape="record"];
"3" [label="Command", shape="record"];
"4" [label="CompletionContext", shape="record"];
"5" [label="CompletionItem", shape="record"];
"6" [label="CompletionList", shape="record"];
"7" [label="CompletionTriggerKind", shape="record"];
"8" [label="Constant", shape="record"];
"9" [label="Constructor", shape="record"];
"10" [label="ContentModified", shape="record"];
"11" [label="Diagnostic", shape="record"];
"12" [label="DiagnosticRelatedInformation", shape="record"];
"13" [label="DiagnosticSeverity", shape="record"];
"14" [label="Enum", shape="record"];
"15" [label="EnumMember", shape="record"];
"16" [label="ErrorCodes", shape="record"];
"17" [label="Event", shape="record"];
"18" [label="Field", shape="record"];
"19" [label="File", shape="record"];
"20" [label="Function", shape="record"];
"21" [label="InsertTextFormat", shape="record"];
"22" [label="Interface", shape="record"];
"23" [label="InternalError", shape="record"];
"24" [label="InvalidParams", shape="record"];
"25" [label="InvalidRequest", shape="record"];
"26" [label="JsonRpcEndpoint", shape="record"];
"27" [label="Key", shape="record"];
"28" [label="LANGUAGE_IDENTIFIER", shape="record"];
"29" [label="Location", shape="record"];
"30" [label="LocationLink", shape="record"];
"31" [label="LspClient", shape="record"];
"32" [label="LspEndpoint", shape="record"];
"33" [label="Method", shape="record"];
"34" [label="MethodNotFound", shape="record"];
"35" [label="Module", shape="record"];
"36" [label="MyEncoder", shape="record"];
"37" [label="Namespace", shape="record"];
"38" [label="Null", shape="record"];
"39" [label="Number", shape="record"];
"40" [label="Object", shape="record"];
"41" [label="Operator", shape="record"];
"42" [label="Package", shape="record"];
"43" [label="ParameterInformation", shape="record"];
"44" [label="ParseError", shape="record"];
"45" [label="Position", shape="record"];
"46" [label="Property", shape="record"];
"47" [label="Range", shape="record"];
"48" [label="RequestCancelled", shape="record"];
"49" [fontcolor="red", label="ResponseError", shape="record"];
"50" [label="ServerNotInitialized", shape="record"];
"51" [label="SignatureHelp", shape="record"];
"52" [label="SignatureInformation", shape="record"];
"53" [label="String", shape="record"];
"54" [label="Struct", shape="record"];
"55" [label="SymbolInformation", shape="record"];
"56" [label="SymbolKind", shape="record"];
"57" [label="TextDocumentContentChangeEvent", shape="record"];
"58" [label="TextDocumentIdentifier", shape="record"];
"59" [label="TextDocumentItem", shape="record"];
"60" [label="TextDocumentPositionParams", shape="record"];
"61" [label="TextEdit", shape="record"];
"62" [label="TypeParameter", shape="record"];
"63" [label="UnknownErrorCode", shape="record"];
"64" [label="Variable", shape="record"];
"65" [label="VersionedTextDocumentIdentifier", shape="record"];
"66" [label="serverErrorEnd", shape="record"];
"67" [label="serverErrorStart", shape="record"];
"65" -> "58" [arrowhead="empty", arrowtail="none"];
"29" -> "55" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="location", style="solid"];
"45" -> "47" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="start", style="solid"];
"45" -> "47" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="end", style="solid"];
"47" -> "29" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="range", style="solid"];
"47" -> "30" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="originSelectionRange", style="solid"];
"47" -> "30" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="targetRange", style="solid"];
"47" -> "30" [arrowhead="diamond", arrowtail="none", fontcolor="green", label="targetSelectionRange", style="solid"];
}

View File

@ -20,8 +20,8 @@ sys.path.insert(0, os.path.abspath('..'))
# -- Project information -----------------------------------------------------
project = u'lsp'
copyright = u'2018, Yeger'
author = u'Yeger'
copyright = u'2023, ITDominator'
author = u'ITDominator'
# The short X.Y version
version = u''
@ -171,4 +171,4 @@ intersphinx_mapping = {'https://docs.python.org/': None}
# -- Options for todo extension ----------------------------------------------
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
todo_include_todos = True

View File

@ -1 +1 @@
enum ; python_version < '3.4'
enum ; python_version < '3.10'

View File

@ -1,12 +1,21 @@
#!/usr/bin/env python
# Python imports
import sys
# Lib imports
# Application imports
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
with open("README.md", "r") as fh:
long_description = fh.read()
class PyTest(TestCommand):
user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
@ -15,22 +24,22 @@ class PyTest(TestCommand):
self.pytest_args = []
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
import pytest # import here, cause outside the eggs aren't loaded
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name="PyLSPClient",
version="0.0.1",
author="ITDominator",
author_email="1itdominator@gmail.com",
description="Python LSP client implementation cloned from Avi Yeger's effoerts",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/yeger00/pylspclient",
packages=find_packages(),
tests_require=["pytest", "pytest_mock"],
cmdclass={"test": PyTest},
name = "PyLSPClient",
version = "0.0.1",
author = "ITDominator",
author_email = "1itdominator@gmail.com",
description = "Python LSP client implementation cloned from Avi Yeger's efforts",
long_description = long_description,
long_description_content_type = "text/markdown",
url = "https://code.itdominator.com/itdominator/PyLSPClient",
packages = find_packages(),
tests_require = ["pytest", "pytest_mock"],
cmdclass = {"test": PyTest},
)