Skip to content

Commit

Permalink
Merge pull request #195 from mull-project/stanislaw/replace_poetry
Browse files Browse the repository at this point in the history
 pyproject.toml: remove Poetry
  • Loading branch information
stanislaw authored Nov 26, 2023
2 parents 195aa15 + 8e2ff43 commit 63c73dd
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 789 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,12 @@ jobs:

- name: Upgrade pip
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade pip
- name: Install Poetry
- name: Install dev dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Add Poetry to PATH
run: |
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
pip install -r requirements.dev.txt
- name: Run tests
run: |
poetry run invoke check
invoke check
15 changes: 3 additions & 12 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@ jobs:
run: |
python -m pip install --upgrade pip
- name: Install Poetry
- name: Install dev dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Add Poetry to PATH
run: |
echo "PATH=$PATH:~/.local/bin" >> $GITHUB_ENV
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
pip install -r requirements.dev.txt
- name: Run tests
run: |
poetry run invoke check
invoke check
35 changes: 6 additions & 29 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: "FileCheck.py on Windows"

# Disabling building on Windows for now.
on:
push:
branches: [ "nonsense-branch" ]
# pull_request:
# branches: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
build:
Expand All @@ -32,35 +31,13 @@ jobs:
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip
- name: Install Poetry
- name: Install dev dependencies
run: |
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
- name: "Poetry: add to %PATH%"
run: |
# Either of these should work.
echo "$env:APPDATA\pypoetry" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$env:APPDATA\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: "Poetry: print version"
run: |
poetry --version
- name: "Poetry: configure settings"
run: |
# https://github.com/python-poetry/poetry/issues/6098
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry config virtualenvs.prefer-active-python
- name: "Poetry: Install dependencies"
run: |
poetry run python --version
poetry install
pip install -r requirements.dev.txt
- name: Run tests
run: |
poetry run invoke check
invoke check
shell: bash
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.6.2
3.7.15

Loading

0 comments on commit 63c73dd

Please sign in to comment.