1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-02-04 03:48:58 +01:00
Commit Graph

5238 Commits

Author SHA1 Message Date
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
60d1fb2eb1 Merge pull request #1710 from dmach/change-git-store-detection
Change how git projects and packages are detected
2025-02-24 13:18:21 +01:00
9e1f71bdf8 Merge pull request #1714 from dmach/checkout-deleted-revision
Fix 'osc checkout' command to support deleted packages incl. revisions
2025-02-24 09:18:59 +01:00
be5101b21a Fix getting scm_url from scmsync_obsinfo that has subdir set 2025-02-24 09:12:22 +01:00
897e2224e0 Highlight trailing whitespaces in diffs 2025-02-21 14:13:45 +01:00
ea24281859 Implement 'git-obs pr review' command 2025-02-21 14:13:12 +01:00
5f4a4704da Fix 'osc checkout' command to support deleted packages incl. revisions 2025-02-21 13:29:22 +01:00
e37c717447 Change how git projects and packages are detected 2025-02-21 13:16:37 +01:00
104700230f behave: Allow running nested containers with gitea actions 2025-02-20 16:30:10 +01:00
abcc830fc9 Allow manual triggering of all Github CI jobs 2025-02-18 18:22:47 +01:00
7298f5cddf Fix build-install CI job
The job unit-ro is from a different file, so "needs" can not find it.
Remove it as there is no dependency.

An alternative would be to merge both files into one. It might save work
on some broken PRs.
2025-02-18 18:22:38 +01:00
3b328c0501 Merge pull request #1709 from andreas-schwab/master
Fix missing spaces in help string
2025-02-18 14:34:21 +01:00
5f26dc8582 Merge pull request #1708 from badshah400/master
rpmlint: Add --multibuild-package option.
2025-02-18 13:38:11 +01:00
ef6f8fb4f3 Fix missing spaces in help string 2025-02-17 15:29:43 +01:00
Atri Bhattacharya
e5c4a4407e rpmlint: help msg for invoking command in PKG dir. 2025-02-17 16:25:22 +05:30
Atri Bhattacharya
39bc4b9a78 rpmlint: Add --multibuild-package option.
Allow passing `--multibuild-package` or `-M` to the rpmlint command to
specify flavors for a multibuild package. This makes it consistent with
other commands, for example `buildlog`, where this option is similarly
used.
2025-02-17 16:25:03 +05:30
718bc8c0db release 1.12.1 1.12.1 2025-02-13 14:56:37 +01:00
7b15faf53d Merge pull request #1705 from dmach/fix-git-project-local-build
Improve detecting git packages, use .osc metadata from project in parent directory
2025-02-13 14:50:56 +01:00
0f5a26f73c Merge pull request #1702 from dmach/fix-scmsync_obsinfo.revision-None
Fix assembling scm_url when scmsync_obsinfo.revision is None
2025-02-13 14:49:01 +01:00
47cd6b37c8 Merge pull request #1701 from dmach/fix-detecting-binaries-v2
Fix typo in core.binary() that caused text files being detected as binary
2025-02-13 14:48:31 +01:00