From 4e0b3bd59c37a10b8ec0085bcfd42dfd52c447d6 Mon Sep 17 00:00:00 2001 From: HgO Date: Sun, 14 Aug 2022 15:32:43 +0200 Subject: [PATCH] remove requirements.txt --- .gitlab-ci.yml | 5 ++--- CONTRIBUTING.md | 2 +- MANIFEST.in | 1 - docker/Dockerfile | 2 +- requirements.txt | 11 ----------- 5 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 requirements.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7325a27..06a27a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,6 @@ stages: key: files: - setup.py - - requirements.txt paths: - .cache/pip - ${VIRTUAL_ENV} @@ -36,8 +35,7 @@ install: script: - apk add --no-cache gcc g++ yaml-dev python3-dev git - python3 -m venv "${VIRTUAL_ENV}" - - pip install -r requirements.txt - - pip install . + - pip install .[all] - pip install -U build twine cache: policy: pull-push @@ -81,6 +79,7 @@ publish test: extends: .pip template stage: publish script: + - apk add --no-cache git - python -m build - twine upload --repository testpypi ./dist/* cache: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1198fed..92ae06c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ There are some python dependencies that are required for linting/testing etc. You can install them with: ``` -pip install -U -r requirements.txt +pip install .[test] ``` ## Code style diff --git a/MANIFEST.in b/MANIFEST.in index 435687d..19f2c1e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1 @@ -include requirements.txt recursive-include matrix_alertbot/resources * diff --git a/docker/Dockerfile b/docker/Dockerfile index 9dd5330..03808af 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -68,7 +68,7 @@ COPY setup.py ./setup.py RUN pip install --no-warn-script-location ".[e2e]" # Now copy the source code -COPY *.py *.md *.in requirements.txt ./ +COPY *.py *.md *.in ./ COPY matrix_alertbot/*.py ./matrix_alertbot/ COPY matrix_alertbot/resources ./matrix_alertbot/resources diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5031bfc..0000000 --- a/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -coverage>=6.4.1 -black>=22.6.0 -flake8>=4.0.1 -flake8-comprehensions>=3.10.0 -isort>=5.10.1 -mypy>=0.961 -pytest>=7.1.2 -pytest-asyncio>=0.18.3 -freezegun>=1.2.1 -types-PyYAML>=6.0.9 -types-setuptools>=62.6.0