From 044c84fc0ccf8c3ba4532b6d08f429f37c004b42 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Fri, 23 Aug 2024 23:05:09 +0200 Subject: [PATCH] extract editable install from `requirements-dev.in` --- .github/workflows/ci-cd.yml | 5 +++-- .gitignore | 2 +- CONTRIBUTING.rst | 5 +++-- README.rst | 5 +++-- requirements-dev.in | 5 ----- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 8f98c9a3..d0009334 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -70,8 +70,9 @@ jobs: - name: Lock and sync dependencies run: | python -m pip install -U pip pip-tools - pip-compile requirements-dev.in - pip-sync requirements-dev.txt + pip-compile --all-extras pyproject.toml requirements-dev.in + pip-sync + pip install -e ".[awscli,boto3]" - name: Run pre-commit hooks if: matrix.python-version == '3.11' run: | diff --git a/.gitignore b/.gitignore index 189d3141..aa97482a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # generated by users and intentionally not pushed to the repo -requirements-dev.txt +requirements.txt # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 6e4466ee..289439e4 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -23,8 +23,9 @@ For example, using *virtualenvwrapper* commands could look like:: After that, please install libraries required for development:: $ pip install pip-tools - $ pip-compile requirements-dev.in - $ pip-sync requirements-dev.txt + $ pip-compile --all-extras pyproject.toml requirements-dev.in + $ pip-sync + $ pip install -e ".[awscli,boto3]" Congratulations, you are ready to run the test suite:: diff --git a/README.rst b/README.rst index c721ce73..308c1212 100644 --- a/README.rst +++ b/README.rst @@ -182,8 +182,9 @@ secret accessible via environment variables: :: $ pip install pip-tools - $ pip-compile requirements-dev.in - $ pip-sync requirements-dev.txt + $ pip-compile --all-extras pyproject.toml + $ pip-sync + $ pip install -e ".[awscli,boto3]" $ export AWS_ACCESS_KEY_ID=xxx $ export AWS_SECRET_ACCESS_KEY=xxx $ export AWS_DEFAULT_REGION=xxx # e.g. us-west-2 diff --git a/requirements-dev.in b/requirements-dev.in index c1b46fb8..1567ea46 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -23,8 +23,3 @@ moto[server,s3,sqs,awslambda,dynamodb,cloudformation,sns,batch,ec2,rds]~=4.2.9 pre-commit~=3.5.0 pytest-asyncio~=0.23.8 tomli; python_version < "3.11" # Requirement for tests/test_version.py - - -### (editable) aiobotocore along with dependencies and extra dependencies - --e .[awscli,boto3]