Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Jan 28, 2024
1 parent c865457 commit 1d4a449
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_ENV: ci
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
FMP_API_KEY: ${{ secrets.FMP_API_KEY }}
strategy:
matrix:
Expand Down
27 changes: 23 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,42 +1,61 @@
.PHONY: lint notebook book tests

.PHONY: help
help:
@echo ================================================================================
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@echo ================================================================================


.PHONY: lint
lint: ## Lint and fix
@poetry run ./dev/lint fix


.PHONY: lint-check
lint-check: ## Lint check only
@poetry run ./dev/lint


.PHONY: install-dev
install-dev: ## Install development dependencies
@./dev/install


.PHONY: notebook
notebook: ## Run Jupyter notebook server
@poetry run ./dev/start-jupyter 9095


.PHONY: book
book: ## Build static jupyter {book}
poetry run jupyter-book build notebooks --all


.PHONY: sphinx-config
sphinx-config: ## Build sphinx config
poetry run jupyter-book config sphinx notebooks


.PHONY: sphinx
sphinx:
poetry run sphinx-build notebooks path/to/book/_build/html -b html

publish: ## release to pypi
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD)

.PHONY: publish
publish: ## Release to pypi
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)


.PHONY: publish-book
publish-book: ## publish the book to github pages
poetry run ghp-import -n -p -f notebooks/_build/html

tests: ## unit tests

.PHONY: tests
tests: ## Unit tests
@./dev/test


.PHONY: outdated
outdated: ## Show outdated packages
poetry show -o -a

0 comments on commit 1d4a449

Please sign in to comment.