d7ee98833c
Merge pull request #1105 from lethliel/add_version_command
...
add version command to print the used version
2022-08-22 09:16:47 +02:00
04ffd0727c
Merge pull request #1106 from M0ses/fix_resend_files_on_failure
...
reset "file current position" on errors
2022-08-18 14:10:07 +02:00
Frank Schreiner
6c7ad021c8
reset "file current position" on errors
...
If an error occurs while sending a file to the API (e.g. 401), the io handle
is reused and the current postion is at the end of the file. This results in an
empty value.
This patch takes care that the current file postion gets resetted
if a retransmission is required.
2022-08-18 12:06:06 +00:00
lethliel
4b2bfb0b80
add version command to print the used version
2022-08-17 22:21:02 +02:00
f86fb66521
Merge pull request #991 from dmach/cmdln
...
Replace unmaintained cmdln.py with a custom code
2022-08-12 11:14:49 +02:00
f04035de81
GHA: test if rpmbuild passes
2022-08-12 10:55:48 +02:00
2e50b39ff3
Add spec file
2022-08-12 10:55:48 +02:00
8f9cd713de
tests: remove comments from oscrc fixtures
2022-08-12 10:06:00 +02:00
6cb7412749
Remove duplicated --debug and --verbose options
...
Additional changes:
* rename getbinaries --debug to --debuginfo to avoid conflicts
* switch conf['verbose'] from int to bool
The changes were needed because the new argparser behaves differently
and commands such as `osc ls` ran in verbose mode by default.
2022-08-12 10:06:00 +02:00
84c97ab625
Fix crash caused by concatenating bytes with string
2022-08-12 10:06:00 +02:00
be8a5268a8
Replace unmaintained cmdln.py with a custom code
...
Cmdln.py is unmaintained for years and uses deprecated optparse.
Let's replace it with a simpler custom code. Also remove code
that generates man page, we'll replace it with a 3rd party tool.
2022-08-12 10:05:59 +02:00
e469c2c184
Merge pull request #1041 from AdamMajer/master
...
Add support for project separator
2022-08-12 10:03:23 +02:00
47b58ac350
Merge pull request #1095 from abitrolly/build-decsc
...
Reworded `build` help and added debug prints
2022-08-12 09:40:06 +02:00
6c602f23e8
Create a missing directory when setup.py is called with --build-lib
1.0.0b1
2022-08-05 13:19:12 +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
43337afdf5
Merge pull request #1093 from abitrolly/distformat
...
Move out table formatting in `osc dist` into helper function
2022-08-02 15:43:53 +02: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
12c17db756
Merge pull request #1045 from Thaodan/rpm_extras_requires
...
Add python-rpmextras_require for rpm signature verification
2022-08-01 09:03:02 +02:00
Björn Bidar
4dc27bd374
Add python-rpm extras_require for rpm signature verification
...
The dependency was added in 8fb9669ae4
but not specified.
2022-08-01 08:51:23 +02:00
abfc30e59d
Merge pull request #1090 from abitrolly/nopy2
...
Remove Python 2 code
2022-08-01 08:44:54 +02:00
be5492581a
Merge pull request #1091 from abitrolly/helpanon
...
Do not ask for login for `-h,--help`
2022-08-01 08:30:06 +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
4a67768cbd
Merge pull request #1089 from dmach/pyupgrade-py36-plus
...
Modernize code with pyupgrade
2022-07-29 08:57:53 +02: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
b119e6311b
Merge pull request #1086 from mcepl/xdg-plugins
...
Remove duplicate taking care of sys.stderr in babysitter:main.
2022-07-28 11:36:07 +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
d8f5ac023d
Merge pull request #1013 from mcepl/xdg-plugins
...
Add XDG compatible location for osc plugins.
2022-07-28 10:48:42 +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
2cb5a1e5cc
Merge pull request #527 from mcepl/entry_points
...
Replace osc-wrapper.py with entry_points.
2022-07-28 10:24:37 +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
1.0.0b0
2022-07-27 10:46:55 +02:00
d8d4b0831c
release 0.181.0
0.181.0
2022-07-26 21:34:07 +02:00