Skip to content

Commit 8211b50

Browse files
committed
updated project system around poetry (#29)
* updated project system around poetry * github workflows * updated package dependencies * added compliance CLI tool
1 parent 60f3cb4 commit 8211b50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+523
-5199
lines changed

.github/workflows/run-tests.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,30 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-22.04]
12-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
with:
1717
submodules: recursive
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
22+
- name: Install poetry
23+
uses: abatilo/actions-poetry@v4
24+
- name: Setup a local virtual environment (if no poetry.toml file)
2325
run: |
24-
pip install pip==20.0.2
25-
pip install -r requirements.txt
26-
python setup.py bdist_wheel
27-
pip install dist/*.whl
26+
poetry config virtualenvs.create true --local
27+
poetry config virtualenvs.in-project true --local
28+
- uses: actions/cache@v3
29+
name: Define a cache for the virtual environment based on the dependencies lock file
30+
with:
31+
path: ./.venv
32+
key: venv-${{ hashFiles('poetry.lock') }}
33+
- name: Install the project dependencies
34+
run: poetry install
35+
2836
- name: Test with pytest
2937
run: |
3038
./scripts/sync-tests

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
path = jmespath.test
33
url = https://github.com/jmespath-community/jmespath.test.git
44
branch = main
5+
[submodule "tests/jmespath.org"]
6+
path = tests/jmespath.org
7+
url = http://github.com/jmespath/jmespath.test.git

CHANGELOG.rst

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

MANIFEST.in

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

0 commit comments

Comments
 (0)