47b58ac350
Merge pull request #1095 from abitrolly/build-decsc
...
Reworded `build` help and added debug prints
2022-08-12 09:40:06 +02:00
4423a5d4a9
release 1.0.0b1
2022-08-04 16:19:59 +02:00
Anatoli Babenia
0036aa931e
Print debug messages to stderr
2022-08-04 17:12:57 +03:00
Anatoli Babenia
988f19f9ce
Document build
repo selection logic
2022-08-03 13:36:31 +03:00
Anatoli Babenia
0660c14a62
Add debug print for REPO (and desc just in case)
2022-08-03 10:40:29 +03:00
Anatoli Babenia
0b6039025f
Shortened build
help and add debug prints
...
Debug prints are needed for troubleshooting ARCH selection problem in
https://github.com/openSUSE/osc/pull/241#issuecomment-1203463612
2022-08-03 08:36:51 +03:00
Anatoli Babenia
d9bc6d1c12
Remove unused code for discontinued distributions
2022-08-02 14:47:56 +03:00
Anatoli Babenia
5751222bd0
Remove extra line from the end of osc dists
output
2022-08-02 14:45:23 +03:00
Anatoli Babenia
3ae3c88a95
Dedent main code for get_distributions
2022-08-02 14:45:23 +03:00
Anatoli Babenia
4d6a6aaf96
Move output formatting from core
into commandline
...
This makes `get_distributions()` return list of dicts.
2022-08-02 14:45:23 +03:00
Anatoli Babenia
0bc142df91
Move format_table
to util.helper
2022-08-02 14:45:23 +03:00
Anatoli Babenia
fed3de9c11
Add a function for table formatting
2022-08-02 14:45:23 +03:00
Anatoli Babenia
10a156d4ca
Fix spelling mistake in get_distributions
method name
2022-08-02 14:45:23 +03:00
abfc30e59d
Merge pull request #1090 from abitrolly/nopy2
...
Remove Python 2 code
2022-08-01 08:44:54 +02:00
Anatoli Babenia
560e556d36
Do not ask for login for -h,--help
2022-07-29 18:59:25 +03:00
Anatoli Babenia
ce91a9ff5a
Remove Python 2 code
2022-07-29 17:26:39 +03:00
eb83b42f32
Fix several undefined-variable issues reported by pylint
2022-07-28 21:01:16 +02:00
feb53212dd
Modernize code with pyupgrade
...
pyupgrade --keep-percent-format --py36-plus `find -name '*.py'`
2022-07-28 19:14:12 +02:00
e7af9cebb3
Merge pull request #1088 from dmach/python3-import-cleanup
...
Clean imports up, drop python 2 fallbacks
2022-07-28 17:41:10 +02:00
229913a77f
Clean imports up, drop python 2 fallbacks
2022-07-28 13:17:43 +02:00
ad8d2bd67e
Remove duplicate taking care of sys.stderr in babysitter:main.
2022-07-28 11:21:35 +02:00
e16e196fa1
Merge pull request #1040 from dmach/fix/multibuild-commandline
...
Fix -M/--multibuild user experience, allow globs where possible
2022-07-28 11:03:34 +02:00
84fa637556
Add XDG compatible location for osc plugins.
...
I believe it is generally a good idea to move stuff from $HOME to
XDG-compatible directories.
2022-07-28 10:26:13 +02:00
6397a6070d
Replace osc-wrapper.py with entry_points.
2022-07-28 09:46:34 +02:00
85dbd9f626
Merge pull request #1000 from dmach/urllib3
...
Switch http_request() to urllib3
2022-07-27 11:27:18 +02:00
0d701556f2
Warn when using HTTP connection. Make HTTPS the default.
...
It is possible to omit protocol in -A/--apiurl now,
because https:// is the default.
2022-07-27 11:15:21 +02:00
93bc0e4731
Switch http_request() to urllib3
...
Use connection pools for better performance.
Replace M2Crypto with cryptography and urllib3's ssl context.
2022-07-27 11:15:21 +02:00
69f75a0278
Open osc 1.0 development
...
Upcoming changes:
- drop python2 support
- replace M2Crypto with cryptography
- replace cmdln.py/optparse with argparse
- various cleanups
2022-07-27 10:46:55 +02:00
d8d4b0831c
release 0.181.0
2022-07-26 21:34:07 +02:00
133a6e340c
Fix crash when 'pass' is not set in the config file
2022-07-26 15:07:40 +02:00
97b0961fe0
Add missing attributes to Package when scm_url is set
2022-07-26 13:13:37 +02:00
ff1ae5e25e
Fix multibuild packages in osc wipebinaries
2022-07-26 09:51:16 +02:00
f70b480cab
Fix multibuild packages in osc jobhistory
2022-07-26 09:51:16 +02:00
a51524e5af
Fix multibuild packages in osc buildhistory
2022-07-26 09:51:16 +02:00
1a4942da83
Fix multibuild packages in osc build
2022-07-26 09:51:16 +02:00
5198b6334b
Fix multibuild packages in osc buildinfo
2022-07-26 09:51:16 +02:00
0fd93f7443
Fix multibuild packages in osc triggerreason
2022-07-26 09:51:16 +02:00
182e8e20a4
Fix multibuild packages in osc remotebuildlog
2022-07-26 09:51:15 +02:00
26ad5aa35c
Fix multibuild packages in osc buildlog
2022-07-26 09:51:15 +02:00
502bff50ff
Fix multibuild packages in osc restartbuild
2022-07-26 09:51:15 +02:00
30a3106375
Fix multibuild packages in osc sendsysrq
2022-07-26 09:51:15 +02:00
55ad41d33b
Fix multibuild packages in osc results
2022-07-26 09:51:15 +02:00
6ccdb9cfe3
Fix multibuild packages in osc rebuild
2022-07-26 09:51:15 +02:00
082986daf9
core: Add functions for glob matching of multibuild flavors
2022-07-26 09:51:15 +02:00
cc393758df
Fix errorneous double quotes in core.py
2022-07-26 09:51:15 +02:00
4deaf2b9c3
Merge pull request #1077 from abitrolly/relconf
...
Fix failure to create config in current dir
2022-07-26 09:37:29 +02:00
Anatoli Babenia
6a9398a97b
Fix failure to create config in current dir
...
This uses exception based protection from parallel execution
https://github.com/openSUSE/osc/pull/1077#discussion_r928976845
2022-07-26 09:04:15 +03:00
637cfe8471
Merge pull request #1023 from dmach/fix/622-additional-changes
...
parseRevisionOption(): Raise an exception on invalid revisons
2022-07-25 18:26:06 +02:00
9786aafa51
Update list of considered file names for ssh key autodetection
...
The file names come from ssh(1) man page.
2022-07-25 17:54:43 +02:00
f83e9a23d5
Merge pull request #1074 from dmach/pr1049-v2
...
RFC: ssh: recognize gpg keys (yubikey usage)
2022-07-25 13:52:31 +02:00
a7e5e12c5a
Allow users to prefer ssh key over password auth
...
If `sshkey` config option is set, then osc prefers it over password auth.
If `sshkey` config option is not set and the server supports both basic
and signature auth, basic auth is used and ssh key is NOT auto-detected.
Users who want to use ssh auth with ssh key auto-detection can now leave
the `pass` config option empty to trigger ssh key auto-detection.
The ssh-key autodetection picks the first key that matches:
- key loaded to ssh-agent (`ssh-add -l`) that has a public key in ~/.ssh
- ~/.ssh/{id_ed25519,id_rsa}
It is also recommended to use Obfuscated or Plaintext credentials manager.
Please be aware that storing passwords using these credentials managers
is unsafe, because they're stored in plain text on disk.
Example:
[<apiurl>]
user=<username>
pass=
# ssh key is auto-detected because `pass` is empty
sshkey=
credentials_mgr_class=osc.credentials.ObfuscatedConfigFileCredentialsManager
2022-07-22 08:20:44 +02:00
Martin Wilck
870d861b61
ssh: recognize gpg keys (yubikey usage)
...
When using ssh keys from gpg, there are no private key files on
disk. The public keys are available from "ssh-add -L". Conveniently,
users store the public keys in some ".pub" file under ~/.ssh
(see e.g. https://serverfault.com/questions/906871/force-the-use-of-a-gpg-key-as-an-ssh-key-for-a-given-server ;
this is also necessary to use IdentityFile= in ssh itself).
Thus public key files can't be ignored any more in list_ssh_dir_keys().
"ssh-keygen -Y sign" works nicely with a public key file if the agent
has access to the private key.
2022-07-11 13:08:34 +02:00
Adrian Schröter
932d4c5fa1
fix operating on _project meta
...
The removed code is plain wrong, ../_project/_meta?meta=1 exists
2022-07-11 11:16:15 +02:00
8d843b5968
Revert "interpretation of string literals in messages"
...
Emojis were broken due to this commit.
The revert causes a change in behavior:
"\n" no longer gets resolved to a newline.
It is suggested to do the following instead:
$ osc <command> ... -m "first line
second line"
This reverts commit 16fda3115c
.
2022-07-07 15:42:22 +02:00
dba4041af0
Merge pull request #1066 from dmach/fix-git-version-github
...
Fix detecting version from git in archives from GitHub
2022-07-07 13:40:08 +02:00
194f829297
fix product build rpm caching
...
* src/noarch rpm packaages needs to be stored in scheduler architecture to avoid
conflicts of the multiple versions
* avoid removal of every downloaded file
2022-07-07 12:30:55 +02:00
Adam Majer
f10247014d
Process input with configurable project separators
...
This allows for usage of configurable project name separator in
the command line inputs
Fixes : #1024
2022-07-04 15:05:05 +02:00
Adam Majer
c4c2d2a933
Add project_separator to config file
...
This allows for arbitrary string to be used as a project
separator instead of restricting oneself to : or directory
structure.
Fixes : #1024
2022-07-04 15:05:05 +02:00
2aaefb7c79
Fix detecting version from git in archives from GitHub
...
There seem to be a bug in how GitHub generates archives.
"Format:" and "$" characters get removed from the version string,
setting it to:
version = "%(describe:tags=true)"
2022-07-04 14:43:21 +02:00
515db3dea0
release 0.180.0
2022-06-24 15:23:26 +02:00
fec667c70d
Fix crash in determining git version when git command is not available
2022-06-24 12:24:53 +02:00
e6061da1d6
Merge pull request #1056 from dmach/fix-invalid-credentials-manager-traceback
...
Don't traceback on invalid credentials manager
2022-06-24 08:54:11 +02:00
9a5c775d47
Merge pull request #1062 from adrianschroeter/gitupdate
...
fix crash on "osc up" for git based package/projects
2022-06-24 08:53:42 +02:00
45268e5cb5
Merge pull request #1037 from dmach/fix/git-version-compatible-with-pip
...
Make osc git version compatible with pip to mute the PEP 440 warning
2022-06-24 08:52:17 +02:00
253d760a76
fix crash on "osc up" for git based package/projects
2022-06-24 08:46:49 +02:00
5e8413ecb6
Don't traceback on invalid credentials manager
2022-06-21 08:33:38 +02:00
lethliel
d9e2d958c1
declare OscHTTPSignatureAuthHandler as a new-style class
...
remove illegal character in comment
2022-06-14 14:27:48 +02:00
295ea7f356
Warn when trying to commit a prj/pac managed in scm
2022-06-08 14:18:33 +02:00
40067dce0a
Auto-generate git versions compatible with PEP 440
...
`git archive` is configured to set osc version according to the git tag
via .gitattributes/export-subst
2022-06-08 08:48:50 +02:00
0b4158590c
release 0.179
2022-06-02 14:29:11 +02:00
0a1d47d920
Merge pull request #1034 from andreas-schwab/master
...
Fix check for empty details
2022-06-02 13:31:00 +02:00
dec6f7135d
Merge pull request #1043 from dirkmueller/download_url_quoting
...
Fix quoting of download urls
2022-06-02 13:28:59 +02:00
eac5434700
Merge pull request #928 from jengelh/master
...
osc co/up: highlight pending requests' header
2022-06-02 10:23:58 +02:00
fad89f8e09
Merge pull request #1027 from adrianschroeter/github
...
add another exception for github URLs for "osc add"
2022-06-02 10:21:02 +02:00
1715163166
Merge pull request #994 from dmach/update-sphinx-configuration
...
Update Sphinx configuration
2022-06-02 10:09:38 +02:00
a223dd085a
Merge pull request #1009 from dmach/aggregatepac-flavor
...
Support flavors in aggregatepac
2022-06-02 10:06:21 +02:00
cf5da11b26
Enable md5 revisions in osc log
2022-06-02 10:02:32 +02:00
ca9dc30643
parseRevisionOption(): Raise an exception on invalid revisions
2022-06-02 10:01:57 +02:00
1f8fc339de
ssh key authentification fixes
...
- do not crash when having binary files in ~/.ssh
- support also RSA key setups
2022-06-01 16:23:02 +02:00
Mihai Moldovan
f2474fa7f0
commandline: handle calls without arguments gracefully
...
Fixes the following error:
```
% osc
Traceback (most recent call last):
File "/usr/bin/osc", line 45, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python3.10/site-packages/osc/babysitter.py", line 67, in run
return prg.main(argv)
File "/usr/lib/python3.10/site-packages/osc/cmdln.py", line 341, in main
self.postoptparse()
File "/usr/lib/python3.10/site-packages/osc/commandline.py", line 137, in postoptparse
if self._get_canonical_cmd_name(self.args[0]) == "help":
IndexError: list index out of range
```
2022-05-30 20:43:37 +02:00
ac6b615575
release 0.178
2022-05-24 14:19:37 +02:00
Marco Strigl
c3d535c3b2
Merge pull request #1012 from adrianschroeter/obs_git
...
initial obs-git support
2022-05-24 11:39:45 +02:00
02b3d70e9c
Merge pull request #1032 from mlschroe/master
...
Implement the Signature authentication scheme
2022-05-23 13:14:08 +02:00
Michael Schroeder
badcfc283c
Remove no longer used modules
2022-05-23 11:23:13 +02:00
Michael Schroeder
b8f76f7990
OscHTTPSignatureAuthHandler: try to guess ssh key from the keys added to ssh-agent
...
Based on a patch by Daniel Mach
2022-05-23 11:23:05 +02:00
Dirk Müller
b7ed6534eb
trailing whitespace cleanup
2022-05-20 12:00:44 +02:00
Dirk Müller
7b759dc8bc
Prefer list comprehensions
2022-05-20 11:57:06 +02:00
Dirk Müller
8ba078a872
use percent-quoted url for download url generation
...
We need to percent-quote base urls because they will
be used in named-percent-substitution afterwards.
2022-05-20 11:57:06 +02:00
Marco Strigl
ed78dcbfd2
Merge pull request #1033 from dmach/linkdiff-missing-added-file
...
linkdiff: Raise an exception when an added file is missing
2022-05-12 10:51:15 +02:00
Marco Strigl
560bd953e0
Merge pull request #1035 from dmach/fix/do-not-require-login-in-help
...
Never require login in the help command
2022-05-12 10:48:10 +02:00
deccf5252b
Merge pull request #1038 from Firstyear/20220506-highlight-md5-faults
...
Show the md5s that are failing to validate
2022-05-09 09:12:51 +02:00
mls
0b826613d9
Integrate signature authentication in the OscHTTPAuthHandler
2022-05-06 16:30:15 +02:00
mls
99ba3719c7
Add support for the Signature authentication scheme
...
See https://tools.ietf.org/id/draft-cavage-http-signatures-12.html
2022-05-06 16:29:58 +02:00
William Brown
1ba375d81f
Show the md5s that are failing to validate
2022-05-06 12:27:43 +10:00
0d40ff8ce6
osc co/up: highlight pending requests' header
...
Found myself to mentally miss the request list of 1 pending rq and so
I am pitching the idea of subtle boldening for experimentation.
2022-05-05 11:24:33 +02:00
cc0b8f1606
Never require login in the help command
2022-05-05 11:07:28 +02:00
Dirk Müller
56ad831a39
Add osc helm type build support
2022-05-04 23:17:20 +02:00
c875ca2886
initial obs-git support
...
* init command is working inside of a git repository
* downloadassets command fetches references assets from build description
* checkout is cloning from git
2022-04-29 09:59:13 +02:00
Andreas Schwab
e0168046a1
Fix check for empty details
2022-04-28 15:34:14 +02:00
Dirk Müller
3ed913c007
Whitespace fixes as expected by pycodestyle/pep8
2022-04-27 14:13:18 +02:00