1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-29 09:13:02 +01:00
Commit Graph

5257 Commits

Author SHA1 Message Date
989121b271 Extend 'osc fork' command with '--target-project' and '--target-package' options 2025-03-18 14:49:14 +01:00
cd0b5730a3 Merge pull request #1743 from dmach/dependson-_multibuild
Change 'osc whatdependson' command to take multiple '-M' options incl. wildcards
2025-03-18 13:53:57 +01:00
96a4f5ecb2 Change 'osc whatdependson' command to take multiple '-M' options incl. wildcards 2025-03-17 20:55:03 +01:00
9fe5e09427 Fix MultibuildFlavorResolver to consider an empty flavor during glob match 2025-03-17 20:47:52 +01:00
b1c481a691 Fix MultibuildFlavorResolver to work with <package> _multibuild elements 2025-03-17 20:47:05 +01:00
d8aef1b9f5 Merge pull request #1740 from dmach/fix-apiurl
Use -A/--apiurl specified on the command-line even if running from a checkout
2025-03-17 15:35:08 +01:00
e8e45e5153 Merge pull request #1741 from asdil12/line
Don't highlight trailing whitespaces as error in otherwise empty lines
2025-03-17 15:34:49 +01:00
de6f1a6be8 Merge pull request #1742 from dmach/fix-osc-fork-print_gitea_settings
Fix 'osc fork' crash in print_gitea_settings()
2025-03-17 15:33:52 +01:00
085b16b968 Fix 'osc fork' crash in print_gitea_settings() 2025-03-17 14:16:03 +01:00
Dominik Heidler
85d6d9dc0b Don't highlight trailing whitespaces as error in otherwise empty lines
In obs we are often managing diffs of patches.
In patches trailing whitespaces are normal.
So ignore any `[+-]+\s` line.
2025-03-17 13:55:36 +01:00
bdcee5b173 Use -A/--apiurl specified on the command-line even if running from a checkout 2025-03-17 13:54:06 +01:00
8099e18b7c Merge pull request #1729 from adrianschroeter/scmsync_template
Add scmsync element to meta template
2025-03-17 08:44:26 +01:00
727be81021 Merge pull request #1732 from ermiertrat/patch-1
Set pacsuffix='deb' if binarytype=='deb' in osc/build.py
2025-03-16 17:32:30 +01:00
2d46090d24 Merge pull request #1737 from asdil12/line
Don't highlight unchanged empty lines as trailing whitespace lines
2025-03-16 17:27:55 +01:00
Dominik Heidler
a83f27e17f Don't highlight empty lines as trailing whitespace lines
Fixes 897e2224
2025-03-14 11:43:12 +01:00
ermiertrat
4a32b6c290 Set pacsuffix='deb' if binarytype=='deb'
Properly handle binarytype == 'deb' when setting pacsuffix to allow debbuilder package caching.
Fixes the change introduced in 4edd4799a1 .
2025-03-13 00:39:30 -05:00
5e6e79731a Add scmsync element to meta template 2025-03-10 13:38:11 +01:00
a808f79b53 Merge pull request #1727 from dmach/fix-quickstart-git-obs-login-add
Fix 'git-obs login add' command invocation in git-obs-quickstart documentation
2025-03-06 21:01:57 +01:00
305affd979 Fix 'git-obs login add' command invocation in git-obs-quickstart documentation 2025-03-06 13:12:55 +01:00
7299cd488d Merge pull request #1726 from dmach/improve-models
Improve models
2025-03-06 11:29:07 +01:00
a83c67b8b2 Add type hint to XmlModel.XML_TAG 2025-03-06 11:13:53 +01:00
acacc3185a Mute mypy errors on field property assignment 2025-03-06 10:06:55 +01:00
90897c4009 Support new 'X | None' union syntax in field types 2025-03-06 09:59:41 +01:00
636c906ecd release 1.13.0 1.13.0 2025-03-03 09:16:54 +01:00
c990b7157d Merge pull request #1724 from dmach/show_project_sourceinfo-chunks
Change show_project_sourceinfo() to split a huge request into many and join the results to workaround GET limitations
2025-03-03 09:04:41 +01:00
7a31684672 Change show_project_sourceinfo() to split a huge request into many and join the results to workaround GET limitations 2025-03-03 08:47:40 +01:00
02edc1afd7 behave: Add missing 'Enabled' field to the expected token output 2025-03-03 08:47:06 +01:00
884e3d0193 Merge pull request #1723 from dmach/fork-obs-package
Add 'git-obs fork-obs-package' command for forking packages managed in Gitea
2025-03-03 08:31:22 +01:00
7cc01d1e28 Merge pull request #1712 from dmach/git-obs-pr-review
Implement 'git-obs pr review' command
2025-03-03 08:29:39 +01:00
75daac6ca6 Merge pull request #1676 from crazyscientist/pypi-publish-1279
GH action for PyPI publication
2025-03-03 08:29:08 +01:00
42807ce3d8 Add 'osc fork' command for forking a package with sources managed in Gitea 2025-02-28 11:45:02 +01:00
53d5e1044d Merge pull request #1711 from JanZerebecki/fixci
Fix build-install CI job
2025-02-27 14:59:57 +01:00
d0e8db0afd Make 'rev' option in ScmsyncObsinfo.from_api() optional 2025-02-27 14:57:28 +01:00
ad8a38a0f8 Make GitObsCommand.gitea_{conf,login,conf} properties writable 2025-02-27 14:57:28 +01:00
7db2781628 Merge pull request #1717 from dmach/token-enabled
Support 'enabled' field in tokens
2025-02-27 14:50:35 +01:00
00091df4bc Merge pull request #1722 from JanZerebecki/silencepylint
Fix or silence remaining pylint errors
2025-02-27 14:50:14 +01:00
dcdf4cb3d9 Fix or silence remaining pylint errors
Fix these by adding a default empty assignment:

osc/commandline.py:3382:62: E0606: Possibly using variable 'filter_pattern' before assignment (possibly-used-before-assignment)
osc/commandline.py:6692:18: E0606: Possibly using variable 'msg' before assignment (possibly-used-before-assignment)
osc/core.py:2051:23: E0606: Possibly using variable 'file_changed' before assignment (possibly-used-before-assignment)

These could probably be fixed by making the code easier to follow. By
silencing them for now and making the CI pass, it is easier to not
regress.

osc/commandline.py:3269:55: E0601: Using variable 'incident' before assignment (used-before-assignment)
osc/commandline.py:3276:55: E0601: Using variable 'priority' before assignment (used-before-assignment)

This is pylint not understanding that the try is for catching this case
and only importing when available:

osc/conf.py:77:4: E0401: Unable to import 'keyring' (import-error)
2025-02-27 14:32:09 +01:00
77943fc92a Merge pull request #1721 from JanZerebecki/appeasepylint
Fix a few pylint errors
2025-02-27 10:47:24 +01:00
b133604097 Fix possible use before assignment
Doing the assignment conditionally doesn't make sense here, so move it
outside the condition.

osc/commandline.py:8311:15: E0606: Possibly using variable 'p' before assignment (possibly-used-before-assignment)
2025-02-26 18:49:56 +01:00
9e1e05e1a6 Add type annotation to appease pylint
This always throws an exception, so anntotating it NoReturn allows
pylint to notice some exhaustive choice, removing this false errors:

osc/commandline.py:6581:78: E0606: Possibly using variable 'arch' before assignment (possibly-used-before-assignment)
2025-02-26 18:49:53 +01:00
7a153ee28c Remove tautological condition to appease pylint
The exception above would have already triggered otherwise. Thus
removing this pylint error:

osc/commandline.py:4371:38: E0601: Using variable 'package' before assignment (used-before-assignment)
2025-02-26 18:35:02 +01:00
fea3516ba6 Add type annotation to appease pylint
This always throws an exception, so anntotating it NoReturn allows
pylint to notice some exhaustive choice, removing these false errors:

osc/commandline.py:2232:68: E0606: Possibly using variable 'dst_package' before assignment (possibly-used-before-assignment)
osc/commandline.py:2448:68: E0606: Possibly using variable 'dst_package' before assignment (possibly-used-before-assignment)
2025-02-26 18:34:59 +01:00
c984b7f098 Add git-obs Quickstart documentation and man page 2025-02-25 16:39:18 +01:00
273ec23194 Merge pull request #1720 from adrianschroeter/docker_deb
Fix local building of deb dockerfile
2025-02-25 16:37:07 +01:00
7e0da3f900 Allow 'git-obs login' subcommands to prompt for Gitea tokens 2025-02-25 11:37:03 +01:00
d43a507443 Fix local building of deb dockerfile 2025-02-25 11:03:56 +01:00
922a116035 Merge pull request #1716 from dmach/fix-git-project-detection-endless-loop
Fix endless loop in detecting git project
2025-02-24 16:00:51 +01:00
fb1fb55b69 Support 'enabled' field in tokens 2025-02-24 15:48:23 +01:00
ef451897ff Fix endless loop in detecting git project 2025-02-24 15:46:34 +01:00
10fcb102b6 Merge pull request #1715 from dmach/fix-scm_url-scmsync_obsinfo-subdir
Fix getting scm_url from scmsync_obsinfo that has subdir set
2025-02-24 14:29:27 +01:00