Skip to content

Commit

Permalink
Merged in feature/PROTO-242-Dynamic-version-numbering-for-development…
Browse files Browse the repository at this point in the history
…-builds-v4 (pull request #178)

Feature/PROTO-242 Dynamic version numbering for development builds v4
  • Loading branch information
BartHertog committed Aug 29, 2024
2 parents 02b4578 + b7aced0 commit d53ef4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/distribute_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
push:
branches:
- 'develop-v4'
- 'feature/**'

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
strategy:
matrix:
protoc-version: ["25.x"]
protoc-version: ["27.x"]

steps:
- uses: actions/checkout@v4
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include = ["EmbeddedProto*"]
protoc-gen-eams = "EmbeddedProto.main:main_plugin"

[tool.setuptools.package-data]
EmbeddedProto = ["templates/*"]
EmbeddedProto = ["templates/*", "version.json"]

[build-system]
requires = ["setuptools>=64"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(self):
super().run()

def get_version():
version_file = 'version.json'
version_file = 'EmbeddedProto/version.json'
build_number = os.getenv('GITHUB_RUN_NUMBER', '0')

with open(version_file, 'r') as f:
Expand Down

0 comments on commit d53ef4b

Please sign in to comment.