lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.17-14-ga280d53

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.17-14-ga280d53



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  a280d53af4c65ea9731ab2aa99f676114ac20ee1 (commit)
       via  8a28e388890f0bcd0ada9df846562080bda96bf3 (commit)
      from  e831d07a7f8c01a22b10d67f716a94c9ec456cd2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=a280d53af4c65ea9731ab2aa99f676114ac20ee1

commit a280d53af4c65ea9731ab2aa99f676114ac20ee1
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Mon Jul 4 15:02:21 2022 +0200

    Upgrade to CodeQL Action v2
    
    
https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fb6ec44..d1c552c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -59,10 +59,10 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v2
     - name: Initialize CodeQL
-      uses: github/codeql-action/init@v1
+      uses: github/codeql-action/init@v2
       with:
         languages: python
     - name: Build
-      uses: github/codeql-action/autobuild@v1
+      uses: github/codeql-action/autobuild@v2
     - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v1
+      uses: github/codeql-action/analyze@v2

https://arthurdejong.org/git/python-stdnum/commit/?id=8a28e388890f0bcd0ada9df846562080bda96bf3

commit 8a28e388890f0bcd0ada9df846562080bda96bf3
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Apr 9 23:45:36 2022 +0200

    Switch from nose to pytest
    
    Nose hasn't seen a release since 2015 and sadly doesn't work with Python
    3.10.
    
    See https://github.com/nose-devs/nose/issues/1099

diff --git a/setup.cfg b/setup.cfg
index ab00d3f..197450a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,23 +8,20 @@ group=root
 [bdist_wheel]
 universal=1
 
-[nosetests]
-with-doctest=true
-doctest-extension=doctest
-doctest-options=+IGNORE_EXCEPTION_DETAIL,+NORMALIZE_WHITESPACE
-with-coverage=true
-cover-branches=true
-cover-package=stdnum
-cover-inclusive=true
-cover-erase=true
-cover-html=true
-cover-html-dir=coverage
-cover-min-percentage=100
+[tool:pytest]
+addopts = --doctest-modules --doctest-glob="*.doctest" stdnum tests 
--ignore=stdnum/iso9362.py --cov=stdnum --cov-report=term-missing:skip-covered 
--cov-report=html
+doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
+
+[coverage:run]
+branch = true
 
 [coverage:report]
 fail_under=100
 show_missing=true
 
+[coverage:html]
+directory = coverage
+
 [build_sphinx]
 all_files  = 1
 
diff --git a/tox.ini b/tox.ini
index 9256613..c353262 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,9 +3,9 @@ envlist = py{27,35,36,37,38,39,py,py3},flake8,docs
 skip_missing_interpreters = true
 
 [testenv]
-deps = nose
-       coverage
-commands = nosetests
+deps = pytest
+       pytest-cov
+commands = pytest
 setenv=
     PYTHONWARNINGS=all
     py27: VIRTUALENV_SETUPTOOLS=43.0.0

-----------------------------------------------------------------------

Summary of changes:
 .github/workflows/test.yml |  6 +++---
 setup.cfg                  | 21 +++++++++------------
 tox.ini                    |  6 +++---
 3 files changed, 15 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
python-stdnum