Skip to content

Commit a5a97d9

Browse files
danigr99727reyalabsclaude
authored
Bump specs to 2.1.4 (#46)
* Bump specs to 2.1.4 * chore: bump SDK version to 2.1.4.0 * fix: read SDK package version from pyproject.toml instead of hardcoding The generate-api.sh script was hardcoding packageVersion=2.0.0, causing the autogenerated open_api files to report a stale SDK version. Now reads the version dynamically from pyproject.toml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: regenerate open_api files with correct version 2.1.4.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: CI workflow issues for version-consistency and pre-commit - version-consistency: skip commit when version is already up to date instead of failing on "nothing to commit" - pylint: use single `poetry install --extras dev` instead of separate install + extras steps, which caused dev deps to be missing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: use pip to install dev extras in CI Poetry's --extras flag doesn't reliably resolve [project.optional-dependencies]. Use pip install -e ".[dev]" inside the poetry venv instead, which natively understands PEP 621 optional dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: lint issues in dynamic pricing tests - Fix isort import ordering in market_trackers.py - Fix black formatting in test_dynamic_pricing.py - Fix flake8 F541: remove f-prefix from strings without placeholders - Fix mypy: add None guards before float() on Optional fields Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: reya-python-sdk Reya Bot <devcold@voltz.xyz> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e889b9c commit a5a97d9

57 files changed

Lines changed: 107 additions & 108 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Install dependencies
4343
run: |
4444
poetry config virtualenvs.in-project true
45-
make install
46-
poetry install --extras dev
45+
poetry install -n
46+
poetry run pip install -e ".[dev]"
4747
4848
- name: Lint
4949
run: |

.github/workflows/version-consistency.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,13 @@ jobs:
222222
git config --local user.email "${{ env.CI_COMMIT_EMAIL }}"
223223
git config --local user.name "${{ env.CI_COMMIT_AUTHOR }}"
224224
git add pyproject.toml
225-
git commit -m "chore: bump SDK version to $NEW_VERSION"
226-
git push origin HEAD:${{ github.head_ref }}
227-
echo "✅ Committed and pushed version bump to $NEW_VERSION"
225+
if git diff --cached --quiet; then
226+
echo "✅ Version already at $NEW_VERSION, nothing to commit"
227+
else
228+
git commit -m "chore: bump SDK version to $NEW_VERSION"
229+
git push origin HEAD:${{ github.head_ref }}
230+
echo "✅ Committed and pushed version bump to $NEW_VERSION"
231+
fi
228232
229233
- name: Validate version progression (for manual changes)
230234
if: github.event_name == 'pull_request' && env.VERSION_MANUALLY_MODIFIED == 'true'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "reya-python-sdk"
3-
version = "2.1.3.5"
3+
version = "2.1.4.0"
44
description = "SDK for interacting with Reya Labs APIs"
55
authors = [
66
{name = "Reya Labs"}

scripts/generate-api.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ NC='\033[0m' # No Color
1515

1616
echo -e "${GREEN}🚀 Generating Python SDK from OpenAPI specifications...${NC}"
1717

18+
# Read package version from pyproject.toml
19+
PACKAGE_VERSION=$(grep -m1 '^version' "$ROOT_DIR/pyproject.toml" | sed 's/version = "\(.*\)"/\1/')
20+
if [ -z "$PACKAGE_VERSION" ]; then
21+
echo -e "${RED}❌ Could not read version from pyproject.toml${NC}"
22+
exit 1
23+
fi
24+
echo -e "${GREEN}📦 Using package version: $PACKAGE_VERSION${NC}"
25+
1826
# Check if OpenAPI Generator CLI is installed
1927
if ! command -v openapi-generator-cli &> /dev/null; then
2028
echo -e "${YELLOW}⚠️ OpenAPI Generator CLI not found. Installing...${NC}"
@@ -38,7 +46,7 @@ if [ -d "$PYTHON_SDK_REPO" ]; then
3846
-o "$PYTHON_SDK_REPO" \
3947
--skip-operation-example \
4048
--global-property=models,apis,modelDocs=false,modelTests=false,apiDocs=false,apiTests=false,supportingFiles=__init__.py:api_client.py:configuration.py:api_response.py:exceptions.py:rest.py \
41-
--additional-properties=library=asyncio,packageName=sdk.open_api,projectName=open-api,packageVersion=2.0.0,packageUrl=https://github.com/reya-network/reya-python-sdk
49+
--additional-properties=library=asyncio,packageName=sdk.open_api,projectName=open-api,packageVersion=$PACKAGE_VERSION,packageUrl=https://github.com/reya-network/reya-python-sdk
4250

4351

4452
if [ $? -ne 0 ]; then

sdk/open_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
99
10-
The version of the OpenAPI document: 2.1.3
10+
The version of the OpenAPI document: 2.1.4
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

1616

17-
__version__ = "2.0.0"
17+
__version__ = "2.1.4.0"
1818

1919
# Define package exports
2020
__all__ = [

sdk/open_api/api/market_data_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: 2.1.3
8+
The version of the OpenAPI document: 2.1.4
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

sdk/open_api/api/order_entry_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: 2.1.3
8+
The version of the OpenAPI document: 2.1.4
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

sdk/open_api/api/reference_data_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: 2.1.3
8+
The version of the OpenAPI document: 2.1.4
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

sdk/open_api/api/specs_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: 2.1.3
8+
The version of the OpenAPI document: 2.1.4
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

sdk/open_api/api/wallet_data_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: 2.1.3
8+
The version of the OpenAPI document: 2.1.4
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

0 commit comments

Comments
 (0)