Skip to content

Commit

Permalink
Squashed 'packages/JSONRPC/' content from commit c03664c
Browse files Browse the repository at this point in the history
git-subtree-dir: packages/JSONRPC
git-subtree-split: c03664ccbccf03d388d92434eefbd7b382da4192
  • Loading branch information
davidanthoff committed Jan 17, 2023
0 parents commit 7623b51
Show file tree
Hide file tree
Showing 21 changed files with 839 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fixes #.

For every PR, please check the following:
- [ ] End-user documentation check. If this PR requires end-user documentation in the Julia VS Code extension docs, please add that at https://github.com/julia-vscode/docs.
- [ ] Changelog mention. If this PR should be mentioned in the CHANGELOG for the Julia VS Code extension, please open a PR against https://github.com/julia-vscode/julia-vscode/blob/master/CHANGELOG.md with those changes.
22 changes: 22 additions & 0 deletions .github/workflows/jlpkgbutler-butler-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run the Julia Package Butler

on:
push:
branches:
- main
- master
schedule:
- cron: '0 */1 * * *'
workflow_dispatch:

jobs:
butler:
name: "Run Package Butler"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: davidanthoff/julia-pkgbutler@releases/v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ssh-private-key: ${{ secrets.JLPKGBUTLER_TOKEN }}
channel: stable
40 changes: 40 additions & 0 deletions .github/workflows/jlpkgbutler-ci-master-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run CI on main

on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8']
julia-arch: [x64, x86]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: ""
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: ./lcov.info
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}

36 changes: 36 additions & 0 deletions .github/workflows/jlpkgbutler-ci-pr-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run CI on PR

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8']
julia-arch: [x64, x86]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: ""
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: ./lcov.info
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/jlpkgbutler-codeformat-pr-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Code Formatting

on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/julia-codeformat@releases/v1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format files using DocumentFormat
title: '[AUTO] Format files using DocumentFormat'
body: '[DocumentFormat.jl](https://github.com/julia-vscode/DocumentFormat.jl) would suggest these formatting changes'
labels: no changelog
20 changes: 20 additions & 0 deletions .github/workflows/jlpkgbutler-compathelper-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run CompatHelper

on:
schedule:
- cron: '00 * * * *'
issues:
types: [opened, reopened]
workflow_dispatch:

jobs:
CompatHelper:
name: "Run CompatHelper.jl"
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
17 changes: 17 additions & 0 deletions .github/workflows/jlpkgbutler-tagbot-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:

jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.JLPKGBUTLER_TOKEN }}
branches: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
1 change: 1 addition & 0 deletions .jlpkgbutler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
template = "bach"
7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2020-2022 David Anthoff

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 changes: 19 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "JSONRPC"
uuid = "b9b8584e-8fd3-41f9-ad0c-7255d428e418"
authors = ["David Anthoff <anthoff@berkeley.edu>"]
version = "1.3.5-DEV"

[deps]
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"

[compat]
JSON = "0.20, 0.21"
julia = "1"

[targets]
test = ["Test", "Sockets"]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JSONRPC

An implementation for JSON RPC 2.0. See [the specification](https://www.jsonrpc.org/specification) for details.

Currently, only JSON RPC 2.0 is supported. This package can act as both a client & a server.
7 changes: 7 additions & 0 deletions src/JSONRPC.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module JSONRPC

import JSON, UUIDs

include("packagedef.jl")

end
Loading

0 comments on commit 7623b51

Please sign in to comment.