Skip to content

Commit

Permalink
feat: use poetry-dynamic-versioning (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio authored Dec 27, 2023
1 parent 9f66b97 commit ba83efb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
# install poetry first for cache
- name: setup poetry
run: pipx install poetry
run: pipx install poetry poetry-dynamic-versioning
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -34,4 +34,4 @@ jobs:
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 2 additions & 1 deletion alpaca/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__version__ = "0.13.4"
# placeholder for poetry-dynamic-versioning
__version__ = "0.0.0"
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tool.poetry]
name = "alpaca-py"
version = "0.13.4"
# placeholder for poetry-dynamic-versioning
version = "0.0.0"
description = "The Official Python SDK for Alpaca APIs"
authors = [
"Rahul Chowdhury <[email protected]>",
Expand Down Expand Up @@ -37,5 +38,10 @@ enum-tools = "^0.9.0"
sphinx-toolbox = "^3.1.2"

[build-system]
requires = ["poetry-core>=1.4.2"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.4.2", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry-dynamic-versioning.substitution]
folders = [
{ path = "alpaca" }
]

4 comments on commit ba83efb

@sshcli
Copy link
Contributor

@sshcli sshcli commented on ba83efb Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hiohiohio
Can't update to alpaca-py 0.13.5 with pip install alpaca-py --upgrade

@hiohiohio
Copy link
Contributor Author

@hiohiohio hiohiohio commented on ba83efb Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't update to alpaca-py 0.13.5 with pip install alpaca-py --upgrade

@sshcli thank you for reporting. sorry, currently publish workflow is failing. Therefore, 0.13.5 is not uploaded to pypi yet.
waiting this PR to be approved. #395
once the PR is merged, I will push alpaca-py 0.13.6.

@sshcli
Copy link
Contributor

@sshcli sshcli commented on ba83efb Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hiohiohio

@hiohiohio
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi. @sshcli alpaca-py v0.13.6 is released and published into pypi.
https://pypi.org/project/alpaca-py/0.13.6/

Please sign in to comment.