flowquery 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/python-publish.yml +8 -9
- package/dist/flowquery.min.js +1 -1
- package/dist/graph/pattern_expression.d.ts +1 -0
- package/dist/graph/pattern_expression.d.ts.map +1 -1
- package/dist/graph/pattern_expression.js +14 -3
- package/dist/graph/pattern_expression.js.map +1 -1
- package/dist/parsing/parser.d.ts.map +1 -1
- package/dist/parsing/parser.js +6 -5
- package/dist/parsing/parser.js.map +1 -1
- package/docs/flowquery.min.js +1 -1
- package/flowquery-py/CONTRIBUTING.md +127 -0
- package/flowquery-py/README.md +13 -112
- package/flowquery-py/pyproject.toml +1 -1
- package/flowquery-py/src/graph/pattern_expression.py +6 -3
- package/flowquery-py/src/io/command_line.py +44 -2
- package/flowquery-py/src/parsing/base_parser.py +2 -2
- package/flowquery-py/src/parsing/operations/load.py +6 -0
- package/flowquery-py/src/parsing/parser.py +4 -5
- package/flowquery-py/src/tokenization/token.py +122 -176
- package/flowquery-py/src/tokenization/tokenizer.py +4 -4
- package/flowquery-py/tests/parsing/test_parser.py +6 -0
- package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
- package/package.json +1 -1
- package/src/graph/pattern_expression.ts +14 -3
- package/src/parsing/parser.ts +7 -4
- package/tests/parsing/parser.test.ts +8 -0
|
@@ -2,10 +2,8 @@ name: Publish Python Package to PyPI
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
paths:
|
|
8
|
-
- "flowquery-py/**"
|
|
5
|
+
tags:
|
|
6
|
+
- "py-v*" # Trigger on tags like py-v1.0.1, py-v2.3.4, etc.
|
|
9
7
|
pull_request:
|
|
10
8
|
branches:
|
|
11
9
|
- main
|
|
@@ -60,8 +58,6 @@ jobs:
|
|
|
60
58
|
environment:
|
|
61
59
|
name: testpypi
|
|
62
60
|
url: https://test.pypi.org/p/flowquery
|
|
63
|
-
permissions:
|
|
64
|
-
id-token: write
|
|
65
61
|
|
|
66
62
|
steps:
|
|
67
63
|
- name: Download distribution artifacts
|
|
@@ -74,17 +70,17 @@ jobs:
|
|
|
74
70
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
75
71
|
with:
|
|
76
72
|
repository-url: https://test.pypi.org/legacy/
|
|
73
|
+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
74
|
+
trusted-publisher: false
|
|
77
75
|
|
|
78
76
|
publish-pypi:
|
|
79
77
|
name: Publish to PyPI
|
|
80
|
-
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi')
|
|
78
|
+
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/py-v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi')
|
|
81
79
|
needs: build
|
|
82
80
|
runs-on: ubuntu-latest
|
|
83
81
|
environment:
|
|
84
82
|
name: pypi
|
|
85
83
|
url: https://pypi.org/p/flowquery
|
|
86
|
-
permissions:
|
|
87
|
-
id-token: write
|
|
88
84
|
|
|
89
85
|
steps:
|
|
90
86
|
- name: Download distribution artifacts
|
|
@@ -95,3 +91,6 @@ jobs:
|
|
|
95
91
|
|
|
96
92
|
- name: Publish to PyPI
|
|
97
93
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
94
|
+
with:
|
|
95
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
96
|
+
trusted-publisher: false
|