From 7c4802eef3fdd2762d24b7f031f0d0e9305ad15d Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 16:47:31 -0500 Subject: coverall coverage --- setup.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.cfg b/setup.cfg index 3c6e79c..26da821 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,7 @@ [bdist_wheel] universal=1 + +[coverage:run] +include = + slugify/slugify.py + slugify/special.py -- cgit v1.2.1 From c23bbc1dfbd50c64c342f9e6daf488b94639e4ba Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 16:51:48 -0500 Subject: coverall omit --- .github/workflows/dev.yml | 2 +- setup.cfg | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d0cb401..729c26c 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -37,7 +37,7 @@ jobs: pycodestyle --ignore=E128,E261,E225,E501,W605 slugify test.py setup.py - name: Run test run: | - coverage run --source=slugify test.py + coverage run --include=slugify --omit=__version__.py --source=slugify test.py - name: Coveralls run: coveralls --service=github env: diff --git a/setup.cfg b/setup.cfg index 26da821..3c6e79c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,2 @@ [bdist_wheel] universal=1 - -[coverage:run] -include = - slugify/slugify.py - slugify/special.py -- cgit v1.2.1 From 57ee951f7c1c0fe48a75b198031a98046ab458fc Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 16:57:29 -0500 Subject: coverage run --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 729c26c..d0cb401 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -37,7 +37,7 @@ jobs: pycodestyle --ignore=E128,E261,E225,E501,W605 slugify test.py setup.py - name: Run test run: | - coverage run --include=slugify --omit=__version__.py --source=slugify test.py + coverage run --source=slugify test.py - name: Coveralls run: coveralls --service=github env: -- cgit v1.2.1 From 28ac37cd980e80c12bfa950d8680ff9d4826678f Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 17:05:29 -0500 Subject: remove tox --- .python-version | 5 ----- test.py | 2 +- tox.ini | 18 ------------------ 3 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 .python-version delete mode 100644 tox.ini diff --git a/.python-version b/.python-version deleted file mode 100644 index a8733ab..0000000 --- a/.python-version +++ /dev/null @@ -1,5 +0,0 @@ -3.9.2 -3.8.8 -3.7.10 -3.6.13 -pypy3.7-7.3.3 diff --git a/test.py b/test.py index 1cd56dc..752c499 100644 --- a/test.py +++ b/test.py @@ -9,7 +9,7 @@ from slugify import smart_truncate from slugify.__main__ import slugify_params, parse_args -class TestSlugification(unittest.TestCase): +class TestSlugify(unittest.TestCase): def test_extraneous_seperators(self): diff --git a/tox.ini b/tox.ini deleted file mode 100644 index a4bee82..0000000 --- a/tox.ini +++ /dev/null @@ -1,18 +0,0 @@ -[tox] -envlist = py{39,38,37,36},pypy3 - -[testenv] -deps= - -e . -commands = - python -m unittest test - -[testenv:format] -deps = pycodestyle -allowlist_externals = sh -commands = sh format.sh - -[testenv:coverage] -deps = coverage -commands = - coverage run --source=slugify test.py -- cgit v1.2.1 From 341aa39e801319c5c9de03a06c519466c4b9867e Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 17:09:20 -0500 Subject: clean readme --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 5476fbe..af10080 100644 --- a/README.md +++ b/README.md @@ -164,10 +164,6 @@ quick-brown-fox-jumps-over-lazy-dog # Running the tests -To run the tests against all environments: - - tox - To run the tests against the current environment: python test.py -- cgit v1.2.1 From e6e488d573ebbb6b3388529066652ebf41056410 Mon Sep 17 00:00:00 2001 From: "Val Neekman (AvidCoder)" Date: Wed, 16 Feb 2022 17:12:23 -0500 Subject: change log --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed1f80f..8053b87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 6.0.0 - Enable github action +- Remove tox, as we run the test on github action, the end users can refer to those test ## 5.0.2 -- cgit v1.2.1