diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acde199..81cbb47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,5 +14,6 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - - run: pip install -r requirements.txt -r requirements-tests.txt - - run: python -m pytest -vv + - run: pip install poetry==1.8.3 + - run: poetry install --with dev + - run: poetry run pytest -vv diff --git a/README.md b/README.md index 52406ee..fe59c17 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,10 @@ This project implements the [ASAM OpenScenario XML Checker](checker_bundle_doc.m - [Installation and usage](#installation-and-usage) - [Installation using pip](#installation-using-pip) - [Installation from source](#installation-from-source) - - [Default Python](#default-python) - - [Poetry](#poetry) - [Example output](#example-output) - [Register Checker Bundle to ASAM Quality Checker Framework](#register-checker-bundle-to-asam-quality-checker-framework) - [Linux Manifest Template](#linux-manifest-template) - [Tests](#tests) - - [Install using pip](#install-using-pip) - - [Install using poetry](#install-using-poetry) - - [Execute tests](#execute-tests) - [Contributing](#contributing) @@ -55,20 +50,7 @@ python -m qc_openscenario.main --help ### Installation from source -After cloning the repository, there are two options to install from source. - -1. Default Python on the machine -2. [Poetry](https://python-poetry.org/) - -#### Default Python - -```bash -pip install -r requirements.txt -``` - -This will install the needed dependencies to your local Python. - -#### Poetry +After cloning the repository, install the project using [Poetry](https://python-poetry.org/). ```bash poetry install @@ -123,20 +105,11 @@ To register this Checker Bundle in Linux, use the [linux_manifest.json](manifest To run the tests, you need to install the extra test dependency after installing from source. -### Install using pip - -```bash -pip install -r requirements-tests.txt -``` - -### Install using poetry - ```bash poetry install --with dev ``` -### Execute tests - +To execute tests ```bash python -m pytest -vv @@ -162,12 +135,6 @@ You can check more options for pytest at its [own documentation](https://docs.py For contributing, you need to install the development requirements besides the test and installation requirements, for that run: -```bash -pip install -r requirements-dev.txt -``` - -or - ```bash poetry install --with dev ``` diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 6db7a43..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1 +0,0 @@ -black>=24.4.2 diff --git a/requirements-tests.txt b/requirements-tests.txt deleted file mode 100644 index 7326dd3..0000000 --- a/requirements-tests.txt +++ /dev/null @@ -1 +0,0 @@ -pytest>=8.2.2 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 31aa761..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -lxml>=5.2.2 -asam-qc-baselib @ git+https://github.com/asam-ev/qc-baselib-py@develop