Skip to content

Commit

Permalink
Switch from pipenv to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
wil93 committed Dec 21, 2024
1 parent 5769c14 commit e020ef0
Show file tree
Hide file tree
Showing 8 changed files with 377 additions and 244 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pipx and poetry
run: |
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx install poetry
- name: Install dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv install --dev
poetry install
- name: Test with pytest
run: |
pipenv run pytest
poetry run pytest
15 changes: 0 additions & 15 deletions Pipfile

This file was deleted.

216 changes: 0 additions & 216 deletions Pipfile.lock

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,18 @@ request.

## Running a local version of Mailipy

1. Make sure you have [pipenv](https://pipenv.pypa.io/) installed in your
1. Make sure you have [poetry](https://python-poetry.org/) installed in your
system.
2. Run `pipenv install` followed by `pipenv shell` from the root of the source
directory.
3. Install by running `python setup.py install` from the root of the source
2. Run `poetry install` followed by `poetry shell` from the root of the source
directory.
4. Now you can run `mailipy-gen` and `mailipy-send`, and these will include your
local changes. You can verify that you're running a different binary than the
one installed with `pip` by running `which mailipy-gen`: the command will
globally installed one by running `which mailipy-gen`: the command will
return the full path of the binary you're using.

## Running tests

After installing with `pipenv install` and entering the `pipenv shell`, run the
After installing with `poetry install` and entering the `poetry shell`, run the
following:

$ pytest
Expand Down
Loading

0 comments on commit e020ef0

Please sign in to comment.