Skip to content
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 to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master #1

Merged
merged 122 commits into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
7a9674e
fix: correct spell mistakes
su-chang Apr 22, 2020
1d8da8b
0.13.10
su-chang Apr 22, 2020
402b8f5
This is a breaking change!
huan Apr 22, 2020
5945ff6
Merge pull request #56 from su-chang/spell-mistake
huan Apr 22, 2020
2274b82
change python proto package name
wj-Mcat Apr 27, 2020
53a2583
update the version of chatie_grpc
wj-Mcat Apr 29, 2020
5d3f6b2
Merge pull request #58 from wj-Mcat/master
huan Apr 29, 2020
f65267a
try to install request (https://github.com/grpc/grpc-node/issues/922#…
huan Apr 29, 2020
6db029d
0.15.2
huan Apr 29, 2020
7170d37
add grpc debug client link
huan May 5, 2020
9d56f6a
update setup.py to fix pypi bug (#59)
wj-Mcat May 6, 2020
95c5110
0.15.3 (#60)
wj-Mcat May 6, 2020
77bae8d
keep the package dir name in site-packages as `chatie_grpc` (#62)
wj-Mcat May 8, 2020
3955441
0.15.4 (#63)
wj-Mcat May 8, 2020
7ed4f55
deploy release jar (#61)
diaozxin007 May 12, 2020
323ea35
use better relative path for proto_path (https://github.com/zxh0/vsco…
huan May 14, 2020
be3683d
0.15.5
huan May 14, 2020
20b4d77
update pypi install_requires config (#64)
wj-Mcat May 18, 2020
ae511ab
add NOTICE
huan May 20, 2020
42760fe
0.13.10
huan May 20, 2020
333ead5
merge
huan May 20, 2020
6f2e8e1
0.16.0
huan May 20, 2020
4c32075
0.16.1
huan May 20, 2020
31c8b37
Bump @chatie/tsconfig from 0.8.0 to 0.10.1 (#70)
dependabot-preview[bot] Jun 4, 2020
2e28bfd
Bump grpc_tools_node_protoc_ts from 2.5.11 to 4.0.0 (#69)
dependabot-preview[bot] Jun 4, 2020
f661d0e
Bump @chatie/git-scripts from 0.2.5 to 0.6.2 (#68)
dependabot-preview[bot] Jun 4, 2020
8fa3766
Update betterproto (#46)
huan Jul 6, 2020
5ad1ea5
specify python v3
huan Jul 6, 2020
87b4060
0.16.2
huan Jul 6, 2020
a6b77be
add php rpc (#76)
zhangchunsheng Jul 18, 2020
fa7fc48
add PHP Grpc & maintainers
huan Jul 18, 2020
2ed172c
0.16.3
huan Jul 18, 2020
0127dcc
add all codeowners for languages
huan Jul 18, 2020
98732fe
0.16.4
huan Jul 18, 2020
0f12ba0
Bump @chatie/eslint-config from 0.8.1 to 0.12.1 (#75)
dependabot-preview[bot] Jul 19, 2020
65c3994
fix eslint
huan Jul 20, 2020
29fb85c
0.16.5
huan Jul 20, 2020
4824c94
add php action (#78)
zhangchunsheng Aug 5, 2020
801bf21
tune layout for source code
huan Aug 5, 2020
fd02711
Update README.md
huan Aug 5, 2020
c4408ce
v0.17
huan Aug 5, 2020
29471cb
fix to v0.17
huan Aug 5, 2020
19575fe
Update README.md
huan Aug 5, 2020
eda9eab
Update README.md
huan Aug 5, 2020
b5c1ea9
Update README.md
huan Aug 5, 2020
38b0312
Update README.md
huan Aug 5, 2020
7a1ef3d
Update README.md
huan Aug 5, 2020
9431321
fix github url
huan Aug 19, 2020
aab74dc
0.16.2
huan Aug 19, 2020
8cf861d
merge
huan Aug 19, 2020
a517d20
0.17.1
huan Aug 19, 2020
805843e
add dirty rpc function definition for sync data (#79)
windmemory Aug 19, 2020
de762e9
add contact phone rpc call definition (#80)
windmemory Aug 21, 2020
b4d17bf
add more methods related to new wechaty-puppept update (#81)
windmemory Aug 21, 2020
dd61569
add phone to contact payload (#82)
windmemory Aug 22, 2020
ca527b5
bump version to publish new changes (#83)
windmemory Aug 22, 2020
31db2b7
add csharp nuget (#84)
Jesn Oct 12, 2020
6a8866d
add file stream and image stream rpc call (#88)
windmemory Oct 15, 2020
b261e43
Bump grpc_tools_node_protoc_ts from 4.1.5 to 5.0.0 (#87)
dependabot-preview[bot] Oct 15, 2020
d878252
Bump ts-protoc-gen from 0.12.0 to 0.13.0 (#86)
dependabot-preview[bot] Oct 15, 2020
86c3a1e
Send message stream (#89)
windmemory Oct 16, 2020
41e86c4
Fix go ci (#91)
dingdayu Oct 18, 2020
f73b6b0
keep the latest betterproto version (#92)
wj-Mcat Oct 18, 2020
ec19ad8
Use metadata (#93)
windmemory Oct 20, 2020
6a685d9
use data instead of chunk
huan Oct 20, 2020
40daa31
0.18.3
huan Oct 20, 2020
ea9bc5a
Update README.md
huan Oct 25, 2020
4940cd2
Improve stream message (#95)
windmemory Oct 26, 2020
81176d6
Export file box (#98)
windmemory Oct 26, 2020
d3f3261
add some stream notices comments
huan Nov 15, 2020
651b958
0.18.9
huan Nov 15, 2020
964f007
fix file rename
huan Nov 15, 2020
a500da9
0.18.10
huan Nov 15, 2020
5405bb6
link to #99
huan Nov 17, 2020
8fba81f
0.18.11
huan Nov 17, 2020
d74d56a
fix go-grpc generate failed (#101)
dchaofei Nov 27, 2020
46ea759
0.18.12
huan Nov 27, 2020
9f1bd81
fix .net grpc for the new file file_box.proto and update TargetFrame…
Jesn Dec 5, 2020
56c24b9
init openapi
huan Feb 12, 2021
5cabc93
Rename & Add OpenAPI Specification Generator (#107)
huan Feb 20, 2021
dd145bf
add gRPC Web example
huan Feb 20, 2021
593a574
0.19.2
huan Feb 20, 2021
7e88fba
wechaty-grpc v0.20
huan Feb 20, 2021
bd0247e
0.20.1
huan Feb 20, 2021
cde7c2c
lint
huan Feb 21, 2021
46e15fb
check protoc version to make sure >= 3.5 (#116)
huan Feb 22, 2021
4773801
test ok
huan Feb 22, 2021
31e848a
upgrade all deps
huan Feb 22, 2021
928f76e
add more node version for testing
huan Feb 22, 2021
fa7b8ac
0.20.2
huan Feb 22, 2021
098be6d
use @master version of github actions, enable cache
huan Feb 22, 2021
d056594
install 3rd party protos
huan Feb 22, 2021
b62c6f3
0.20.3
huan Feb 22, 2021
a4d2506
fix npm publish
huan Feb 22, 2021
2c0fa1a
0.20.4
huan Feb 22, 2021
e0e2ec5
add openApi & proto for export (#119)
huan Feb 22, 2021
09d245c
Pypi rename wechaty grpc (#118)
huan Feb 22, 2021
942da1c
use abs path for install
huan Feb 22, 2021
574496c
0.20.8
huan Feb 22, 2021
580899b
explicit python3 & pip3
huan Feb 22, 2021
047ca65
0.20.9
huan Feb 22, 2021
af4f85b
0.20.10
huan Feb 22, 2021
7eb6564
0.20.11
huan Feb 22, 2021
fccd2e7
sync swagger version to gRPC
huan Feb 22, 2021
cbea1a6
0.20.12
huan Feb 22, 2021
87abca4
compatible with grpc-dynamic-gateway (https://github.com/konsumer/grp…
huan Feb 23, 2021
40469c3
cean
huan Feb 23, 2021
77d2210
fix
huan Feb 23, 2021
b7ea954
0.20.13
huan Feb 23, 2021
c6e835e
use proto full path & fix openapi
huan Feb 24, 2021
44c5445
0.20.14
huan Feb 24, 2021
92dcf0c
fix python proto path
huan Feb 24, 2021
78065f2
0.20.15
huan Feb 24, 2021
bb4d53d
add openapi link
huan Feb 24, 2021
5127440
0.20.16
huan Feb 24, 2021
338e69b
a workaround to fix issue #120
huan Feb 27, 2021
4e255b9
clean
huan Feb 27, 2021
5d81599
0.20.17
huan Feb 27, 2021
af6b51e
fix name
huan Feb 27, 2021
f6dd8bf
0.20.18
huan Feb 27, 2021
039b55d
specify beta version for install
huan Feb 27, 2021
b5e4cc9
0.20.19
huan Feb 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# https://help.github.com/articles/about-codeowners/
#

/php/ @zhangchunsheng
/python/ @wj-Mcat
/java/ @diaozxin007
/go/ @dchaofei
26 changes: 26 additions & 0 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "csharp"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-push:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.100

- name: copy wechaty proto
run: .\copy.ps1
working-directory: .\csharp\Wechaty.Grpc\buildTool
shell: powershell

- name: publish on version change
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: .\csharp\Wechaty.Grpc\Wechaty.Grpc.csproj
VERSION_FILE_PATH: .\csharp\Wechaty.Grpc\common.props
NUGET_KEY: ${{ secrets.NUGET_APIKEY }}
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: |
cd go
make generate
rm -rf `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty
ln -s `pwd`/generated/wechaty/ `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty
go build -v generated/wechaty/puppet.pb.go

publish:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file java/pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file java/pom.xml
19 changes: 11 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,34 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
node-version: [10.x, 11.x, 12.x]
node-version: [10.x, 11.x, 12.x, 14.x, 15]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: Set up Go 1.14
- name: Set up Go
uses: actions/setup-go@master
with:
stable: false
go-version: 1.14
id: go

- name: Install Protoc
uses: arduino/setup-protoc@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/cache@master
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: |
npm install
npm run install:lint:protoc
npm run install:protoc

- name: Generate gRPC Stubs
run: npm run generate
Expand Down
45 changes: 34 additions & 11 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,27 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- name: Use Node.js 12
uses: actions/setup-node@v1
uses: actions/setup-node@master
with:
node-version: 12
- name: Set up Go 1.14
- name: Set up Go
uses: actions/setup-go@master
with:
stable: false
go-version: 1.14
id: go
- name: Install Protoc
uses: arduino/setup-protoc@master

- uses: actions/cache@master
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: |
npm install
npm run install:lint:protoc
npm run install:protoc

- name: Generate gRPC Stubs
run: npm run generate
Expand All @@ -37,13 +40,24 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
- uses: actions/cache@master
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up Go
uses: actions/setup-go@master
id: go

- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Install Protoc 3rd party protos
run: npm run install:protoc

- name: Install Dependencies
run: npm install
Expand All @@ -60,13 +74,22 @@ jobs:
needs: [build, pack]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- uses: actions/cache@master
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Install Protoc 3rd party protos
run: npm run install:protoc

- name: Install Dependencies
run: npm install
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# For more information see: https://docs.github.com/en/actions/getting-started-with-github-actions
# For more setup-php see: https://github.com/shivammathur/setup-php
# For more setup-php protoc see: https://github.com/shivammathur/setup-php/issues/262

name: PHP

on: [push, pull_request]

jobs:
run:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-20.04]
php-versions: ['7.4']
env:
extensions: xml, opcache, xdebug, pcov, grpc-1.30.0, protobuf-3.12.2
key: cache-v3

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP with extensions and custom config
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
ini-values: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Shanghai
tools: protoc, grpc_php_plugin
- name: Testing PHP version
run: |
php -v
php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}"
- name: Test grpc_php_plugin and protoc
run: |
protoc --version
cd php
make generate
50 changes: 42 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.9
- uses: actions/cache@master
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Install Protoc 3rd party protos
run: scripts/install-protoc.sh

- name: Install dependencies
run: |
cd python
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
make install
- name: Test
run: |
cd python
Expand All @@ -37,7 +47,19 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.9
- uses: actions/cache@master
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Install Protoc 3rd party protos
run: scripts/install-protoc.sh

- name: Install dependencies
run: |
cd python
Expand All @@ -61,12 +83,24 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.9'
- uses: actions/cache@master
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Install Protoc 3rd party protos
run: scripts/install-protoc.sh

- name: Install dependencies
run: |
cd python
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip3 install setuptools wheel twine

- name: Check Branch
id: check-branch
Expand All @@ -85,7 +119,7 @@ jobs:
make install
make generate
make dist
python setup.py sdist bdist_wheel
python3 setup.py sdist bdist_wheel
twine upload --skip-existing dist/*

- name: Is Not A Publish Branch
Expand Down
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,20 @@ t.*

.idea
target/

# csharp
*.nupkg
.vs/
*.suo
*.user
*.userosscache
*.sln.docstates

csharp/Wechaty.Grpc/.vs/
csharp/Wechaty.Grpc/proto
csharp/Wechaty.Grpc/obj/
csharp/Wechaty.Grpc/bin/
csharp/Wechaty.Grpc/nupkg/package/
csharp/Wechaty.Grpc/Properties

third-party/
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"protoc": {
"options": [
"--proto_path=protobuf"
"--proto_path=source_relative" // https://github.com/zxh0/vscode-proto3/issues/31#issuecomment-628162495
],
},
"alignment": {
Expand All @@ -75,6 +75,14 @@
"javascript",
"typescript",
],
"cSpell.words": [
"PYPI",
"bdist",
"proto",
"sdist",
"setuptools"
],
"python.linting.pylintEnabled": true,

}

8 changes: 8 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Chatie GRPC Service
Copyright 2016 Huan LI (李卓桓) <zixia@zixia.net>

This product includes software developed at
The Chatie Organization (https://github.com/chatie).

This software contains code derived from the Stackoverflow,
including various modifications by GitHub.
Loading