Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyproject.toml: remove Poetry #195

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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