Control: tags -1 patch

Hi,

attached patch "dirspec-control-pycodestyle.patch" changes the build dependency from 
"pep8" to the replacement "pycodestyle".

The other patch "pycodestyle.patch" should be added to debian/patches and changes the test runner 
to use "pycodestyle" instead of "pep8" and fixes an error that is now reported.

Forwarding probably doesn't make sense as the last upstream commit is from 
October 2014, so I'm not sure this is still developed upstream.

Cheers,
  Joachim
--- dirspec-13.10.orig/debian/control	2019-12-23 03:26:00.000000000 +0000
+++ dirspec-13.10/debian/control	2024-08-20 20:46:24.095449672 +0000
@@ -4,7 +4,7 @@
 Build-Depends: 
  dh-python,
  debhelper (>= 7.0.50),
- pep8,
+ pycodestyle,
  pyflakes3,
  python3-all,
  python3-setuptools,
From: Joachim Bauch <ba...@struktur.de>
Subject: Run pycodestyle instead of no longer existing pep8.

Also fixes error "E275 missing whitespace after keyword" now reported.

--- dirspec-13.10.orig/run-tests
+++ dirspec-13.10/run-tests
@@ -25,5 +25,5 @@ fi

 # Run the style checks
 pyflakes3 dirspec setup.py
-pep8 --exclude=.pc --repeat . setup.py
+pycodestyle --exclude=.pc --repeat . setup.py

--- dirspec-13.10.orig/dirspec/tests/test_utils.py
+++ dirspec-13.10/dirspec/tests/test_utils.py
@@ -119,7 +119,7 @@ class TestBaseDirectoryWindows(BaseTestC
         if key in os.environ:
             current_value = os.environ[key]
             self.addCleanup(os.environ.__setitem__, key, current_value)
-            del(os.environ[key])
+            del os.environ[key]

     @skip('UnicodeEncodeError: bug #907053')
     def test_get_env_path_var(self):

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to