Skip to content

Commit

Permalink
change liu entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
amor71 committed Jan 8, 2023
1 parent 5092d79 commit 253536e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LiuAlgoTrader
[![Upload Python Package](https://github.com/amor71/LiuAlgoTrader/actions/workflows/python-publish.yml/badge.svg)](https://github.com/amor71/LiuAlgoTrader/actions/workflows/python-publish.yml)
[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/liualgotrader)
[![Python 3](https://pyup.io/repos/github/amor71/LiuAlgoTrader/python-3-shield.svg)](https://pyup.io/repos/github/amor71/LiuAlgoTrader/)
[![Updates](https://pyup.io/repos/github/amor71/LiuAlgoTrader/shield.svg)](https://pyup.io/repos/github/amor71/LiuAlgoTrader/)
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions liualgotrader/liu → liualgotrader/scripts/liu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import os
import sys
import pygit2
Expand Down Expand Up @@ -326,7 +325,7 @@ def create_portfolio(amount: float, credit: float):
print(f"Portfolio ID {portfolio_id} created")


if __name__ == "__main__":
def main_cli():
config.filename = os.path.basename(__file__)

try:
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ license = {text = "MIT"}
name = "liualgotrader"
readme = "README.md"
requires-python = ">=3.10"
version = "0.4.30"
version = "0.4.31"

[project.optional-dependencies]
dev = [
Expand All @@ -53,6 +53,9 @@ dev = [
"types-requests>=2.28.11.7",
]

[project.scripts]
liu = "liualgotrader.scripts.liu:main_cli"

[tool.pdm.version]
source = "scm"
write_template = "__version__ = '{}'" # optional, default to "{}"
Expand Down

0 comments on commit 253536e

Please sign in to comment.