clime b7b0ec2
%if 0%{?rhel} > 7 || 0%{?fedora}
clime b7b0ec2
%global __python %_bindir/python3
clime b7b0ec2
%global with_python3 1
clime b7b0ec2
%else
clime b7b0ec2
%global __python %_bindir/python2
clime b7b0ec2
%global with_python2 1
7f7bb18
%endif
7f7bb18
cec0899
Name:       copr-cli
1e842db
Version:    1.83
1e842db
Release:    1%{?dist}
cec0899
Summary:    Command line interface for COPR
cec0899
cec0899
License:    GPLv2+
clime 468a63f
URL:        https://pagure.io/copr/copr
659873b
04de88b
# Source is created by:
659873b
# git clone %%url && cd copr
659873b
# tito build --tgz --tag %%name-%%version-%%release
659873b
Source0:    %name-%version.tar.gz
cec0899
cec0899
BuildArch:  noarch
clime b7b0ec2
clime b7b0ec2
Requires:      wget
clime b7b0ec2
cec0899
BuildRequires: asciidoc
cec0899
BuildRequires: libxslt
cec0899
BuildRequires: util-linux
clime b7b0ec2
clime b7b0ec2
%if %{with python3}
bf6f2c3
Requires:      python3-copr >= 1.89
clime b7b0ec2
Requires:      python3-jinja2
clime b7b0ec2
Requires:      python3-simplejson
659873b
Requires:      python3-humanize
clime b7b0ec2
clime b7b0ec2
Recommends:    python3-progress
clime b7b0ec2
bf6f2c3
BuildRequires: python3-copr >= 1.89
clime b7b0ec2
BuildRequires: python3-devel
clime b7b0ec2
BuildRequires: python3-jinja2
659873b
BuildRequires: python3-humanize
clime 9793077
BuildRequires: python3-pytest
clime b7b0ec2
BuildRequires: python3-setuptools
clime 9793077
BuildRequires: python3-simplejson
bf6f2c3
BuildRequires: python3-munch
7f7bb18
%else
bf6f2c3
Requires:      python-copr >= 1.89
clime b7b0ec2
Requires:      python-jinja2
clime b7b0ec2
Requires:      python-simplejson
659873b
Requires:      python-humanize
clime 9793077
clime 9793077
BuildRequires: pytest
bf6f2c3
BuildRequires: python-copr >= 1.89
clime b7b0ec2
BuildRequires: python-devel
clime 9793077
BuildRequires: python-jinja2
659873b
BuildRequires: python-humanize
clime 9793077
BuildRequires: python-mock
clime b7b0ec2
BuildRequires: python-setuptools
clime b7b0ec2
BuildRequires: python-simplejson
bf6f2c3
BuildRequires: python-munch
clime 6bbbf40
%endif
clime 9793077
clime b7b0ec2
# We historically shipped empty doc package, uninstall it.
clime b7b0ec2
Obsoletes:     copr-cli-doc < 1.72
clime 9793077
clime b7b0ec2
%if 0%{?rhel} == 6
clime b7b0ec2
Requires:      python-argparse
cec0899
clime b7b0ec2
BuildRequires: python-argparse
cec0899
%endif
cec0899
clime 2fcb8b4
%if 0%{?rhel} == 7
clime 2fcb8b4
Requires:      python-progress
clime 2fcb8b4
%endif
clime 2fcb8b4
cec0899
%description
cec0899
COPR is lightweight build system. It allows you to create new project in WebUI,
cec0899
and submit new builds and COPR will create yum repository from latests builds.
cec0899
cec0899
This package contains command line interface.
cec0899
cec0899
%prep
cec0899
%setup -q
cec0899
cec0899
cec0899
%build
clime b7b0ec2
version="%{version}" %py_build
cec0899
mv copr_cli/README.rst ./
cec0899
# convert manages
cec0899
a2x -d manpage -f manpage man/copr-cli.1.asciidoc
cec0899
945b8d4
clime b7b0ec2
%install
clime b7b0ec2
version="%{version}" %py_install
945b8d4
ln -sf %{_bindir}/copr-cli %{buildroot}%{_bindir}/copr
cec0899
install -d %{buildroot}%{_mandir}/man1
cec0899
install -p -m 644 man/copr-cli.1 %{buildroot}/%{_mandir}/man1/
945b8d4
install -p man/copr.1 %{buildroot}/%{_mandir}/man1/
4e3d41e
install -d %{buildroot}%{_datadir}/cheat
4e3d41e
cp -a man/copr-cli.cheat %{buildroot}%{_datadir}/cheat/copr-cli
4e3d41e
ln -s %{_datadir}/cheat/copr-cli %{buildroot}%{_datadir}/cheat/copr
cec0899
clime b7b0ec2
clime e54f8d2
%check
clime b7b0ec2
%{__python} -m pytest tests
clime b7b0ec2
clime e54f8d2
cec0899
%files
a8d4cc2
%{!?_licensedir:%global license %doc}
fb48a64
%license LICENSE
fb48a64
%doc README.rst
clime b7b0ec2
%{_bindir}/copr
cec0899
%{_bindir}/copr-cli
cec0899
%{_mandir}/man1/copr-cli.1*
945b8d4
%{_mandir}/man1/copr.1*
4e3d41e
%dir %{_datadir}/cheat
4e3d41e
%{_datadir}/cheat/copr-cli
4e3d41e
%{_datadir}/cheat/copr
clime b7b0ec2
%{python_sitelib}/*
945b8d4
cec0899
cec0899
%changelog
1e842db
* Wed Dec 04 2019 Pavel Raiskup <praiskup@redhat.com> 1.83-1
1e842db
- added module_hotfixes support
1e842db
- nicer mock-config (build config) api output
1e842db
- mock-config un-deprecated
1de93cc
4e3d41e
* Thu Oct 03 2019 Pavel Raiskup <praiskup@redhat.com> 1.82-1
4e3d41e
- manpage: update API token url
4e3d41e
- support multilib projects
4e3d41e
- fix traceback when lost connection during copr-cli build
4e3d41e
- adding cheat for copr
4e3d41e
4e3d41e
* Tue Aug 13 2019 Pavel Raiskup <praiskup@redhat.com> 1.81-1
4e3d41e
- cli: pypi package needs to depend on 'humanize'
1dadf91
659873b
* Mon Jul 29 2019 Pavel Raiskup <praiskup@redhat.com> 1.80-1
659873b
- drop pylint from BR
659873b
- use humanize instead of format_size(); fix issue#724
19ac002
9284c29
* Wed Apr 24 2019 Jakub Kadlčík <frostyx@email.cz> 1.79-1
9284c29
- add CLI for permissions
9284c29
- new --max-builds option
9284c29
- rename repos 'url' attribute to 'baseurl'
9284c29
- generate mock rootdir on client side
9284c29
- pass a repo priority to dnf config
9284c29
- Revert "[cli] fix copr mock-config"
9284c29
- support temporary projects
9284c29
- print helpful hints for config parsing errors
9284c29
- fix tests broken by PR#547
9284c29
- fix copr-cli downloading parent directory for cancelled builds
9284c29
bf6f2c3
* Mon Feb 11 2019 Jakub Kadlčík <frostyx@email.cz> 1.78-1
bf6f2c3
- Don't catch exceptions inside action
bf6f2c3
- Fix storing the custom script parameters
bf6f2c3
- Properly rewrite download-build to use APIv3
bf6f2c3
- Do not require to set PyPI packagename when it is already set
bf6f2c3
- When serializing munch omit the proxy object
bf6f2c3
- Fix the APIv1 call in the aciton_new_webhook_secret function
bf6f2c3
bf6f2c3
* Tue Jan 15 2019 Miroslav Suchý <msuchy@redhat.com> 1.77-1
bf6f2c3
- fix side_effect function arguments
bf6f2c3
- fix assert_called_with params
bf6f2c3
bf6f2c3
* Thu Jan 10 2019 Miroslav Suchý <msuchy@redhat.com> 1.76-1
bf6f2c3
- rewrite description of copr dirs feature. Use "tag" instead of "suffix".
bf6f2c3
- explain copr_dir feature in man pages for build subcommand
bf6f2c3
- improve naming of copr_dir in copr-cli interface to copr_repo
bf6f2c3
- add support for copr dir to copr-cli
bf6f2c3
- we also buildrequire python-copr with APIv3 support
bf6f2c3
- add missing dependency on python-simplejson
bf6f2c3
- depend on munch because of tests
bf6f2c3
- have numbered string fields because of epel6
bf6f2c3
- fix copr mock-config
bf6f2c3
bf6f2c3
* Fri Oct 19 2018 Miroslav Suchý <msuchy@redhat.com> 1.75-1
bf6f2c3
- 1639590 - print name of package when it is deleted
bf6f2c3
- set variables for each build
bf6f2c3
- print friendlier error when trying to upload a nonexisting file
bf6f2c3
- put backend the deprecation warnings
bf6f2c3
- better errors with --config
bf6f2c3
- print just 'repos' to avoid yum/dnf confusion
bf6f2c3
- depend on python-copr-1.89
bf6f2c3
- print additional repos and blank line between projects
bf6f2c3
- rewrite unit tests to work with APIv3
bf6f2c3
- update resource properties
bf6f2c3
- fix the order of arguments
bf6f2c3
- json_dumps is not supposed to print anything
bf6f2c3
- return proper status code
bf6f2c3
- cast disable_createrepo to bool
bf6f2c3
- write to stderr instead of printing
bf6f2c3
- if ownername is not specified, use the one from config
bf6f2c3
- remove deprecated tito and mock actions
bf6f2c3
- rewrite copr-cli to use APIv3
bf6f2c3
- use git_dir_archive instead of git_dir_pack
bf6f2c3
- pg#251 Make it possible for user to select pyp2rpm template
bac426a
clime 2fcb8b4
* Thu Aug 30 2018 clime <clime@redhat.com> 1.74-1
clime 2fcb8b4
- python-progress is not present in EL6
clime 2fcb8b4
clime be52daf
* Fri Aug 24 2018 clime <clime@redhat.com> 1.73-1
clime be52daf
- pg#370 copr-cli new-webhook-secret fails
clime be52daf
- fix input under python2
clime be52daf
clime b7b0ec2
* Thu Aug 23 2018 clime <clime@redhat.com> 1.72-1
clime b7b0ec2
- generate new webhook secret functionality in copr-cli
clime b7b0ec2
- packaging: Python 2/3, RHEL/Fedora fixes
clime b7b0ec2
clime 89751ae
* Mon Aug 06 2018 clime <clime@redhat.com> 1.71-1
clime 89751ae
- %%{python_sitelib} → %%{python2_sitelib}
78ec1f6
clime 1145a11
* Fri May 18 2018 clime <clime@redhat.com> 1.70-1
clime 1145a11
- deprecate mock-config command
clime 1145a11
99b1a1d
* Mon Apr 30 2018 Dominik Turecek <dturecek@redhat.com> 1.69-1
99b1a1d
fix non-passing unittests under f28+
99b1a1d
04de88b
* Thu Apr 26 2018 Dominik Turecek <dturecek@redhat.com> 1.68-1
04de88b
- simplify bar.finish logic
04de88b
- rpkg deployment into COPR - containers + releng continuation
04de88b
- #280 cli upload to nonexisting project makes terminal cursor disappear
04de88b
- #220 copr-cli doesn't display build progress in non-interactive terminal
04de88b
- add download-build --dest description to man page
04de88b
- add `copr delete-build` build into man pages
04de88b
clime fc84e6c
* Fri Feb 23 2018 clime <clime@redhat.com> 1.67-1
clime fc84e6c
- remove Group tag
clime fc84e6c
clime 9793077
* Mon Feb 19 2018 clime <clime@redhat.com> 1.66-1
clime 9793077
- Shebangs cleanup
clime 9793077
- fix deps in spec
clime 9793077
- allow running tests only for epel7
clime 9793077
- tests also for python2 during builds
clime 9793077
- new custom source method
clime 9793077
- require to specify project when building module
d80365d
clime 2880f67
* Thu Nov 09 2017 clime <clime@redhat.com> 1.65-1
clime 2880f67
- allow to set use_bootstrap_container via API
clime 2880f67
clime 09909d7
* Wed Oct 18 2017 clime <clime@redhat.com> 1.64-1
clime 09909d7
- add SCM api interface
clime 09909d7
- deprecate tito and mockscm methods
clime 09909d7
clime e0c2d71
* Fri Sep 15 2017 clime <clime@redhat.com> 1.63-1
clime e0c2d71
- fix unittests
clime e0c2d71
- run tests with python3
clime e0c2d71
- #130 update requirements
clime e0c2d71
- #125 copr build copr pkgs [pkgs ...] builds only the first SRPM
clime e0c2d71
- #112 [RFE] copr-cli whoami
clime e0c2d71
- Bug 1431035 - coprs should check credentials before uploading
clime e0c2d71
  source rpm
clime e0c2d71
- Spelling fixes
clime e0c2d71
clime ee47d89
* Fri Aug 11 2017 clime <clime@redhat.com> 1.62-1
clime ee47d89
- allow to modify copr chroots with copr modify cmd
clime ee47d89
clime ee47d89
* Fri Jul 14 2017 clime <clime@redhat.com> 1.61-1
clime ee47d89
- Bug 1399817 - copr --version does not print version info
2dbb30b
clime c3da329
* Fri Jun 09 2017 clime <clime@redhat.com> 1.60-1
clime c3da329
- use global const map for on/off command line switches value translation
clime c3da329
clime 468a63f
* Wed Apr 19 2017 clime <clime@redhat.com> 1.59-1
clime 468a63f
- when building module --url or --yaml needs to be selected
clime 468a63f
- remove make-module command
clime 468a63f
- update man for build-module command
clime 468a63f
- allow to submit optional params to mbs
clime 468a63f
- frontend act as a gateway between user and mbs
clime 468a63f
- possibility to submit yaml file to mbs
clime 468a63f
- compose auth url more prettier
clime 468a63f
- describe module actions in man
clime 468a63f
- rename method for making module to match cli naming
clime 468a63f
- split module building into two separate commands
clime 468a63f
- add possibility to build module via MBS or not
clime 468a63f
- add command for building modules
clime 468a63f
- more similar mock-config with real builder's config
clime 468a63f
- put errors/warnings on stderr
clime 468a63f
- fix trace in 'copr-cli --debug'
clime 468a63f
- replace fedorahosted links
clime 468a63f
- use 'avg' api from python-progress
933c219
clime 6bbbf40
* Thu Dec 01 2016 clime <clime@redhat.com> 1.58-1
clime 6bbbf40
- `copr-cli edit-chroot` implemented (without modulemd uploading)
clime 6bbbf40
- add 'mock-config' command
clime 6bbbf40
- added auto-prune project's option
clime 6bbbf40
- Bug 1390067 - Progress speed/estimates are completely incorrect
clime 6bbbf40
- Bug 1389265 - Using groups with copr-cli is not easily discoverable
clime 6bbbf40
- brought unittests into passing state
clime 6bbbf40
- stripped down impl of building from dist-git
clime 6bbbf40
- Bug 1335168 - Delete build(s) from CLI
clime 6bbbf40
- disable network by default when creating new copr
clime 6bbbf40
clime f2ed504
* Mon Sep 19 2016 Miroslav Suchý <msuchy@redhat.com> 1.57-1
clime f2ed504
- re-use PYTHONPATH in cli wrapper
clime f2ed504
clime f2ed504
* Mon Sep 12 2016 Miroslav Suchý <msuchy@redhat.com> 1.56-1
clime f2ed504
- require python-progress on Fedora
clime f2ed504
- fix for python-progress API
clime f2ed504
clime eedd5b4
* Mon Aug 15 2016 clime <clime@redhat.com> 1.55-1
clime eedd5b4
- Bug 1361344 - RFE: Allow denial of build deletion and resubmitting at project or group level
59db2ff
035a083
* Fri Jul 15 2016 Miroslav Suchý <msuchy@redhat.com> 1.54-1
035a083
- actually define use_python3 macro
035a083
clime 98776aa
* Fri Jul 01 2016 clime <clime@redhat.com> 1.53-1
clime 98776aa
- enable pylint checks only if python3 macro is enabled
clime 98776aa
- Bug 1335237 - copr create command missing --disable_createrepo
clime 98776aa
- --enable-net option added for create/modify commands of copr-cli
clime 98776aa
- added man entry about --unlisted-on-hp option of create command
clime 98776aa
clime e54f8d2
* Thu Jun 16 2016 Miroslav Suchý <msuchy@redhat.com> 1.52-1
clime e54f8d2
- configure more packages to run pylint
clime e54f8d2
- run checks for copr-cli
clime e54f8d2
- man page for --background of copr-cli
clime e54f8d2
- add --background option to new build in CLI
clime e54f8d2
- man entries for copr-cli package actions + tests update
clime e54f8d2
- Add syntax for working with group projects to the man page.
clime e54f8d2
- honor standard build options for build-package cmd + use
clime e54f8d2
  package.has_source_type_set in API
clime e54f8d2
- _No_ to Url & Upload package types
clime e54f8d2
- man: add examples
clime e54f8d2
- experimental support of building packages
clime e54f8d2
  with copr-cli
clime e54f8d2
- list-package-names cmd added + build-package cmd implementation thub
clime e54f8d2
- added --with-all-builds, --with-latest-
clime e54f8d2
  build and --with-latest-succeeded-build options for list-packages and get-
clime e54f8d2
  package cmds
clime e54f8d2
- support forking via CLI
clime e54f8d2
clime 1c9e886
* Thu May 26 2016 clime <clime@redhat.com> 1.51-1
clime 1c9e886
- support for package manipulation
clime 1c9e886
- added watch-build subcommand
clime 1c9e886
- Bug 1333771 - Traceback from copr-cli when missing --pythonversions
clime 1c9e886
- rubygems CLI support implemented
7f7bb18
* Wed Apr 20 2016 Miroslav Suchý <msuchy@redhat.com> 1.50-1
7f7bb18
- use python3 on Fedora24+
7f7bb18
- better error message
7f7bb18
- document --git-branch and --scm-branch options
7f7bb18
- fix download-build for dist-git era file structure (RhBug: 1324847)
7f7bb18
- implement building via mock
7f7bb18
- document buildtito in manpage
7f7bb18
- change build-tito command to buildtito
7f7bb18
- implement building via tito
7f7bb18
- buildpypi command documented in man pages + slightly improved
7f7bb18
  --help description of the command
7f7bb18
- add group support for modifying and deleting projects
7f7bb18
- fix expected warning in failing unit tests
7f7bb18
- refactor owner name parsing
7f7bb18
e1184c8
* Sun Mar 20 2016 Jakub Kadlčík <jkadlcik@redhat.com> 1.49-1
e1184c8
- allow creating group projects
e1184c8
- bug 1309101 - copr-cli doesn't handle string input for 'status'
e1184c8
e1184c8
* Mon Mar 14 2016 Jakub Kadlčík <jkadlcik@redhat.com> 1.48-1
e1184c8
- support building from PyPI
e1184c8
a8d4cc2
* Fri Jan 29 2016 Miroslav Suchý <msuchy@redhat.com> 1.47-1
a8d4cc2
- gfix 1302615 - UnboundLocalError: local variable 'bar' referenced before
a8d4cc2
  assignment when building from URLs
a8d4cc2
- gman pages updated for 1292033 - copr-cli ignores multiple package
a8d4cc2
  arguments if the first is a local file
a8d4cc2
- grequire sufficiently new python-copr package
a8d4cc2
- gadd DummyBar.finish() stub
a8d4cc2
- compatibility with el6 and el7
a8d4cc2
- add --config option
a8d4cc2
- fix packaging for epel-6+ and fedora-22+
a8d4cc2
- Added MANIFEST.in for python and cli
a8d4cc2
a8d4cc2
* Mon Nov 02 2015 Miroslav Suchý <msuchy@redhat.com> 1.46-1
a8d4cc2
- Removed __version__ from cli and python
a8d4cc2
- Added version parse from specs instead of __init__
a8d4cc2
- Fixed invalid classifiers
a8d4cc2
- Fixes to allow copr-cli to be installed using setup.py
a8d4cc2
- ImportError: No module named exceptions
a8d4cc2
- Display progress bar if python-progress is available
a8d4cc2
Valentin Gologuzov fd0d844
* Mon Oct 12 2015 Valentin Gologuzov <vgologuz@redhat.com> 1.45-1
Valentin Gologuzov fd0d844
- build action: accept any character in the username
9de4ed1
fb48a64
* Fri May 15 2015 Miroslav Suchý <msuchy@redhat.com> 1.44-1
fb48a64
- mark license as license in spec
fb48a64
- 1188022 - accept dash in project name
fb48a64
4605194
* Wed Jan 21 2015 Miroslav Suchý <msuchy@redhat.com> 1.43-1
4605194
- regression: enable again copr-cli build username/project
4605194
Valentin Gologuzov d694375
* Mon Jan 05 2015 Valentin Gologuzov <vgologuz@redhat.com> 1.42-1
Valentin Gologuzov d694375
- updated man page
Valentin Gologuzov d694375
- compatibility with Python 2.6 ( due to Epel 6)
Valentin Gologuzov d694375
945b8d4
* Mon Dec 15 2014 Valentin Gologuzov <vgologuz@redhat.com> 1.41-1
945b8d4
- control auto_createrepo property of project through API
945b8d4
  and copr-cli; new command supported by cli: **modify**
945b8d4
945b8d4
* Fri Nov 21 2014 Valentin Gologuzov <vgologuz@redhat.com> 1.40-1
945b8d4
- updated to use newer version of python-copr
945b8d4
- minor changes in commands output
945b8d4
- print debug logs only when user provides "--debug" option
945b8d4
945b8d4
* Mon Oct 20 2014 Miroslav Suchý <msuchy@redhat.com> 1.39-1
945b8d4
- add man page for copr(1)
945b8d4
- [cli] [RHBZ: #1149889]  RFE: download command in copr-cli
945b8d4
- A few fixes for CI
945b8d4
945b8d4
* Tue Oct 07 2014 Valentin Gologuzov <vgologuz@redhat.com> 1.38-1
945b8d4
- [cli] Added symlink for executable: copr -> copr-cli
945b8d4
- [cli] removed epydoc documentation
945b8d4
- [python-copr, cli] test coverage
945b8d4
- [python-copr, cli] updating copr-cli to use python-copr
945b8d4
945b8d4
* Thu Sep 18 2014 Miroslav Suchý <msuchy@redhat.com> 1.37-1
945b8d4
- [python-copr] Renamed package: python-copr-client -> python-copr
945b8d4
- [cli]  In case of missing config show proper message, hide traceback.
945b8d4
- [python-client] added a few unittest, changed package layout, updated .spec
945b8d4
  to run tests during %%check. [copr-cli] reflected changes in python-client
945b8d4
- [python-copr,copr-cli] fixing, cleanup
945b8d4
- [python-copr,copr-cli] Copr-cli now uses python-copr-cli package. [copr-cli]
945b8d4
  updated .spec to reflect usage of python-copr-client
945b8d4
945b8d4
* Tue Jul 22 2014 Miroslav Suchý <msuchy@redhat.com> 1.36-1
945b8d4
- use correct name of variable
945b8d4
Miroslav Suchý 4b610de
* Fri Jul 04 2014 Miroslav Suchý <msuchy@redhat.com> 1.35-1
Miroslav Suchý 4b610de
- [cli] stop waiting when the status is unknown
Miroslav Suchý 4b610de
Miroslav Suchý 4b610de
* Fri Jul 04 2014 Miroslav Suchý <msuchy@redhat.com> 1.34-1
Miroslav Suchý 4b610de
- [cli] skipped state support
Miroslav Suchý 4b610de
4bc13b6
* Thu Jun 19 2014 Miroslav Suchý <msuchy@redhat.com> 1.33-1
4bc13b6
- cancel added to the man page
4bc13b6
- exit code 4 for failed build and man pages updated
4bc13b6
- error and shell return code 1 when build fails
4bc13b6
- delete a project
4bc13b6
- shell return codes with errors
4bc13b6
- copr-cli cancel fix
603fbd3
4336f8d
* Thu Apr 10 2014 Miroslav Suchý <msuchy@redhat.com> 1.32-1
4336f8d
- be less strict in parsing fas/copr-name
4336f8d
cec0899
* Thu Apr 10 2014 Miroslav Suchý <msuchy@redhat.com> 1.31-1
cec0899
- We can choose chroots for new builds
cec0899
- copr-cli waiting fix
cec0899
- building pkgs separately
cec0899
cec0899
* Wed Mar 19 2014 Miroslav Suchý <msuchy@redhat.com> 1.30-1
cec0899
- BR make is not needed
cec0899
- build -doc subpackage only for fedoras
cec0899
- add LICENSE to -doc
cec0899
- replace 'copr' with 'project'
cec0899
cec0899
* Tue Mar 18 2014 Miroslav Suchý <msuchy@redhat.com> 1.29-1
cec0899
- move copr-cli in standalone package
cec0899
cec0899
* Thu Feb 27 2014 Miroslav Suchý <msuchy@redhat.com> 1.28-1
cec0899
- [backend] - pass lock to Actions
cec0899
cec0899
* Wed Feb 26 2014 Miroslav Suchý <msuchy@redhat.com> 1.27-1
cec0899
- [frontend] update to jquery 1.11.0
cec0899
- [fronted] link username to fas
cec0899
- [cli] allow to build into projects of other users
cec0899
- [backend] do not create repo in destdir
cec0899
- [backend] ensure that only one createrepo is running at the same time
cec0899
- [cli] allow to get data from sent build
cec0899
- temporary workaround for BZ 1065251
cec0899
- Chroot details API now uses GET instead of POST
cec0899
- when deleting/canceling task, go to same page
cec0899
- add copr modification to web api
cec0899
- 1063311 - admin should be able to delete task
cec0899
- [frontend] Stray end tag h4.
cec0899
- [frontend] another s/coprs/projects/ rename
clime e0c2d71
- [frontend] provide info about last successful build
cec0899
- [spec] rhel5 needs group definition even in subpackage
cec0899
- [frontend] move 'you agree' text to dd
cec0899
- [frontend] add margin to chroots-set
cec0899
- [frontend] add margin to field label
cec0899
- [frontend] put disclaimer to paragraph tags
cec0899
- [frontend] use black font color
cec0899
- [frontend] use default filter instead of *_not_filled
cec0899
- [frontend] use markdown template filter
cec0899
- [frontend] use isdigit instead of is_int
cec0899
- [frontend] move Serializer to helpers
cec0899
- [frontend] fix coding style and py3 compatibility
cec0899
- [cli] fix coding style and py3 compatibility
cec0899
- [backend] fix coding style and py3 compatibility
cec0899
cec0899
* Tue Jan 28 2014 Miroslav Suchý <miroslav@suchy.cz> 1.26-1
cec0899
- lower testing date
cec0899
- move localized_time into filters
cec0899
- [frontend] update user data after login
cec0899
- [frontend] use iso-8601 date
cec0899
cec0899
* Mon Jan 27 2014 Miroslav Suchý <msuchy@redhat.com> 1.25-1
cec0899
- 1044085 - move timezone modification out of template and make it actually
cec0899
  work
cec0899
- clean up temp data if any
cec0899
- [db] timezone can be nullable
cec0899
- [frontend] actually save the timezone to model
cec0899
- fix colision of revision id
cec0899
- 1044085 - frontend: display time in user timezone
cec0899
- [frontend] rebuild stuck task
cec0899
- disable test on i386
cec0899
- use experimental createrepo_c to get rid of lock on temp files
cec0899
- [frontend] - do not throw ISE when build_id is malformed
cec0899
- [tests] add test for BuildLogic.add
cec0899
- [tests] add test for build resubmission
cec0899
- [frontend] permission checking is done in BuildLogic.add
cec0899
- [frontend] remove BuildLogic.new, use BL.add only
cec0899
- [api] fix validation error handling
cec0899
- [cli] fix initial_pkgs and repos not sent to backend
cec0899
- [frontend] fix BuildsLogic.new not assigning copr to build
cec0899
- [frontend] allow resubmitting builds from monitor
cec0899
- [frontend] allow GET on repeat_build
cec0899
- [frontend] 1050904 - monitor shows not submitted chroots
cec0899
- [frontend] rename active_mock_chroots to active_chroots
cec0899
- [frontend] rename MockChroot.chroot_name to .name
cec0899
- [frontend] 1054474 - drop Copr.build_count nonsense
cec0899
- [tests] fix https and repo generation
cec0899
- [tests] return exit code from manage.py test
cec0899
- 1054472 - Fix deleting multiple SRPMs
cec0899
- [spec] tighten acl on copr-be.conf
cec0899
- [backend] - add missing import
cec0899
- 1054082 - general: encode to utf8 if err in mimetext
cec0899
- [backend] lock log file before writing
cec0899
- 1055594 - mockremote: always unquote pkg url
cec0899
- 1054086 - change vendor tag
cec0899
- mockremote: rawhide instead of $releasever in repos when in rawhide chroot
cec0899
- 1055499 - do not replace version with $releasever on rawhide
cec0899
- 1055119 - do not propagate https until it is properly signed
cec0899
- fix spellings on chroot edit page
cec0899
- 1054341 - be more verbose about allowed licenses
cec0899
- 1054594 - temporary disable https in repo file
cec0899
cec0899
* Thu Jan 16 2014 Miroslav Suchý <msuchy@redhat.com> 1.24-1
cec0899
- add BR python-markdown
cec0899
- [fronted] don't add description to .repo files
cec0899
- [spec] fix with_tests conditional
cec0899
- add build deletion
cec0899
- 1044158 - do not require fas username prior to login
cec0899
- replace http with https in copr-cli and in generated repo file
clime e0c2d71
- [cli] UX changes - explicitly state that pkgs is URL
cec0899
- 1053142 - only build copr-cli on el6
cec0899
- [frontend] correctly handle mangled chroot
cec0899
- [frontend] do not traceback when user malform url
cec0899
- [frontend] change default description and instructions to sound more
cec0899
  dangerously
cec0899
- 1052075 - do not set chroots on repeated build
cec0899
- 1052071 - do not throw ISE when copr does not exist
cec0899
cec0899
* Mon Jan 13 2014 Miroslav Suchý <msuchy@redhat.com> 1.23-1
cec0899
- [backend] rhel7-beta do not have comps
cec0899
- 1052073 - correctly parse malformed chroot
cec0899
cec0899
* Fri Jan 10 2014 Miroslav Suchý <msuchy@redhat.com> 1.22-1
cec0899
- [backend] if we could not spawn VM, wait a moment and try again
cec0899
- [backend] use createrepo_c instead of createrepo
cec0899
- 1050952 - check if copr_url exist in config
cec0899
- [frontend] replace newlines in description by space in repo file
cec0899
cec0899
* Wed Jan 08 2014 Miroslav Suchý <msuchy@redhat.com> 1.21-1
cec0899
- 1049460 - correct error message
clime e0c2d71
- [cron] manually clean /var/tmp after createrepo
cec0899
cec0899
* Wed Jan 08 2014 Miroslav Suchý <msuchy@redhat.com> 1.20-1
cec0899
- [cli] no need to set const with action=store_true
cec0899
- [cli] code cleanup
cec0899
- 1049460 - print nice error when projects does not exist
cec0899
- 1049392 - require python-setuptools
cec0899
- [backend] add --verbose to log to stderr
cec0899
- [backend] handle KeyboardInterrupt without tons of tracebacks
cec0899
- 1048508 - fix links at projects lists
cec0899
- [backend] in case of error the output is in e.output
cec0899
- [selinux] allow httpd to search
cec0899
- [backend] set number of worker in name of process
cec0899
- [logrotate] rotate every week unconditionally
cec0899
- [backend] do not traceback if jobfile is mangled
cec0899
- [backend] print error messages to stderr
cec0899
- [cli] do not require additional arguments for --nowait
cec0899
- [backend] replace procname with setproctitle
cec0899
- [cli] use copr.fedoraproject.org as default url
cec0899
- [frontend] show monitor even if last build have been canceled
cec0899
- [backend] call correct function
cec0899
- [cli] print errors to stderr
cec0899
- 1044136 - do not print TB if config in mangled
cec0899
- 1044165 - Provide login and token information in the same form as entered to
cec0899
  ~/.config-copr
cec0899
- [frontend] code cleanup
cec0899
- [frontend] move rendering of .repo file to helpers
cec0899
- 1043649 - in case of Fedora use $releasever in repo file
cec0899
- [frontend] condition should be in reverse
cec0899
cec0899
* Mon Dec 16 2013 Miroslav Suchý <msuchy@redhat.com> 1.19-1
cec0899
- [backend] log real cause if ansible crash
cec0899
- [frontend] try again if whoosh does not get lock
cec0899
- [backend] if frontend does not respond, repeat
cec0899
- print yum repos nicely
cec0899
- Bump the copr-cli release to 0.2.0 with all the changes made
cec0899
- Refer to the man page for more information about the configuration file for
cec0899
  copr-cli
cec0899
- Rework the layout of the list command
cec0899
- Fix parsing the copr_url from the configuration file
cec0899
- [backend] run createrepo as copr user
cec0899
- 1040615 - wrap lines with long URL
cec0899
cec0899
* Wed Dec 11 2013 Miroslav Suchý <msuchy@redhat.com> 1.18-1
cec0899
- [frontend] inicialize variable
cec0899
cec0899
* Wed Dec 11 2013 Miroslav Suchý <msuchy@redhat.com> 1.17-1
cec0899
- [frontend] fix latest build variable overwrite
cec0899
cec0899
* Wed Dec 11 2013 Miroslav Suchý <msuchy@redhat.com> 1.16-1
cec0899
- [backend] store jobs in id-chroot.json file
cec0899
- [frontend] handle unknown build/chroot status
cec0899
- use newstyle ansible variables
cec0899
cec0899
* Tue Dec 10 2013 Miroslav Suchý <msuchy@redhat.com> 1.15-1
cec0899
- [frontend] smarter package name parsing
cec0899
- [frontend] extend range to allow 0
cec0899
- handle default timeout on backend
cec0899
- initial support for SCL
cec0899
- [backend] create word readable files in result directory
cec0899
- [backend] print tracebacks
cec0899
- [frontend] monitor: display only pkg name w/o version
cec0899
- [doc] update api docs
cec0899
- [doc] update copr-cli manpage
cec0899
- [cli] list only name, description and instructions
cec0899
- [cli] add support for build status & build monitor
cec0899
- [frontend] add build status to API
cec0899
- [playbook] do not overwrite mockchain
cec0899
- [backend] add spece between options
cec0899
- [backend] pass mock options correctly
cec0899
- [frontend] support markdown in description and instructions
cec0899
- [backend] Add macros to mockchain define arguments
cec0899
- [backend] Pass copr username and project name to MockRemote
cec0899
- [backend] Handle additional macro specification in MockRemote
cec0899
- [frontend] monitor: show results per package
cec0899
- [frontend] add favicon
cec0899
- [backend] quote strings before passing to mockchain
cec0899
- send chroots with via callback to frontend
cec0899
- [cli] change cli to new api call
cec0899
- enhance API documentation
cec0899
- add yum_repos to coprs/user API call
cec0899
- [frontend] provide link to description of allowed content
cec0899
- [backend] we pass just one chroot
cec0899
- [backend] - variable play is not defined
cec0899
- if createrepo fail, run it again
cec0899
- [cron] fix syntax error
cec0899
- [man] state that --chroot for create command is required
cec0899
- [spec] enable tests
cec0899
- [howto] add note about upgrading db schema
cec0899
- [frontend]: add copr monitor
cec0899
- [tests]: replace test_allowed_one
cec0899
- [tests]: fix for BuildChroots & new backend view
cec0899
- [frontend] rewrite backend view to use Build <-> Chroot relation
cec0899
- [frontend] add Build <-> Chroot relation
cec0899
- 1030493 - [cli] check that at least one chroot is entered
cec0899
- [frontend] typo
cec0899
- fixup! [tests]: fix test_build_logic to handle BuildChroot
cec0899
- fixup! [frontend] add ActionsLogic
cec0899
- [tests]: fix test_build_logic to handle BuildChroot
cec0899
- [spec] enable/disable test using variable
cec0899
- add migration script - add table build_chroot
cec0899
- [frontend] skip legal-flag actions when dumping waiting actions
cec0899
- [frontend] rewrite backend view to use Build <-> Chroot relation
cec0899
- [frontend] add ActionsLogic
cec0899
- [frontend] create BuildChroot objects on new build
cec0899
- [frontend] add Build <-> Chroot relation
cec0899
- [frontend] add StatusEnum
cec0899
- [frontend] fix name -> coprname typo
cec0899
- [frontend] remove unused imports
cec0899
- [frontend] add missing json import
cec0899
- [backend] rework ip address extraction
cec0899
- ownership of /etc/copr should be just normal
cec0899
- [backend] - wrap up returning action in "action" blok
cec0899
- [backend] rename backend api url
cec0899
- [backend] handle "rename" action
cec0899
- [backend] handle "delete" action
cec0899
- base handling of actions
cec0899
- move callback to frontend to separate object
cec0899
- secure waiting_actions with password
cec0899
- pick only individual builds
cec0899
- make address, where we send legal flags, configurable
cec0899
- send email to root after legal flag have been raised
cec0899
cec0899
* Fri Nov 08 2013 Miroslav Suchý <msuchy@redhat.com> 1.14-1
cec0899
- 1028235 - add disclaimer about repos
cec0899
- fix pagination
cec0899
- fix one failing test
cec0899
cec0899
* Wed Nov 06 2013 Miroslav Suchý <msuchy@redhat.com> 1.13-1
cec0899
- suggest correct name of repo file
cec0899
- we could not use releasever macro
cec0899
- no need to capitalize Projects
cec0899
- another s/copr/project
cec0899
- add link to header for sign-in
cec0899
- fix failing tests
cec0899
- UX - let textarea will full widht of box
cec0899
- UX - make background of hovered builds darker
cec0899
- generate yum repo for each chroot of copr
cec0899
- align table header same way as ordinary rows
cec0899
- enable resulting repo and disable gpgchecks
cec0899
cec0899
* Mon Nov 04 2013 Miroslav Suchý <msuchy@redhat.com> 1.12-1
cec0899
- do not send parameters when we neither need them nor use them
cec0899
- authenticate using api login, not using username
cec0899
- disable editing name of project
cec0899
- Add commented out WTF_CSRF_ENABLED = True to configs
cec0899
- Use new session for each test
cec0899
- fix test_coprs_general failures
cec0899
- fix test_coprs_builds failures
cec0899
- Add WTF_CSRF_ENABLED = False to unit test config
cec0899
- PEP8 fixes
cec0899
- Fix compatibility with wtforms 0.9
cec0899
- typo s/submited/submitted/
cec0899
- UX - show details of build only after click
cec0899
- add link to FAQ to footer
cec0899
- UX - add placeholders
cec0899
- UX - add asterisk to required fields
cec0899
- dynamicly generate url for home
cec0899
- add footer
cec0899
cec0899
* Sat Oct 26 2013 Miroslav Suchý <msuchy@redhat.com> 1.11-1
cec0899
- catch IOError from libravatar if there is no network
cec0899
cec0899
* Fri Oct 25 2013 Miroslav Suchý <msuchy@redhat.com> 1.10-1
cec0899
- do not normalize url
cec0899
- specify full prefix of http
cec0899
- execute playbook using /usr/bin/ansible-playbook
cec0899
- use ssh transport
cec0899
- check after connection is made
cec0899
- add notes about debuging mockremote
cec0899
- clean up instance even when worker fails
cec0899
- normalize paths before using
cec0899
- do not use exception variable
cec0899
- operator should be preceded and followed by space
cec0899
- remove trailing whitespace
cec0899
- convert comment to docstring
cec0899
- use ssh transport
cec0899
- do not create new ansible connection, reuse self.conn
cec0899
- run copr-be.py as copr
cec0899
- s/Copr/Project/ where we use copr in meaning of projects
cec0899
- number will link to those coprs, to which it refers
cec0899
- run log and jobgrab as copr user
cec0899
- log event to log file
cec0899
- convert comment into docstring
cec0899
- use unbufferred output for copr-be.py
cec0899
- hint how to set ec2 variables
cec0899
- document sleeptime
cec0899
- document copr_url for copr-cli
cec0899
- document how to set api key for copr-cli
cec0899
- do not create list of list
cec0899
- document SECRET_KEY variable
cec0899
- make note how to become admin
cec0899
- instruct people to install selinux with frontend
cec0899
cec0899
* Thu Oct 03 2013 Miroslav Suchý <msuchy@redhat.com> 1.9-1
cec0899
- prune old builds
cec0899
- require python-decorator
cec0899
- remove requirements.txt
cec0899
- move TODO-backend to our wiki
cec0899
- create pid file in /var/run/copr-backend
cec0899
- add backend service file for systemd
cec0899
- remove daemonize option in config
cec0899
- use python logging
cec0899
- create pid file in /var/run by default
cec0899
- do not create destdir
cec0899
- use daemon module instead of home brew function
cec0899
- fix default location of copr-be.conf
cec0899
- 2 tests fixed, one still failing
cec0899
- fix failing test test_fail_on_missing_dash
cec0899
- fixing test_fail_on_nonexistent_copr test
cec0899
- run frontend unit tests when building package
cec0899
- Adjust URLs in the unit-tests to their new structure
cec0899
- Adjust the CLI to call the adjuste endpoint of the API
cec0899
- Adjust API endpoint to reflects the UI endpoints in their url structure
cec0899
- First pass at adding fedmsg hooks.
cec0899
cec0899
* Tue Sep 24 2013 Miroslav Suchý <msuchy@redhat.com> 1.8-1
cec0899
- 1008532 - require python2-devel
cec0899
- add note about ssh keys to copr-setup.txt
cec0899
- set home of copr user to system default
cec0899
cec0899
* Mon Sep 23 2013 Miroslav Suchý <msuchy@redhat.com> 1.7-1
cec0899
- 1008532 - backend should own _pkgdocdir
cec0899
- 1008532 - backend should owns /etc/copr as well
cec0899
- 1008532 - require logrotate
cec0899
- 1008532 - do not distribute empty copr.if
cec0899
- 1008532 - use %%{?_smp_mflags} macro with make
cec0899
- move jobsdir to /var/lib/copr/jobs
cec0899
- correct playbooks path
cec0899
- selinux with enforce can be used for frontend
cec0899
cec0899
* Wed Sep 18 2013 Miroslav Suchý <msuchy@redhat.com> 1.6-1
cec0899
- add BR python-devel
cec0899
- generate selinux type for /var/lib/copr and /var/log/copr
cec0899
- clean up backend setup instructions
cec0899
- initial selinux subpackage
cec0899
cec0899
* Mon Sep 16 2013 Miroslav Suchý <msuchy@redhat.com> 1.5-1
cec0899
- 1008532 - use __python2 instead of __python
cec0899
- 1008532 - do not mark man page as doc
cec0899
- 1008532 - preserve timestamp
cec0899
cec0899
* Mon Sep 16 2013 Miroslav Suchý <msuchy@redhat.com> 1.4-1
cec0899
- add logrotate file
cec0899
cec0899
* Mon Sep 16 2013 Miroslav Suchý <msuchy@redhat.com> 1.3-1
cec0899
- be clear how we create tgz
cec0899
cec0899
* Mon Sep 16 2013 Miroslav Suchý <msuchy@redhat.com> 1.2-1
cec0899
- fix typo
cec0899
- move frontend data into /var/lib/copr
cec0899
- no need to own /usr/share/copr by copr-fe
cec0899
- mark application as executable
cec0899
- coprs_frontend does not need to be owned by copr-fe
cec0899
- add executable attribute to copr-be.py
cec0899
- remove shebang from dispatcher.py
cec0899
- squeeze description into 80 chars
cec0899
- fix typo
cec0899
- frontend need argparse too
cec0899
- move results into /var/lib/copr/public_html
cec0899
- name of dir is just copr-%%version
cec0899
- Remove un-necessary quote that breaks the tests
cec0899
- Adjust unit-tests to the new urls
cec0899
- Update the URL to be based upon a /user/copr/<action> structure
cec0899
- comment config copr-be.conf and add defaults
cec0899
- put examples of builderpb.yml and terminatepb.yml into doc dir
cec0899
- more detailed description of copr-be.conf
cec0899
- move files in config directory not directory itself
cec0899
- include copr-be.conf
cec0899
- include copr-be.py
cec0899
- create copr with lighttpd group
cec0899
- edit backend part of copr-setup.txt
cec0899
- remove fedora16 and add 19 and 20
cec0899
- create -doc subpackage with python documentation
cec0899
- add generated documentation on gitignore list
cec0899
- add script to generate python documentation
cec0899
- copr-setup.txt change to for mock
cec0899
- rhel6 do not know _pkgdocdir macro
cec0899
- make instruction clear
cec0899
- require recent whoosh
cec0899
- add support for libravatar
cec0899
- include backend in rpm
cec0899
- add notes about lighttpd config files and how to deploy them
cec0899
- do not list file twice
cec0899
- move log file to /var/log
cec0899
- change destdir in copr-be.conf.example
cec0899
- lightweight is the word and buildsystem has more meaning than 'koji'.
cec0899
- restart apache after upgrade of frontend
cec0899
- own directory where backend put results
cec0899
- removal of hidden-file-or-dir
cec0899
  /usr/share/copr/coprs_frontend/coprs/logic/.coprs_logic.py.swo
cec0899
- copr-backend.noarch: W: spelling-error %%description -l en_US latests ->
cec0899
  latest, latest's, la tests
cec0899
- simplify configuration - introduce /etc/copr/copr*.conf
cec0899
- Replace "with" statements with @TransactionDecorator decorator
cec0899
- add python-flexmock to deps of frontend
cec0899
- remove sentence which does not have meaning
cec0899
- change api token expiration to 120 days and make it configurable
cec0899
- create_chroot must be run as copr-fe user
cec0899
- add note that you have to add chroots to db
cec0899
- mark config.py as config so it is not overwritten during upgrade
cec0899
- own directory data/whooshee/copr_user_whoosheer
cec0899
- gcc is not needed
cec0899
- sqlite db must be owned by copr-fe user
cec0899
- copr does not work with selinux
cec0899
- create subdirs under data/openid_store
cec0899
- suggest to install frontend as package from copr repository
cec0899
- on el6 add python-argparse to BR
cec0899
- add python-requests to BR
cec0899
- add python-setuptools to BR
cec0899
- maintain apache configuration on one place only
cec0899
- apache 2.4 changed access control
cec0899
- require python-psycopg2
cec0899
- postgresql server is not needed
cec0899
- document how to create db
cec0899
- add to HOWTO how to create db
cec0899
- require python-alembic
cec0899
- add python-flask-script and python-flask-whooshee to requirements
cec0899
- change user in coprs.conf.example to copr-fe
cec0899
- fix paths in coprs.conf.example
cec0899
- copr is noarch package
cec0899
- add note where to configure frontend
cec0899
- move frontend to /usr/share/copr/coprs_frontend
cec0899
- put production placeholders in coprs_frontend/coprs/config.py
cec0899
- put frontend into copr.spec
cec0899
- web application should be put in /usr/share/%%{name}
cec0899
cec0899
* Mon Jun 17 2013 Miroslav Suchý <msuchy@redhat.com> 1.1-1
cec0899
- new package built with tito