Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
👷 Updated package to use Poetry (#468)
Browse files Browse the repository at this point in the history
* 👷 Updated package to use Poetry

* ✏️ Fixing a typo

Co-authored-by:  trag1c <trag1cdev@yahoo.com>

Co-authored-by: trag1c <77130613+trag1c@users.noreply.github.com>

* ✏️ Fixing a typo

Co-authored-by:  trag1c <trag1cdev@yahoo.com>

* 💚 Fixed issue with pytest not running

* 🔧 Removed commented classifiers

* 💚 Coverage runs

Co-authored-by: Yohann Boniface <edhyjox@gmail.com>
Co-authored-by: trag1c <77130613+trag1c@users.noreply.github.com>
Co-authored-by: trag1c <trag1cdev@yahoo.com>
  • Loading branch information
4 people authored May 28, 2022
1 parent dfe68e8 commit 072cbfc
Show file tree
Hide file tree
Showing 13 changed files with 1,386 additions and 256 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install dependencies (dev)
run: pip install -r packages/dev.txt
- name: Install dependencies (img)
run: pip install -r packages/img.txt
- name: Install poetry
run: pip install poetry
- name: Install base dependencies
run: poetry install
- name: Install extra dependencies
run: poetry install --extras "img speed"
- name: Run tests and collect coverage
run: |
pytest --cov=.
coverage xml
poetry run python -m pytest --cov=.
poetry run python -m coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
- name: Install Poetry
run: |
pip install -r packages/build.txt
pip install poetry
- name: Build package
run: python setup.py sdist bdist_wheel
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/setup_generator.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ python:
version: "3.8"
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
- method: pip
path: .
22 changes: 0 additions & 22 deletions Pipfile

This file was deleted.

3 changes: 0 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@
'show-inheritance': True
}

with open('../requirements.txt') as f:
autodoc_mock_imports = f.read().splitlines()

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
Loading

0 comments on commit 072cbfc

Please sign in to comment.