Skip to content

Commit

Permalink
chore: change way how version is set from build
Browse files Browse the repository at this point in the history
  • Loading branch information
longstone committed Nov 29, 2024
1 parent a064a4a commit ab987c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Update version file ⬆️
uses: brettdorrans/[email protected]
with:
filename: '.VERSION'
placeholder: '${VERSION}'
filename: 'setup.py'
placeholder: '1.0.0.dev1'

- name: Set up Python 3.12
uses: actions/setup-python@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- name: Update version file ⬆️
uses: brettdorrans/[email protected]
with:
filename: '.VERSION'
placeholder: '${VERSION}'
filename: 'setup.py'
placeholder: '1.0.0.dev1'

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def read(fname):

setup(
name="withings-sync",
version=read(".VERSION"),
version="1.0.0.dev1",
author="Masayuki Hamasaki, Steffen Vogel",
author_email="[email protected]",
description="A tool for synchronisation of Withings (ex. Nokia Health Body) to Garmin Connect and Trainer Road.",
Expand All @@ -26,7 +26,11 @@ def read(fname):
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
install_requires=["lxml", "requests", "garth>=0.4.32", "python-dotenv"],
install_requires=[
"lxml==5.2.2",
"requests==2.31.0",
"garth==0.4.46",
"python-dotenv"],
entry_points={
"console_scripts": ["withings-sync=withings_sync.sync:main"],
},
Expand Down

0 comments on commit ab987c3

Please sign in to comment.