Skip to content

Commit

Permalink
Merge pull request #383 from amor71/pdm
Browse files Browse the repository at this point in the history
refactor build process -> switch to PDM
  • Loading branch information
amor71 authored Jan 7, 2023
2 parents 2299c62 + ad84075 commit 5092d79
Show file tree
Hide file tree
Showing 12 changed files with 2,764 additions and 240 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,22 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
- name: Build package
run: pdm build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion liualgotrader/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.29"

Empty file modified liualgotrader/backtester
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions liualgotrader/common/market_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ async def sp500_historical_constituents(date: str):
changes = changes.loc[changes.date > date]

unadusted: Set = set(symbols)

print(f"changes:{changes}")
print(unadusted)
while True:
no_changes = True
for _, row in changes.iterrows():
Expand Down
Empty file modified liualgotrader/liu
100644 → 100755
Empty file.
Empty file modified liualgotrader/market_miner
100644 → 100755
Empty file.
194 changes: 0 additions & 194 deletions liualgotrader/requirements/dev.txt

This file was deleted.

25 changes: 0 additions & 25 deletions liualgotrader/requirements/release.txt

This file was deleted.

Loading

0 comments on commit 5092d79

Please sign in to comment.