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

Ctrl felix patch 1 #3

Merged
merged 10 commits into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Create package

permissions:
contents: write
on:
push:
branches: [ "main" ]
Expand All @@ -23,17 +24,24 @@ jobs:
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
cache: 'pip'
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - name: Install dependencies
- uses: arduino/setup-protoc@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install build protoletariat
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Compile python protobuf files
run: |
python compile.py
run: python compile.py
- name: Build package
run: python -m build
- name: Generate release tag
id: tag
run: echo "::set-output name=release_tag::Build_$(date +"%Y.%m.%d_%H-%M")"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/cosmospy_protobuf-0.0.0.tar.gz
tag_name: ${{ steps.tag.outputs.release_tag }}
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 2 additions & 2 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ def remove_all_compiled_python_files(directory):


remove_all_compiled_python_files(package_name)
#walk_through_project_and_compile_proto(package_name)
#walk_through_project_and_fix_imports(package_name)
walk_through_project_and_compile_proto(package_name)
walk_through_project_and_fix_imports(package_name)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
grpcio-tools ==1.46.3