www-misc/urlwatch: fix failure when pycodestyle is not installed
authorLouis Sautier <sbraz@gentoo.org>
Sun, 10 May 2020 10:22:24 +0000 (12:22 +0200)
committerLouis Sautier <sbraz@gentoo.org>
Sun, 10 May 2020 10:26:37 +0000 (12:26 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch [new file with mode: 0644]
www-misc/urlwatch/urlwatch-2.18-r1.ebuild [moved from www-misc/urlwatch/urlwatch-2.18.ebuild with 90% similarity]

diff --git a/www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch b/www-misc/urlwatch/files/urlwatch-2.18-pycodestyle-requirement.patch
new file mode 100644 (file)
index 0000000..587a55a
--- /dev/null
@@ -0,0 +1,15 @@
+diff --git a/setup.py b/setup.py
+index 5f85aaf..7466787 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,9 +17,7 @@ if sys.version_info < (3, 3):
+ m['name'] = 'urlwatch'
+ m['author'], m['author_email'] = re.match(r'(.*) <(.*)>', m['author']).groups()
+ m['description'], m['long_description'] = docs[0].strip().split('\n\n', 1)
+-m['install_requires'] = ['minidb', 'PyYAML', 'requests', 'keyring', 'pycodestyle', 'appdirs', 'lxml', 'cssselect']
+-if sys.version_info < (3, 4):
+-    m['install_requires'].extend(['enum34'])
++m['install_requires'] = ['minidb', 'PyYAML', 'requests', 'keyring', 'appdirs', 'lxml', 'cssselect']
+ if sys.platform == 'win32':
+     m['install_requires'].extend(['colorama'])
+ m['entry_points'] = {"console_scripts": ["urlwatch=urlwatch.cli:main"]}
similarity index 90%
rename from www-misc/urlwatch/urlwatch-2.18.ebuild
rename to www-misc/urlwatch/urlwatch-2.18-r1.ebuild
index 4c0c01c582b3cb34d1ae919d96094c6fd076e532..d8fcfd698a28e0c5172699605b3c5a2e25a0d5a9 100644 (file)
@@ -36,6 +36,10 @@ BDEPEND="
        )
 "
 
+# This will be in the next release
+# https://github.com/thp/urlwatch/commit/44e862282d39a6e23f67c3c0240a93cccbb41a55
+PATCHES=( "${FILESDIR}/${P}-pycodestyle-requirement.patch" )
+
 DOCS=( CHANGELOG.md README.md )
 
 distutils_enable_tests nose