Skip to content
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
7 changes: 4 additions & 3 deletions .github/workflows/package-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Twine
- name: Install Build Tools
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
python -m pip install build twine
- name: Build and Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
GH_BRANCH: ${{ github.ref }}
run: |
(cd ${{ matrix.path }}; python setup.py sdist)
(cd ${{ matrix.path }}; python -m build)
twine upload --verbose --skip-existing ${{ matrix.path }}/dist/*

2 changes: 1 addition & 1 deletion fred-mlambda/src/main/fred/mlambda/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.4.0
6 changes: 5 additions & 1 deletion fred-mlambda/src/main/fred/mlambda/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ def from_path(cls, dirpath: str, name: str):
return cls(name=name, value=version_value)


version = Version.from_path(name="fred.mlambda", dirpath=os.path.dirname(__file__))
try:
version = Version.from_path(name="fred.mlambda", dirpath=os.path.dirname(__file__))
except Exception:
print("Version file not found for package name: fred.mlambda, using 0.0.0")
version = Version(name="fred.mlambda", value="0.0.0")
Loading