Skip to content

Commit

Permalink
Updated workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellMendenhall committed Apr 3, 2024
1 parent 1e2b747 commit 6e135dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Extract version from tag
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Install TA-Lib C library from source
run: |
sudo apt-get update
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from setuptools import setup, find_packages
import os

version = os.getenv('PACKAGE_VERSION', '0.1.0')

here = os.path.abspath(os.path.dirname(__file__))

readme_path = os.path.join(here, 'README.md')
Expand All @@ -13,7 +15,7 @@

setup(
name='ml_backtest',
version='0.1.0',
version=version,
packages=find_packages(),
description='Backtesting of trading strategies with machine learning.',
long_description=long_description,
Expand Down

0 comments on commit 6e135dc

Please sign in to comment.