Brian Stinson
8311a4e952
build the URL for the sources correctly
2016-11-28 16:21:47 -06:00
Brian Stinson
175790b8cc
pep8 spacing fixes around setup.py attributes
2016-11-28 14:34:33 -06:00
Brian Stinson
1a54304148
get the version from version.py so running from a checkout works better
2016-11-28 14:34:11 -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
83d5a866ac
Merge branch 'hotfix/0.4.5'
2016-04-27 21:23:23 -05: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
ddb17b05cb
moving the mixins to their own module to hide them in stackframes
...
Reference:
https://mail.python.org/pipermail/python-list/2012-October/632386.html
2015-07-20 16:51:20 -05:00
Brian Stinson
cf167f1c37
start trying out test cases for the new assertWarns manager
2015-07-20 00:10:26 -05:00
Brian Stinson
484791222d
make the mixin look more like the python core unittest context managers
2015-07-20 00:09:45 -05:00
Brian Stinson
5becc45d19
add an assertWarns context manager for unit tests
2015-07-19 23:28:02 -05:00
Brian Stinson
639034222f
add behavior to pick up the distro branches
2015-07-19 22:17:01 -05:00
Brian Stinson
867964318c
add a test for the the plus branch (which acts like a project)
2015-07-19 22:11:39 -05:00
Brian Stinson
a6e9d6454e
add tests for CentOS6 and CentOS7 branches
2015-07-19 22:08:11 -05:00
Brian Stinson
6c0f8da91a
add a test to be sure unmatched branches raise an exception
2015-07-19 22:00:53 -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
Brian Stinson
86b0d36840
put some properties before the initializer
2015-07-19 21:42:41 -05:00
Brian Stinson
47c4aa0677
make sure the right target gets set if common is specified at the project level
2015-07-19 21:41:48 -05:00
Brian Stinson
f7e2afbdd8
make sure the right target gets set if common is specified at the release level
2015-07-19 21:41:23 -05:00
Brian Stinson
3a7531d874
add test cases for if -common is specified in the git branch name
2015-07-19 21:40:40 -05:00
Brian Stinson
c8beba9dd8
add a test that the target gets set correctly for fully-specified branch
2015-07-19 21:36:17 -05:00
Brian Stinson
b9126c70e0
refactored tests to classes for each type of input string
2015-07-19 21:03:29 -05:00
Brian Stinson
7ae64c7539
add the DistGitDirectory class
2015-07-19 15:33:38 -05:00
Brian Stinson
ebeaf18d4e
only import what we need in init
2015-07-19 15:30:31 -05:00
Brian Stinson
c0555c1202
let's get started on a test suite
2015-07-19 15:28:14 -05:00
Brian Stinson
38f04b79b2
fix the anongiturl property so generating the SCM commit url works properly
2015-02-06 12:27:32 -06:00
Brian Stinson
3382aeba48
update to use the authenticated git url when doing a centpkg clone
2014-12-14 21:15:29 +00:00
Brian Stinson
d3f316b66c
fix config file path in centpkg.conf
2014-12-14 20:40:32 +00:00
Brian Stinson
9396ca2089
update readme for current workflow
2014-12-14 20:22:09 +00:00
Brian Stinson
02cccf671c
bump to 0.4.1
2014-12-14 19:10:23 +00:00
Brian Stinson
d6d6d7fceb
the disttag should just be el<major_version>
2014-12-14 19:09:39 +00:00
Brian Stinson
8f16b8ccdb
use the cbs koji profile specified in /etc/koji.conf.d/cbs.conf
2014-12-05 04:09:50 +00:00
Brian Stinson
f2820f3363
get ready to build version 0.2
2014-11-23 23:03:25 -06:00
Brian Stinson
0fefd979d3
use ~/.koji/config-cbs as the koji config for now, and accept most branch names
2014-11-23 22:56:27 -06:00
Brian Stinson
f12d463d98
set the disttag based on the sig branch
2014-11-23 22:54:49 -06:00
Brian Stinson
3d42683a55
set the correct lookaside hash type
2014-11-23 22:54:26 -06:00
Brian Stinson
046d91324c
load a user from the client cert
2014-11-23 22:53:07 -06:00
Brian Stinson
3f76b3309c
get the right koji buildtarget based on the sig branch
2014-11-23 22:52:30 -06:00
Brian Stinson
08ebc1b21d
add a method to tell if we are operating on a sig branch
2014-11-23 22:50:39 -06:00
Brian Stinson
b63384a593
load_kojisession works from rpkg
2014-11-23 22:21:11 -06:00