45 Commits

Author SHA1 Message Date
47bf1c2025
Revert "factory-package-news.py: Compress data files with zstd" 2023-12-12 16:27:50 +01:00
Fabian Vogt
b82749ac01 factory-package-news.py: Port from pyzstd to zstandard
ariel has only zstandard 0.13.0, so not even the .open method exists.
2023-12-11 16:26:47 +01:00
Fabian Vogt
8516c1ad8f factory-package-news.py: Compress data files with zstd
It's less than 1/3rd of the uncompressed size.
2023-12-11 16:26:47 +01:00
3b31d0860b factory-package-news: walk through every directory in the iso image
Some installation media ship packages in some non-guessable directories,
such as "Module-Python3" or "Module-Containers".

This commit walks through every directory (except /boot) in the iso
image and searches for .rpms there.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2023-08-07 11:29:24 +02:00
4b9d08a3c5 factory-package-news: use a nicer name for the forcestr function
Which is `utf8str`, thanks to dirkmueller :)

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2023-08-07 11:26:42 +02:00
17f0cd5f4f factory-package-news: support newer python3 rpm bindings
rpm's python bindings changed in version 4.15 [0] so that they actually return
utf-8 strings. Handle this case while keeping support for the older bindings such
as the ones shipped with Leap 15.

[0] 84920f8983

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2023-08-02 14:10:48 +02:00
Stephan Kulow
f86579642b Target E501 - Line too long
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
f38bd3a7ed Target E128 - Continuation line under-indented for visual indent
https://www.flake8rules.com/rules/E128.html
2022-02-18 17:35:33 +01:00
Stephan Kulow
d8f5d0874e Remove E201 - Whitespace after '('
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f Target E202 - Whitespace before ')'
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe Target E305 - Have two empty lines of a class 2022-02-18 17:11:46 +01:00
Stephan Kulow
579145b52c Target F841 - Remove unused variables 2022-02-18 17:01:38 +01:00
Stephan Kulow
0561e06cb1 Target E261 - two spaces before inline comment 2022-02-18 16:39:16 +01:00
Stephan Kulow
5df665ccc5 Targeting E123 - Closing bracket does not match indentation
https://www.flake8rules.com/rules/E123.html
2022-02-18 15:52:47 +01:00
Stephan Kulow
e52dc6ce2b Harmonize imports on using lxml for XML parsing 2022-02-18 11:16:01 +01:00
Stephan Kulow
805cd93dbe
Merge pull request #1726 from cboltz/master
truncate overlong changelogs to 100 lines + last line
2022-02-15 13:42:30 +01:00
Fabian Vogt
34fc21abc1 factory-package-news.py: Don't rely on changelogtime equality
Use an inequality check instead. That way if there's no full match (like
caused by https://github.com/openSUSE/obs-build/issues/768), it doesn't fall
back to printing the whole changelog.
2022-01-26 08:45:04 +01:00
Stephan Kulow
8b13dffe50 Remove E265 from flake ignore list 2021-09-21 14:52:46 +02:00
e62185a10a Add 'kernel-64kb' to the list of kernel packages to reduce kernel spam 2020-12-02 17:14:29 +01:00
Christian Boltz
24ea935b98
truncate overlong changelogs to 100 lines + last line 2020-04-13 19:12:42 +02:00
ad06348dcf More flake8 cleanups 2019-12-10 12:50:57 +01:00
ec88760187 Fix Flake E241
One more step towards white space sanity. Next group is E20x.
2019-12-10 08:46:02 +01:00
32ad0adc2d Fix all E22x errors
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
8483632683 Some flake8 improvements
Was bored while waiting for a test run to finish. The rule is
that two empty lines distinguish larger blocks and shouldn't be
used between functions or within functions.
2019-11-27 10:40:15 +01:00
7b46636506 factory-package-news: fixes for Tumbleweed 2019-09-19 18:44:14 +02:00
Guillaume GARDET
440827e36e factory-package-news: add aarch64 to search path 2019-07-17 15:19:38 +02:00
280761013e Fix factory-package-news to work with Python 3
https://github.com/openSUSE/openSUSE-release-tools/pull/1962
ported factory-package-news in a way to Python 3.x that made
it completely crash immediately with Python 2.x. So I guess
it is time to flip the switch and change the shebang. Also
fix the remaining fallout so that at least save and diff
are working again.
2019-05-22 20:25:54 +02:00
Stephan Kulow
595e84191e More porting to python3
Travis changed default python to 3.6, which has impact on the way
flake8 checks. So make sure we run fine under flake8 of python 3
2019-04-20 21:16:50 +02:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
6e78eb95fe Enable F405,F811 (Unused imports)
Remove imports that are either duplicate or unused
2017-10-20 01:03:00 +02:00
Jimmy Berry
b264bf0ca9 package-news: ignore non-rpm files in tree walk. 2017-03-23 18:21:43 -05:00
Jimmy Berry
b94b69703e package-news: include s390x in search path. 2017-03-23 18:21:43 -05:00
Jimmy Berry
f7c6ec22bf package-news: skip non-existant directories. 2017-03-23 18:21:43 -05:00
Ludwig Nussel
cb3c6ca3e6 fix newlines 2016-01-19 14:00:21 +01:00
Ludwig Nussel
710f96f9d7 catch vanished changelog in package 2016-01-19 11:39:31 +01:00
Ludwig Nussel
8188bcad3b remove added and remove packges, just causes confusion 2015-12-21 16:26:38 +01:00
Ludwig Nussel
417800e497 add intro text 2015-12-14 18:08:07 +01:00
Ludwig Nussel
df33c7e04d fake kernel source rpm
pretend all kernel packages are from same source rpm to avoid
excessively repeated changelogs
2015-12-14 17:43:02 +01:00
Ludwig Nussel
170e23e7ff print summary of changed packages
also print source rpm instead of first sub package
2015-12-14 17:23:39 +01:00
b536afcd9f factory-package-news: Change texts for added/removed packages 2015-11-26 15:16:27 +01:00
Christian Boltz
ef84b1d378 factory-package-news: add cosmetic white space 2014-09-10 08:56:04 +02:00
Ludwig Nussel
162d00bdd9 add an extra line break 2014-08-13 08:58:06 +02:00
Ludwig Nussel
ddc3e45d52 move factory-package-news to subdirectory 2014-08-07 14:32:23 +02:00