Skip to content

Commit

Permalink
Move to purely poetry install (#394)
Browse files Browse the repository at this point in the history
* Removal of setup.py for poetry editable.

* Addition of install testing.

* Make python versions strings to avoid 3.1 Python version.

* Version tick for dev2.
  • Loading branch information
FrankD412 committed May 16, 2022
1 parent 798c0b9 commit ee9de62
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 87 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,44 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: ci
on: [pull_request, push]
on:
push:
branches: main # proposed addition
pull_request:

jobs:
flake8-linting:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install flake8
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
env:
POETRY_VIRTUALENVS_CREATE: false

- name: Install flake8
run: |
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
test-install:
needs: [ linting ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Test install in editable
run: |
python -m pip install --upgrade pip
python -m pip install -e .
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "maestrowf"
version = "1.1.9.dev1"
version = "1.1.9.dev2"
description = "A tool to easily orchestrate general computational workflows both locally and on supercomputers."
license = "MIT License"
classifiers = [
Expand Down Expand Up @@ -65,9 +65,8 @@ tox-pyenv = "*"


[build-system]
requires = ["poetry>=0.12", "cryptography<3"]
build-backend = "poetry.masonry.api"

requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/LLNL/maestrowf/issues"
Expand Down
73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit ee9de62

Please sign in to comment.