From 376b368ec5428b5d45292da7177edaab6d6b9cfc Mon Sep 17 00:00:00 2001 From: Sebastiaan la Fleur Date: Tue, 9 Jul 2024 15:26:49 +0200 Subject: [PATCH] Remove pypi release github workflow, remove unnecessary, empty comment lines and add requirements & dev-requirements.txt --- .github/workflows/ci.yml | 10 ----- .github/workflows/release.yml | 39 ------------------ dev-requirements.txt | 76 +++++++++++++++++++++++++++++++++++ requirements.txt | 10 +++++ 4 files changed, 86 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/release.yml create mode 100644 dev-requirements.txt create mode 100644 requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6784169..2fee70f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,6 @@ jobs: python-version: ["3.11"] name: Setup steps: - # - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -28,7 +27,6 @@ jobs: with: path: ./venv.tar name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}} - # lint: name: Lint @@ -39,7 +37,6 @@ jobs: matrix: python-version: ["3.11"] steps: - # - uses: actions/checkout@v3 - name: Restore venv uses: actions/download-artifact@v4 @@ -50,7 +47,6 @@ jobs: - name: Run lint run: | ./ci/linux/lint.sh - # test: name: Test @@ -61,7 +57,6 @@ jobs: matrix: python-version: ["3.11"] steps: - # - uses: actions/checkout@v3 - name: Restore venv uses: actions/download-artifact@v4 @@ -94,7 +89,6 @@ jobs: # Fail the workflow if no JUnit XML was found. # Default: true fail-on-empty: true - # typecheck: name: Typecheck @@ -105,7 +99,6 @@ jobs: matrix: python-version: ["3.11"] steps: - # - uses: actions/checkout@v3 - name: Restore venv uses: actions/download-artifact@v4 @@ -118,7 +111,6 @@ jobs: - name: Run typechecker run: | ./ci/linux/typecheck.sh - # build: name: Build the python package @@ -129,7 +121,6 @@ jobs: matrix: python-version: [ "3.11" ] steps: - # - uses: actions/checkout@v3 - name: Restore venv uses: actions/download-artifact@v4 @@ -140,4 +131,3 @@ jobs: - name: Build run: | ./ci/linux/build_python_package.sh - # diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e8e4974..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: PyPi release -run-name: Releasing next version 🚀 -on: - push: - tags: - - '*' - -jobs: - pypi-publish: - name: upload release to PyPI - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ "3.11" ] - # Specifying a GitHub environment is optional, but strongly encouraged - environment: release - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - - run: | - ./ci/linux/create_venv.sh - ./ci/linux/update_dependencies.sh - ./ci/linux/install_dependencies.sh - - - name: build - run: | - ./ci/linux/build_python_package.sh - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 0000000..a3b0efb --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,76 @@ +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile --constraint=requirements.txt --extra=dev --output-file=dev-requirements.txt pyproject.toml +# +black==22.1.0 + # via kpi-calculator (pyproject.toml) +build==1.0.3 + # via kpi-calculator (pyproject.toml) +bump2version==1.0.1 + # via kpi-calculator (pyproject.toml) +click==8.1.7 + # via black +coloredlogs==15.0.1 + # via + # -c requirements.txt + # kpi-calculator (pyproject.toml) +coverage[toml]==7.5.4 + # via pytest-cov +flake8==6.0.0 + # via + # flake8-pyproject + # kpi-calculator (pyproject.toml) +flake8-pyproject==1.2.3 + # via kpi-calculator (pyproject.toml) +humanfriendly==10.0 + # via + # -c requirements.txt + # coloredlogs +iniconfig==2.0.0 + # via pytest +isort==5.13.2 + # via kpi-calculator (pyproject.toml) +mccabe==0.7.0 + # via flake8 +mypy==1.5.1 + # via kpi-calculator (pyproject.toml) +mypy-extensions==1.0.0 + # via + # black + # mypy +packaging==24.1 + # via + # build + # pytest + # setuptools-git-versioning +pathspec==0.12.1 + # via black +platformdirs==4.2.2 + # via black +pluggy==1.5.0 + # via pytest +pycodestyle==2.10.0 + # via flake8 +pyflakes==3.0.1 + # via flake8 +pyproject-hooks==1.1.0 + # via build +pytest==7.3.2 + # via + # kpi-calculator (pyproject.toml) + # pytest-cov +pytest-cov==4.0.0 + # via kpi-calculator (pyproject.toml) +setuptools-git-versioning==1.13.6 + # via kpi-calculator (pyproject.toml) +tomli==2.0.1 + # via black +typing-extensions==4.12.2 + # via mypy +wheel==0.40.0 + # via kpi-calculator (pyproject.toml) + +# The following packages are considered to be unsafe in a requirements file: +# setuptools diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..28abd03 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,10 @@ +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile --output-file=requirements.txt pyproject.toml +# +coloredlogs==15.0.1 + # via kpi-calculator (pyproject.toml) +humanfriendly==10.0 + # via coloredlogs