lrossett
4588ec7272
using git.Repo instead of git.cmd
2021-05-25 00:51:28 +00:00
lrossett
b201d4afe0
do not use branch pattern name if using a forked origin
2021-05-25 00:51:28 +00:00
Mohan Boddu
464a71d87f
Disabling pushing to c9s branch in the fork
...
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2021-05-11 15:42:04 -04:00
Merlin Mathesius
329e001c49
Add MBS configuration
...
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2021-05-05 13:54:59 -05:00
Brian Stinson
3055b37279
update the lookaside location
...
Signed-off-by: Brian Stinson <bstinson@redhat.com>
2021-04-28 01:36:14 +00:00
lrossett
6bb6dfb49d
set correct c9s branchre
2021-04-19 08:33:25 -03:00
Carl George
5b7b4629fa
Determine username from GitLab API
2021-04-16 16:40:34 -05:00
lrossett
29dd93721c
lookaside repo name fix
2021-04-16 12:56:30 -03:00
Carl George
5b6d175224
Enable user config
...
Read both `/etc/rpkg/centpkg.conf` and `~/.config/rpkg/centpkg.conf`
config files, merging the results. Also define a `--user-config` flag
to override the later config path, similar to `--config`. This approach
is borrowed from fedpkg.
Fixes #23
2021-04-15 22:02:09 -05:00
Carl George
8e89ac5638
Add stream koji profile with public URLs
2021-04-13 18:39:39 -05:00
lrossett
794ab0a8b7
dynamic cli with no need for sig extra checks
2021-04-13 18:38:20 -05:00
Carl George
96fedb1fa8
Import cli module in top level package
...
This is necessary for the man page generator to work.
2021-04-08 16:12:22 -05:00
lrossett
3bff023602
bash completion
2021-04-08 11:27:47 -03:00
Ondrej Nosek
9a602e67b2
Rename forked project to avoid conflict
...
Project will be renamed during the fork. New name & path template is
"centos_<namespace>_<project>" instead of <project>.
Signed-off-by: Ondrej Nosek <onosek@redhat.com>
2021-03-30 22:37:48 +02:00
Ondrej Nosek
80f38de2d6
Create fork of the active repository by subcommand
...
Adds new command 'fork' that calls API method which forks active
repository for the given (or active) user and creates a remote record
(named after user) in git configuration.
GitLab Personal Access Token have to be added to the config for
proper functionality.
Signed-off-by: Ondrej Nosek <onosek@redhat.com>
2021-03-30 21:12:58 +02:00
lrossett
065f9c3885
remove type hint
2021-03-26 12:34:43 -03:00
James Antill
4027252911
Remove explicit git+ from anon git url.
2021-03-24 03:14:23 +00:00
James Antill
dda40dd5a5
Override build URL for Koji.
...
Import fc261daf and ce8e9d4b commits (mostly) from Fedpkg.
2021-03-24 03:14:23 +00:00
James Antill
ed14055b6d
Import rhpkg source_entry_type change.
2021-03-12 13:37:49 -05:00
James Antill
19f4c144bf
Add "git+" to start of git urls, tested by Troy.
2021-03-12 12:04:54 -05:00
James Antill
0f7184767c
Fixup centos_cert for py3 compat.
2021-03-09 17:44:31 -05:00
Michal Konečný
0d832c631a
Add centpkg-sig
...
Add executable centpkg-sig which allows user to interact with CentOS
Linux dist-git and CentOS Linux koji instance.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-02-25 13:53:23 +01:00
Michal Konečný
5df5935062
Another commands tested
...
With this commit these commands were tested:
* sources
* new-sources
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-02-24 16:42:59 +01:00
Michal Konečný
31716f2b6e
Clone command is working
...
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-02-23 12:05:45 +01:00
Michal Konečný
370301a702
Add --config argument
...
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-02-22 17:23:43 +01:00
Brian Stinson
6e343c0de4
lint fixes
2021-02-11 20:51:53 -06:00
Brian Stinson
a86b09d261
tweak the sig config a little more
...
Signed-off-by: Brian Stinson <bstinson@redhat.com>
2021-02-11 20:45:49 -06:00
Brian Stinson
6a0d61ad82
tweak the expected CentOS Stream config
2021-02-11 20:16:53 -06:00
Brian Stinson
3edf28ae80
Lots of changes, starting to try out 2 configs for the distro/SIG
...
buildsystems
2021-02-09 23:02:00 -06:00
Brian Stinson
3b4c6d2480
do an explicit version in setup.py
2021-02-09 23:01:43 -06:00
Brian Stinson
8b3983597a
take the target from the DistGitDir, it knows how to generate that
2018-11-15 17:03:05 -06:00
Brian Stinson
95f00e9e07
actually, centpkg should assume it is the correct site if we do not detect the distgit layout
2018-11-15 13:02:01 -06:00
Brian Stinson
a394b15127
big update for a new rpkg
2018-11-14 22:28:34 -06:00
Brian Stinson
894f00cb6f
update version info for 0.4.6
2016-11-28 16:25:18 -06:00
Brian Stinson
8311a4e952
build the URL for the sources correctly
2016-11-28 16:21:47 -06:00
Brian Stinson
481e96a724
move the version string on its own
2016-11-28 14:33:34 -06:00
Pavel Šimerda
2cfa04e75d
accomodate latest rpkg git master
...
Avoid the following traceback.
Could not execute clone: __init__() got an unexpected keyword argument 'distgit_namespaced'
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.4/centpkg", line 19, in <module>
main()
File "/home/pavlix/src/centpkg/src/centpkg/__main__.py", line 70, in main
sys.exit(client.args.command())
File "/usr/lib64/python3.4/site-packages/pyrpkg/cli.py", line 1029, in clone
self.cmd.clone(self.args.module[0],
File "/usr/lib64/python3.4/site-packages/pyrpkg/cli.py", line 87, in cmd
self.load_cmd()
File "/usr/lib64/python3.4/site-packages/pyrpkg/cli.py", line 117, in load_cmd
distgit_namespaced=dg_namespaced
TypeError: __init__() got an unexpected keyword argument 'distgit_namespaced'
Signed-off-by: Pavel Šimerda <pavlix@pavlix.net>
2016-11-28 13:54:59 -06:00
Brian Stinson
d60709c4b1
setup: use the __version__ attribute to set the version in setup.py
...
Conflicts:
setup.py
2016-04-27 21:22:00 -05:00
Brian Stinson
05c687c5f4
__init__: accept the distgit_namespaced kwarg to the commands class
2016-04-27 21:16:35 -05:00
Brian Stinson
0da767d512
use the centos_cert lib from python-centos
2015-07-24 22:45:23 -05:00
Brian Stinson
b35b8717cf
rpkg is using new functions to validate file checksums
2015-07-24 19:49:19 -05:00
Brian Stinson
3ab1c85425
move the _is_sigbranch check into the distgit directory class, and set the target appropriately
2015-07-24 19:46:39 -05:00
Brian Stinson
a1a2e22b97
grab the OS version from the distgitdir object
2015-07-24 19:41:59 -05:00
Brian Stinson
55c7521156
enable the default clog command
2015-07-24 19:40:00 -05:00
Brian Stinson
283e9510d6
enable the default mock-config method
2015-07-24 19:39:49 -05:00
Brian Stinson
1fe6e4da57
reimplement the unused-patches command for the CentOS layout
2015-07-24 19:39:31 -05:00
Brian Stinson
e7fd56b5d0
handle old branches (like virt7) but raise a warning
2015-07-20 16:54:11 -05:00
Brian Stinson
639034222f
add behavior to pick up the distro branches
2015-07-19 22:17:01 -05:00
Brian Stinson
35f2c1b38a
add a comment to the place in the initializer where we handle the 'common' bits
2015-07-19 21:46:40 -05:00
Brian Stinson
9af8c49a62
add the target property, and change the initializer to handle the cases where common is specified in the git branch
2015-07-19 21:43:56 -05:00