Skip to content

Commit

Permalink
Fix Test/Build
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Jul 2, 2024
1 parent 24bed1f commit 162505b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: "Build"
run: |
python -m pip install -U pip
python -m pip install -Ur requirements.txt
python -m build
- name: "Upload to Actions"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build
flake8
packaging
psycopg2
python-decouple
python-dotenv
Expand Down
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
import os
from setuptools import setup
from packaging.version import parse, InvalidVersion


def get_version() -> str:
try:
ref = os.environ.get('GITHUB_REF_NAME', '0.0.1')
version = parse(ref)
return version.public
except InvalidVersion:
return '0.0.1'


with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f:
long_description = f.read()

setup(
version=os.environ.get('GITHUB_REF_NAME', '0.0.1'),
version=get_version(),
name='zipline-cli',
description='Python 3 CLI for Zipline',
long_description=long_description,
long_description_content_type="text/markdown",
long_description_content_type='text/markdown',
url='https://github.com/cssnr/zipline-cli',
author='Shane',
author_email='[email protected]',
py_modules=['zipline'],
install_requires=['requests', 'python-decouple', 'python-dotenv'],
setup_requires=['packaging', 'setuptools', 'wheel'],
python_requires='>=3.8',
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit 162505b

Please sign in to comment.