Skip to content

Commit

Permalink
Use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Oct 30, 2022
1 parent 5954699 commit d2d099f
Show file tree
Hide file tree
Showing 11 changed files with 660 additions and 160 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,5 +32,5 @@ jobs:
- name: run tests
run: make test
- name: upload coverage
if: matrix.python-version == '3.8'
if: matrix.python-version == '3.11'
run: make codecov
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009-2021, Quantmind
Copyright (c) 2009-2022, Quantmind
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
40 changes: 7 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,18 @@ clean: ## remove python cache files

docs: ## build docs
cd docs && make docs

install: ## install packages for development
@./dev/install
@poetry install

lint: ## run linters
isort .
black .
flake8
@poetry run dev/lint

test: ## test with python 3.8 with coverage
@pytest -x -v --cov --cov-report xml
@poetry run pytest -x -v --cov --cov-report xml

codecov: ## upload code coverage
@codecov --token $(CODECOV_TOKEN) --file ./build/coverage.xml

test-version: ## validate version with pypi
@agilekit git validate

bundle3.6: ## build python 3.6 bundle
@python setup.py bdist_wheel --python-tag py36

bundle3.7: ## build python 3.7 bundle
@python setup.py bdist_wheel --python-tag py37

bundle3.8: ## build python 3.8 bundle
@python setup.py bdist_wheel --python-tag py38

bundle3.9: ## build python 3.9 bundle
@python setup.py sdist bdist_wheel --python-tag py39

github-tag: ## new tag in github
@agilekit git release --yes

release-pypi: ## release to pypi and github tag
@twine upload dist/* --username lsbardel --password $(PYPI_PASSWORD)

release: ## release to pypi and github tag
make release-pypi
make github-tag
@poetry run codecov --token $(CODECOV_TOKEN) --file ./build/coverage.xml

version: ## display software version
@python -c "import ccy; print(ccy.__version__)"
publish: ## release to pypi and github tag
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD)
7 changes: 0 additions & 7 deletions dev/install

This file was deleted.

6 changes: 6 additions & 0 deletions dev/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e

isort ccy
black ccy
flake8 ccy
14 changes: 0 additions & 14 deletions dev/requirements-dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev/requirements.txt

This file was deleted.

Loading

0 comments on commit d2d099f

Please sign in to comment.