-
-
Notifications
You must be signed in to change notification settings - Fork 6
local development updates #8
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7078cf5
lint code via black
Zeroto521 7926099
lint codes via black
Zeroto521 a94b5bb
using pathlib to locate file
Zeroto521 bfb3768
lint codes via black
Zeroto521 bab45a1
lint codes via black
Zeroto521 893126a
separate project ignore and plugin ignore
Zeroto521 d0ca135
add blank line in code and description
Zeroto521 7dd2b29
simplify a bit inputting keyword
Zeroto521 92d0dd4
using f-string replace string concating
Zeroto521 d1728b9
add install dependencies command
Zeroto521 0ddfb9a
add clean command group
Zeroto521 e72ab28
add build command
Zeroto521 7863a8d
add setup environment command
jjw24 4d71e53
Merge remote-tracking branch 'origin/master' into development_updates
jjw24 0362866
EHN: add `get_build_ignores` func
Zeroto521 19cec9a
MAINT: gather all constants to one place
Zeroto521 01cb621
EHN: add `hook_env_snippet` func
Zeroto521 5091986
add `UrlDownload` and `UrlSourceCode` fields
Zeroto521 dbbdb8b
add field description + remove same keyword
Zeroto521 dd13448
use oop path replace fixed string
Zeroto521 873bae8
Create release.yml
Zeroto521 65ca68a
extract all TRANSLATIONS_PATH to one place
Zeroto521 a214108
should be `pip`
Zeroto521 8dcfe95
rename ci
Zeroto521 4e277fd
rename CI
Zeroto521 b6897ef
add plugin zip file constant
Zeroto521 4fb7ab5
import `PLUGIN_ZIP_NAME` from settings.py
Zeroto521 266cd0d
add single quotation to fix Linux env zip command can't ignore
Zeroto521 fd03d76
let hook env function return new entry script path
Zeroto521 6bb5217
Merge branch 'build-command' into development_updates
Zeroto521 63b51d3
merge env related command to env group
Zeroto521 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 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,11 +1,3 @@ | ||
| # vscode | ||
| .history/ | ||
| .vscode/ | ||
|
|
||
|
|
||
| # python cache | ||
| __pycache__/ | ||
|
|
||
|
|
||
| # mypy cache | ||
| .mypy_cache/ |
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,12 @@ | ||
| # folder | ||
| .git/* | ||
| .github/* | ||
| .vscode/* | ||
| .history/* | ||
| */__pycache__/* | ||
| build/* | ||
|
|
||
| # file | ||
| .gitignore | ||
| .gitattributes | ||
| .buildignore |
68 changes: 68 additions & 0 deletions
68
Flow.Launcher.Plugin.PythonTemplate/.github/workflows/release.yml
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,68 @@ | ||
| name: Build and Publish | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| jobs: | ||
| build-publish: | ||
| name: Build and Publish | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: "3.x" | ||
|
|
||
| - name: Set up Environment | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python commands.py setup-env | ||
|
|
||
| - name: Install Dependencies to Local | ||
| run: python commands.py setup-env-to-lib | ||
|
|
||
| - name: Compile all languages | ||
| run: python commands.py compile | ||
|
|
||
| - name: Update 'plugin.json' information | ||
| run: python commands.py gen-plugin-info | ||
|
|
||
| - name: Remove Python file artifacts | ||
| run: python commands.py clean-pyc | ||
|
|
||
| - name: Pack plugin to a zip file | ||
| run: python commands.py build | ||
|
|
||
| - name: Create GitHub Release | ||
| id: create_release | ||
| uses: actions/create-release@v1 | ||
| env: | ||
| # This token is provided by Actions | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: ${{ github.ref }} | ||
| release_name: ${{ github.ref }} | ||
| draft: false | ||
| prerelease: false | ||
|
|
||
| - name: Get Asset name | ||
| run: | | ||
| export PKG=$(ls build/ | grep zip) | ||
| set -- $PKG | ||
| echo "name=$1" >> $GITHUB_ENV | ||
|
|
||
| - name: Upload Release (zip) to GitHub | ||
| id: upload-release-asset | ||
| uses: actions/upload-release-asset@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
| asset_path: build/${{ env.name }} | ||
| asset_name: ${{ env.name }} | ||
| asset_content_type: application/zip |
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,7 @@ | ||
| # build | ||
| lib/ | ||
| build/ | ||
|
|
||
| # python cache | ||
| __pycache__/ | ||
| .mypy_cache/ |
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,14 +1,27 @@ | ||
| # -*- coding: utf-8 -*- | ||
| """ | ||
| Plugin | ||
| ===== | ||
| ====== | ||
| Introduce the plugin. | ||
| """ | ||
|
|
||
|
|
||
| from plugin.settings import ( | ||
| GITHUB_USERNAME, ICON_PATH, PLUGIN_ACTION_KEYWORD, PLUGIN_AUTHOR, | ||
| PLUGIN_EXECUTE_FILENAME, PLUGIN_ID, PLUGIN_PROGRAM_LANG, PLUGIN_URL, | ||
| __long_description__, __package_name__, __short_description__, __version__, | ||
| basedir) | ||
| ICON_PATH, | ||
| PLUGIN_ACTION_KEYWORD, | ||
| PLUGIN_AUTHOR, | ||
| PLUGIN_EXECUTE_FILENAME, | ||
| PLUGIN_ID, | ||
| PLUGIN_PROGRAM_LANG, | ||
| PLUGIN_URL, | ||
| PLUGIN_URL_DOWNLOAD, | ||
| PLUGIN_URL_SOURCE_CODE, | ||
| PLUGIN_ZIP_NAME, | ||
| TRANSLATIONS_PATH, | ||
| __long_description__, | ||
| __package_name__, | ||
| __short_description__, | ||
| __version__, | ||
| basedir, | ||
| ) | ||
| from plugin.ui import Main |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the
findcommand also doesn't exist for window.I run it in ps env with choco to install these commands.
But those (ex. zip, find) commands will run at CI Linux env, so don't worry about it.