Commit 61a1e5d8 authored by Ximin Luo's avatar Ximin Luo
Browse files

New upstream version 1.16.0

parent a9f61153
Loading
Loading
Loading
Loading

.coveragerc

0 → 100644
+10 −0
Original line number Diff line number Diff line
[run]

omit =
    /usr/*
    tests/*

[report]
exclude_lines =
    pragma: no cover
    no cover: 2.x

.coveragerc3

0 → 100644
+17 −0
Original line number Diff line number Diff line
[run]

; extra omissions for py3 for now

omit =
    /usr/*
    tests/*
    hub/*
    util/*
    koji/daemon.py
    koji/tasks.py

[report]
exclude_lines =
    pragma: no cover
    no cover 3.x
    if six.PY2
+24 −1
Original line number Diff line number Diff line
#
# python compilation artifacts
*.pyc
*.pyo
tests/test.py
cli/kojic
builder/kojidc
#
# coverage artifacts
.coverage
htmlcov/
*,cover
#
# build artifacts
koji-[0-9]*.tar.bz2
koji-[0-9]*.src.rpm
koji-[0-9]*[0-9]/
noarch/
docs/build/
#
# misc
*.swp
.idea
.DS_STORE
.vagrant
.gitreview
devtools/*.conf
+36 −3
Original line number Diff line number Diff line
NAME=koji
SPECFILE = $(firstword $(wildcard *.spec))
SUBDIRS = hub builder koji cli docs util www plugins vm
SUBDIRS = hub builder koji cli util www plugins vm

ifdef DIST
DIST_DEFINES := --define "dist $(DIST)"
@@ -59,12 +59,28 @@ clean:
	rm -f *.o *.so *.pyc *~ koji*.bz2 koji*.src.rpm
	rm -rf koji-$(VERSION)
	for d in $(SUBDIRS); do make -s -C $$d clean; done
	coverage erase ||:

git-clean:
	@git clean -d -q -x

subdirs:
	for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done
test:
	coverage erase
	PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib coverage run \
	    --source . /usr/bin/nosetests
	coverage report
	coverage html
	@echo Full coverage report in htmlcov/index.html

test3:
	coverage erase
	PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/. coverage3 run \
	    --rcfile .coveragerc3 --source . \
	    /usr/bin/nosetests-3 \
	    tests/test_lib tests/test_cli
	coverage report --rcfile .coveragerc3
	coverage html --rcfile .coveragerc3
	@echo Full coverage report at file://${PWD}/htmlcov/index.html

test-tarball:
	@rm -rf .koji-$(VERSION)
@@ -89,6 +105,23 @@ rpm: tarball
test-rpm: tarball
	$(RPM_WITH_DIRS) $(DIST_DEFINES) --define "testbuild 1" -bb $(SPECFILE)

pypi:
	rm -rf dist
	python setup.py sdist
	# py2
	virtualenv build_py2
	build_py2/bin/pip install --upgrade pip setuptools wheel virtualenv
	build_py2/bin/python setup.py bdist_wheel
	rm -rf build_py2
	# py3
	python3 -m venv build_py3
	build_py3/bin/pip install --upgrade pip setuptools wheel virtualenv
	build_py3/bin/python setup.py bdist_wheel
	rm -rf build_py3

pypi-upload:
	twine upload dist/*

tag::
	git tag -a $(TAG)
	@echo "Tagged with: $(TAG)"

README.md

0 → 100644
+57 −0
Original line number Diff line number Diff line
koji - RPM building and tracking system
=======================================

Koji is an RPM-based build system. The Fedora Project uses Koji for [their build system](https://koji.fedoraproject.org/koji/), as do [several other projects](https://fedoraproject.org/wiki/Koji/RunsHere).

Koji's goal is to provide a flexible, secure, and reproducible way to build software.

Key features:

* New buildroot for each build
* Robust XML-RPC APIs for easy integration with other tools
* Web interface with SSL and Kerberos authentication
* Thin, portable command line client
* Users can create local buildroots
* Buildroot contents are tracked in the database
* Versioned data

Communicate
-----------

* Comments, questions, bugs, feedback, ideas, help requests? We'd love to hear from you.
* Mailing lists:
  * Development: [koji-devel AT lists.fedorahosted.org](https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.org/)
  * User discussion and Fedora-specific topics: [buildsys AT lists.fedoraproject.org](https://lists.fedoraproject.org/archives/list/buildsys@lists.fedoraproject.org/)
* IRC chat: #koji on irc.freenode.net

Bugs/RFEs
---------

If you have found a bug or would like to request a new feature, please [report an issue in Pagure](https://pagure.io/koji/issues).

Download
--------

The koji source code can be downloaded with git via:

    git clone https://pagure.io/koji.git

You may browse code at https://pagure.io/koji

Archived releases can be found at https://pagure.io/koji/releases

Documentation
-------------

See: https://docs.pagure.org/koji/


Related Software
----------------

* [Mock](https://fedoraproject.org/wiki/Projects/Mock): The tool Koji uses to generate buildroots
* [Yum](http://yum.baseurl.org/)
* [Mash](https://pagure.io/mash)
* [Koji Tools](https://pagure.io/koji-tools): Various utilities for Koji
* [Kojiji](https://github.com/release-engineering/kojiji): Koji Java Interface
* [txkoji](https://github.com/ktdreyer/txkoji): Async interface to Koji, using Twisted
Loading