Skip to content

Commit

Permalink
Remove pypi release github workflow, remove unnecessary, empty commen…
Browse files Browse the repository at this point in the history
…t lines and add requirements & dev-requirements.txt
  • Loading branch information
lfse-slafleur committed Jul 9, 2024
1 parent 020ca08 commit 376b368
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 49 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,7 +27,6 @@ jobs:
with:
path: ./venv.tar
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
#

lint:
name: Lint
Expand All @@ -39,7 +37,6 @@ jobs:
matrix:
python-version: ["3.11"]
steps:
#
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
Expand All @@ -50,7 +47,6 @@ jobs:
- name: Run lint
run: |
./ci/linux/lint.sh
#
test:
name: Test
Expand All @@ -61,7 +57,6 @@ jobs:
matrix:
python-version: ["3.11"]
steps:
#
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -94,7 +89,6 @@ jobs:
# Fail the workflow if no JUnit XML was found.
# Default: true
fail-on-empty: true
#

typecheck:
name: Typecheck
Expand All @@ -105,7 +99,6 @@ jobs:
matrix:
python-version: ["3.11"]
steps:
#
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
Expand All @@ -118,7 +111,6 @@ jobs:
- name: Run typechecker
run: |
./ci/linux/typecheck.sh
#
build:
name: Build the python package
Expand All @@ -129,7 +121,6 @@ jobs:
matrix:
python-version: [ "3.11" ]
steps:
#
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
Expand All @@ -140,4 +131,3 @@ jobs:
- name: Build
run: |
./ci/linux/build_python_package.sh
#
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

76 changes: 76 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 376b368

Please sign in to comment.