From d0a5272fe0d750d09d8775049551a388b5c07b5f Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 18:22:35 -0300 Subject: [PATCH 01/11] added gha for updating license --- .github/workflows/update-license-year.yml | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/update-license-year.yml diff --git a/.github/workflows/update-license-year.yml b/.github/workflows/update-license-year.yml new file mode 100644 index 00000000..c8fd1684 --- /dev/null +++ b/.github/workflows/update-license-year.yml @@ -0,0 +1,49 @@ +name: Update License Year + +on: + schedule: + - cron: "0 3 1 1 *" # 03:00 AM on January 1 + push: + branches: + - main + - master + +permissions: + contents: write + pull-requests: write + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set Current year + run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV" + + - name: Set Previous Year + run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV" + + - name: Update LICENSE + uses: jacobtomlinson/gha-find-replace@v2 + with: + find: ${{ env.PREVIOUS }} + replace: ${{ env.CURRENT }} + include: "LICENSE" + regex: false + + - name: Commit files + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git commit -m "Updated License Year" -a + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + title: Update License Year + branch: update-license From 3b22e19c709a992c2cbdc4aec70d96f38c00a96c Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 18:52:34 -0300 Subject: [PATCH 02/11] specific setuptools --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d5cc5ae..11c2c391 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | - pip install -U setuptools pip + pip install -U setuptools==58.1.0 pip pip install -e .[cpphash,redis,uwsgi] - name: Run tests From 30e58333a8fec0579fc92548d00e48d8efa35da7 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 19:08:13 -0300 Subject: [PATCH 03/11] fixing dep --- .github/workflows/ci.yml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11c2c391..cfb3b6b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | - pip install -U setuptools==58.1.0 pip + pip install -U setuptool pip pip install -e .[cpphash,redis,uwsgi] - name: Run tests diff --git a/setup.py b/setup.py index f1ca7219..c2324792 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ 'uwsgi': ['uwsgi>=2.0.0'], 'cpphash': ['mmh3cffi==0.2.1'], }, - setup_requires=['pytest-runner'], + setup_requires=['pytest-runner==5.2'], classifiers=[ 'Environment :: Console', 'Intended Audience :: Developers', From a2c4e58d9208985ed77123178625a49570d4d68b Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 19:13:58 -0300 Subject: [PATCH 04/11] dep --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c2324792..20389bb9 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ TESTS_REQUIRES = [ 'flake8', - 'pytest>=6.2.3', + 'pytest~=6.2.3', 'pytest-mock>=3.5.1', 'coverage', 'pytest-cov', @@ -39,7 +39,7 @@ 'uwsgi': ['uwsgi>=2.0.0'], 'cpphash': ['mmh3cffi==0.2.1'], }, - setup_requires=['pytest-runner==5.2'], + setup_requires=['pytest-runner'], classifiers=[ 'Environment :: Console', 'Intended Audience :: Developers', From 90911b31b69a83a1efe7fcfa87928b30ef528bec Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 19:15:50 -0300 Subject: [PATCH 05/11] fix ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb3b6b1..2d5cc5ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | - pip install -U setuptool pip + pip install -U setuptools pip pip install -e .[cpphash,redis,uwsgi] - name: Run tests From c52422bc96448bb06a8a888a6bc2999c512858a7 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Fri, 18 Feb 2022 19:26:36 -0300 Subject: [PATCH 06/11] pytest- --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 20389bb9..6a969a6a 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ 'uwsgi': ['uwsgi>=2.0.0'], 'cpphash': ['mmh3cffi==0.2.1'], }, - setup_requires=['pytest-runner'], + setup_requires=['pytest-runner==5.2'], classifiers=[ 'Environment :: Console', 'Intended Audience :: Developers', From 85bda7b2dab814491490aaf1616d86f68427f66e Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Mon, 21 Feb 2022 14:32:17 -0300 Subject: [PATCH 07/11] check --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d5cc5ae..eba91750 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,9 @@ jobs: pip install -U setuptools pip pip install -e .[cpphash,redis,uwsgi] + - name: pip freeze + run: pip freeze + - name: Run tests run: python setup.py test From ae7d96e281b9b75ff38f650f72c46cd8f8963e70 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Mon, 21 Feb 2022 14:45:43 -0300 Subject: [PATCH 08/11] pytest-mock --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a969a6a..d4b02593 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ TESTS_REQUIRES = [ 'flake8', 'pytest~=6.2.3', - 'pytest-mock>=3.5.1', + 'pytest-mock==3.6.1', 'coverage', 'pytest-cov', ] From 2df25052822e875f3d6f68af1c42ec04745d0209 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Mon, 21 Feb 2022 14:48:14 -0300 Subject: [PATCH 09/11] pytest-mock --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d4b02593..40e369f5 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,8 @@ TESTS_REQUIRES = [ 'flake8', 'pytest~=6.2.3', - 'pytest-mock==3.6.1', - 'coverage', + 'pytest-mock>=3.5.1', + 'coverage==6.2', 'pytest-cov', ] From 38ecd21e934853f6b29433fc13884f19db0754f1 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Mon, 21 Feb 2022 14:53:05 -0300 Subject: [PATCH 10/11] pytest-mock --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 40e369f5..0f16f8f0 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,9 @@ 'flake8', 'pytest~=6.2.3', 'pytest-mock>=3.5.1', - 'coverage==6.2', + 'coverage', 'pytest-cov', + 'tomli==1.2.3', ] INSTALL_REQUIRES = [ From 18dbcace1923f9b5ab4fa7b0e6fef607e736a839 Mon Sep 17 00:00:00 2001 From: Matias Melograno Date: Mon, 21 Feb 2022 14:57:18 -0300 Subject: [PATCH 11/11] updated dependencies --- .github/workflows/ci.yml | 3 --- setup.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eba91750..2d5cc5ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,9 +31,6 @@ jobs: pip install -U setuptools pip pip install -e .[cpphash,redis,uwsgi] - - name: pip freeze - run: pip freeze - - name: Run tests run: python setup.py test diff --git a/setup.py b/setup.py index 0f16f8f0..e0edc158 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ TESTS_REQUIRES = [ 'flake8', - 'pytest~=6.2.3', + 'pytest>=6.2.3', 'pytest-mock>=3.5.1', 'coverage', 'pytest-cov', @@ -40,7 +40,7 @@ 'uwsgi': ['uwsgi>=2.0.0'], 'cpphash': ['mmh3cffi==0.2.1'], }, - setup_requires=['pytest-runner==5.2'], + setup_requires=['pytest-runner'], classifiers=[ 'Environment :: Console', 'Intended Audience :: Developers',