Skip to content

Commit

Permalink
Merge pull request #92 from vaibhavsingh97/feat/poetry-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsingh97 authored Nov 17, 2024
2 parents 5d4b419 + e5bfbf4 commit ad2ed0f
Show file tree
Hide file tree
Showing 11 changed files with 424 additions and 271 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.9', '3.10']
python-version: ['3.8', '3.13']
os: [ubuntu-latest, macos-latest]
environment:
name: random word ci
Expand All @@ -40,16 +40,12 @@ jobs:

- name: Install packages
run: |
pip install pipenv
pip install autopep8
pip install pytest
pipenv install
pipenv run python setup.py install
make init
- name: Python Lint
run: |
make lint
- name: Run tests
run: |
pipenv run pytest
make test
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
help:
@echo ' init'
@echo ' install pipenv and all project dependencies'
@echo ' install poetry and all project dependencies'
@echo ' test'
@echo ' run all tests'
@echo ' build'
Expand All @@ -17,24 +17,22 @@ help:

init:
@echo 'Install python dependencies'
pip install pipenv
pip install autopep8
pipenv install
pipenv shell
python setup.py install
pip install poetry
poetry install
poetry shell

test:
@echo 'Run all tests'
pytest

build:
python3 -m build
poetry build

test_upload:
python -m twine upload -r testpypi dist/*

upload:
python -m twine upload dist/*
poetry publish

clean:
find . -name '*.pyc' -exec rm -f {} +
Expand Down
12 changes: 0 additions & 12 deletions Pipfile

This file was deleted.

193 changes: 0 additions & 193 deletions Pipfile.lock

This file was deleted.

Loading

0 comments on commit ad2ed0f

Please sign in to comment.