-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from bancorprotocol/release-candidate
Release candidate
- Loading branch information
Showing
187 changed files
with
693,632 additions
and
373,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,8 @@ jobs: | |
if: steps.check.outputs.skip != 'true' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt --force-reinstall | ||
pip install bumpversion | ||
pip install poetry | ||
poetry install | ||
env: | ||
TENDERLY_FORK: '${{ secrets.TENDERLY_FORK }}' | ||
WEB3_ALCHEMY_PROJECT_ID: '${{ secrets.WEB3_ALCHEMY_PROJECT_ID }}' | ||
|
@@ -82,18 +82,11 @@ jobs: | |
if: steps.check.outputs.skip != 'true' | ||
id: bump_version_and_set_output | ||
run: | | ||
CURRENT_VERSION=$(python -c "import fastlane_bot; print(fastlane_bot.__version__)") | ||
MAJOR=$(echo $CURRENT_VERSION | cut -d. -f1) | ||
MINOR=$(echo $CURRENT_VERSION | cut -d. -f2) | ||
PATCH=$(echo $CURRENT_VERSION | cut -d. -f3) | ||
NEW_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))" | ||
echo new_version=$NEW_VERSION >> $GITHUB_OUTPUT | ||
BRANCH_NAME="version-bump-$NEW_VERSION-run-$GITHUB_RUN_NUMBER" | ||
sed -i "s/$CURRENT_VERSION/$NEW_VERSION/" fastlane_bot/__init__.py | ||
poetry version patch | ||
git checkout main | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add fastlane_bot/__init__.py | ||
git add pyproject.toml | ||
git commit -m "Bump version [skip ci]" | ||
- name: Generate changelog | ||
|
@@ -117,7 +110,7 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add CHANGELOG.md | ||
git commit --allow-empty -m "Update changelog [skip ci]" | ||
git commit -m "Update changelog [skip ci]" | ||
# push to main branch using CasperWA/push-protected@v2 action | ||
- name: Push to protected branch | ||
|
@@ -156,18 +149,9 @@ jobs: | |
DEFAULT_MIN_PROFIT_BNT: '${{ secrets.DEFAULT_MIN_PROFIT_BNT }}' | ||
ETH_PRIVATE_KEY_BE_CAREFUL: '${{ secrets.ETH_PRIVATE_KEY_BE_CAREFUL }}' | ||
|
||
- name: Install package | ||
- name: Build | ||
run: | | ||
python setup.py install | ||
- name: Build package | ||
run: python setup.py sdist | ||
|
||
- name: Build wheel | ||
run: | | ||
pip install wheel | ||
python setup.py bdist_wheel | ||
find dist -type f ! -name "*.whl" -exec rm -f {} + | ||
poetry build | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
""" | ||
[DOC-TODO-short description of what the file does, max 80 chars] | ||
[DOC-TODO-OPTIONAL-longer description in rst format] | ||
--- | ||
(c) Copyright Bprotocol foundation 2023-24. | ||
All rights reserved. | ||
Licensed under MIT. | ||
""" | ||
import importlib.metadata | ||
|
||
from .bot import CarbonBot as Bot, __VERSION__, __DATE__ | ||
from .config import Config, ConfigNetwork, ConfigDB, ConfigLogger, ConfigProvider | ||
|
||
|
||
__version__ = "3.1.9" | ||
__version__ = importlib.metadata.version('fastlane-bot') |
Oops, something went wrong.