-
Notifications
You must be signed in to change notification settings - Fork 23
PR: Update package name, remove Python 2 compatibility and update CIs #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree t 8000 o our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
186cc42
Update package name, remove Python 2 compatibility and update CIs
andfoy 5675635
Rename action filenames
andfoy e83c2f3
Fix byte size on test_writer_bad_message
andfoy bde4f44
Install test environment
andfoy 44c84e0
Fix pylint issues
andfoy b7250e0
Fix minor issue
andfoy 6331a3e
More renaming
andfoy 9fac9d5
Fix test_writer on Windows
andfoy d4b656e
Remove unused import+
andfoy 9438d5c
Fix links and formatting in Readme
ccordoba12 6c82261
Move VERSION_INFO to _version.py
andfoy c953b52
Merge branch 'update_package_name' of github.com:andfoy/python-jsonrp…
andfoy ae671ae
Include _version in MANIFEST
andfoy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[run] | ||
omit = pyls_jsonrpc/_version.py | ||
omit = pylsp_jsonrpc/_version.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Static code analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Static code analysis | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: 'true' | ||
OS: 'linux' | ||
timeout-minutes: 2 | ||
steps: | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: static-pip-${{ hashFiles('setup.py') }} | ||
restore-keys: static-pip- | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
# TODO: check with Python 3, but need to fix the | ||
# errors first | ||
python-version: '3.6' | ||
architecture: 'x64' | ||
- run: python -m pip install --upgrade pip setuptools | ||
- run: pip install -e .[test] | ||
- name: Pylint checks | ||
run: pylint pylsp_jsonrpc test | ||
- name: Code style checks | ||
run: pycodestyle pylsp_jsonrpc test | ||
- name: Pyflakes checks | ||
run: pyflakes pylsp_jsonrpc test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Linux tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Linux Py${{ matrix.PYTHON_VERSION }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: 'true' | ||
OS: 'linux' | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- | ||
- uses: actions/checkout@v2 EDBE span> | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
architecture: 'x64' | ||
- run: python -m pip install --upgrade pip setuptools | ||
- run: pip install -e .[all,test] | ||
- run: pytest -v test/ | ||
# Enable this if SSH debugging is required | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# if: ${{ failure() }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Mac tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Mac Py${{ matrix.PYTHON_VERSION }} | ||
runs-on: macos-latest | ||
env: | ||
CI: 'true' | ||
OS: 'macos' | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/Library/Caches/pip | ||
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
architecture: 'x64' | ||
- run: python -m pip install --upgrade pip setuptools | ||
- run: pip install -e .[all,test] | ||
- run: pytest -v test/ | ||
# Enable this if SSH debugging is required | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# if: ${{ failure() }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Windows tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Win Py${{ matrix.PYTHON_VERSION }} | ||
runs-on: windows-latest | ||
env: | ||
CI: 'true' | ||
OS: 'win' | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~\AppData\Local\pip\Cache | ||
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} | ||
F438 restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
architecture: 'x64' | ||
- run: python -m pip install --upgrade pip setuptools | ||
- run: pip install -e .[all,test] | ||
- run: pytest -v test/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
include README.rst | ||
include versioneer.py | ||
include pyls_jsonrpc/_version.py | ||
include LICENSE | ||
include .pylintrc | ||
include pylsp_jsonrpc/_version.py | ||
recursive-include test *.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Python JSON RPC Server | ||
|
||
A Python 3.6+ server implementation of the [JSON RPC 2.0](http://www.jsonrpc.org/specification) protocol. This library has been pulled out of the [Python LSP Server](https://github.com/python-lsp/python-lsp-server) project. | ||
|
||
## Installation | ||
|
||
pip install -U python-jsonrpc-server | ||
|
||
## Examples | ||
|
||
The examples directory contains two examples of running language servers over websockets. `examples/langserver.py` shows how to run a language server in-memory. `examples/langserver_ext.py` shows how to run a subprocess language server, in this case the Python LSP Server. | ||
|
||
Start by installing `tornado` and `python-language-server` | ||
|
||
pip install python-lsp-server[all] tornado | ||
|
||
Then running `python examples/langserver.py` or `python examples/langserver_ext.py` will host a websocket on ``ws://localhost:3000/python``. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.