91 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
Dominik Heidler
c374e81477 Move factory-package-news-web.py script to gunicorn
This script is used eg. for the /snapshot-changes/opensuse/Tumbleweed
route and was using the WSGIScriptAlias apache command.
With the switch to nginx we need this more modern approach.
2023-06-05 12:53:34 +02:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01: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
27c364b0c9 Target E251 - Unexpected spaces around keyword
https://www.flake8rules.com/rules/E251.html
2022-02-18 17:28:13 +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
ae734ba555 Fix indent of statements E127
https://www.flake8rules.com/rules/E127.html
2022-02-18 14:23:59 +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
Stephan Kulow
a8f7146baf Remove E713 offense from flaker 2021-09-21 14:20:08 +02:00
Stephan Kulow
40ed91e582 Package: Drop systemd services
Those were used before we moved to gocd scheduling
2021-07-12 14:20:19 +02:00
32e8cf46ff
Update email address for Factory mailing list 2021-04-26 13:44:13 +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
ea3b07568c Fix E203
This fixes incorrect whitespacing inside dictionaries.
2019-12-10 08:54:32 +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
247f695d4c Convert factory-package-news-web.py to python3 2019-10-09 14:50:39 +02: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
Stephan Kulow
cdd6dc4f06 Run factory announcer on gocd
Ported the announcer to python3 and made the config parsing a little
easier. The current state is no longer stored as filename, but in a
config file
2019-05-31 13:43:31 +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
4c8ade1a93 flake8: utilize raw strings to avoid invalid escape character warnings. 2018-10-24 16:34:16 -05: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
Simon Lees
ac7e566418 Fix punctuation
Signed-off-by: Simon Lees <sflees@suse.de>
2018-05-31 20:00:44 +09:30
Simon Lees
9d990376ce
Update announcer.py to ask people to report bugs
Rather then replying to the generated email we would like people to create new issues on bugzilla.opensuse.org
2018-05-31 19:30:06 +09:30
Jimmy Berry
66a670a37f systemd: ensure all services have a relaxed RuntimeMaxSec.
The value should allow ample time for seldom larger runs and such and is
purely a safe-guard from a service being stuck for weeks until noticed. If
any values turn out to be too small simply increase.
2018-05-10 23:42:16 -05:00
Jimmy Berry
39ef75493d Change references to osc-plugin-factory to openSUSE-release-tools. 2018-03-16 14:58:27 -05:00
Jimmy Berry
20ac07bcda announcer: handle dot in build version detected from iso. 2018-01-25 16:56:15 -06:00
Jimmy Berry
66514cbd75 announcer: provide defaults for sender, to, and relay.
Drop from relevant config files.
2018-01-25 16:56:15 -06:00
Jimmy Berry
e8c72dae2c announcer: provide proper packaging and generic templated service. 2018-01-25 16:56:10 -06:00
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
Jimmy Berry
2abf28f274 news/web: allow dot in version. 2018-01-17 16:40:55 -06:00