Skip to content

Commit fa24fcd

Browse files
Replace Pipenv with Poetry (#100)
1 parent 79bccce commit fa24fcd

File tree

11 files changed

+483
-356
lines changed

11 files changed

+483
-356
lines changed

.github/actions/install/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ description: Install dependencies
22
name: Install
33
runs:
44
steps:
5-
- run: pip install pipenv
5+
- uses: actions/setup-python@v4
6+
with:
7+
python-version: '3.10.4'
8+
- run: pip install poetry==1.1.14
69
shell: bash
7-
- run: pipenv install --dev
10+
- run: poetry install
811
shell: bash
912
using: composite

.github/workflows/pull-request.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
jobs:
22
lint:
3-
runs-on: ubuntu-latest
3+
runs-on: ubuntu-22.04
44
steps:
5-
- uses: actions/checkout@v2
6-
- uses: actions/setup-python@v2
7-
with:
8-
python-version: '3.7'
5+
- uses: actions/checkout@v3
96
- uses: ./.github/actions/install
10-
- run: pipenv run black --check .
11-
- run: pipenv run pydocstyle
7+
- run: poetry run black --check .
8+
- run: poetry run pydocstyle
9+
10+
lock:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: ./.github/actions/install
15+
- run: poetry lock --no-update
16+
- run: git diff --quiet poetry.lock
1217

1318
test:
1419
runs-on: ${{ matrix.runs-on }}
1520
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v2
18-
with:
19-
python-version: '3.7'
21+
- uses: actions/checkout@v3
2022
- uses: ./.github/actions/install
21-
- run: pipenv run python -m unittest
23+
- run: poetry run python -m unittest
2224
strategy:
2325
matrix:
2426
runs-on:
25-
- ubuntu-latest
26-
- windows-latest
27+
- ubuntu-22.04
28+
- windows-2022
2729

2830
on: pull_request

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
jobs:
2+
release:
3+
runs-on: ubuntu-22.04
4+
steps:
5+
- uses: actions/checkout@v3
6+
- uses: ./.github/actions/install
7+
- env:
8+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
9+
run: poetry publish --build
10+
11+
on:
12+
release:
13+
types:
14+
- published

.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

LICENSE renamed to LICENSE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright 2020 Elimity
190+
Copyright 2022 Elimity
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 289 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if __name__ == "__main__":
2323
## Installation
2424

2525
```sh
26-
$ pip install git+https://github.com/elimity-com/insights-client-python.git
26+
$ pip install elimity-insights-client
2727
```
2828

2929
## Compatibility

0 commit comments

Comments
 (0)