diff --git a/.gitignore b/.gitignore index 84d42ff..427201d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /did-0.9.tar.bz2 /did-0.11.tar.bz2 /did-0.12.tar.bz2 +/did-0.14.tar.bz2 diff --git a/did.spec b/did.spec index 53a3974..d330d07 100644 --- a/did.spec +++ b/did.spec @@ -1,19 +1,27 @@ Name: did -Version: 0.12 -Release: 4%{?dist} +Version: 0.14 +Release: 2%{?dist} Summary: What did you do last week, month, year? License: GPLv2+ URL: https://github.com/psss/did -Source: https://github.com/psss/did/releases/download/%{version}/did-%{version}.tar.bz2 +Source0: %{url}/releases/download/%{version}/did-%{version}.tar.bz2 BuildArch: noarch -BuildRequires: git -BuildRequires: python2-devel -Requires: python2-requests-gssapi -Requires: python2-nitrate python2-dateutil python2-bugzilla -Requires: python2-feedparser +BuildRequires: git-core +BuildRequires: python3-bugzilla +BuildRequires: python3-dateutil +BuildRequires: python3-devel +BuildRequires: python3-httplib2 +BuildRequires: python3-pytest +BuildRequires: python3-requests-gssapi +BuildRequires: python3-setuptools +Requires: python3-bugzilla +Requires: python3-httplib2 +Requires: python3-requests-gssapi + +%?python_enable_dependency_generator %description Comfortably gather status report data (e.g. list of committed @@ -24,35 +32,61 @@ range. By default all available stats for this week are reported. %autosetup -S git %build +%py3_build %install -mkdir -p %{buildroot}%{_bindir} +%py3_install mkdir -p %{buildroot}%{_mandir}/man1 -mkdir -p %{buildroot}%{python2_sitelib}/did -mkdir -p %{buildroot}%{python2_sitelib}/did/plugins -install -pm 755 bin/did %{buildroot}%{_bindir}/did -install -pm 644 did/*.py %{buildroot}%{python2_sitelib}/did -install -pm 644 did/plugins/*.py %{buildroot}%{python2_sitelib}/did/plugins install -pm 644 did.1.gz %{buildroot}%{_mandir}/man1 +%check +%{__python3} -m pytest -vv tests/test*.py -k 'not smoke' %files %{_mandir}/man1/* %{_bindir}/did -%{python2_sitelib}/* +%{python3_sitelib}/%{name}/ +%{python3_sitelib}/%{name}-*.egg-info/ %doc README.rst examples -%{!?_licensedir:%global license %%doc} %license LICENSE %changelog -* Wed Jul 24 2019 Fedora Release Engineering - 0.12-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild +* Tue Oct 29 2019 Petr Šplíchal - 0.14-2 +- Include python3-setuptools in the BuildRequires +- Use info level to log problems with plugin import -* Thu Jan 31 2019 Fedora Release Engineering - 0.12-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild +* Tue Oct 22 2019 Petr Šplíchal - 0.14-1 +- Include setup.py, use auto build/install, enable tests +- Fix 'did --test' when no config is present +- Update spec file for Python 3 +- Update shebang to explicitly use python3 +- Fix mixed tabs and spaces in docs/conf.py +- Goodbye Python 2! Thanks and have a good night ;-) +- Cleanup built docs directly +- Do not remove python's egg when doing the cleanup +- Document the custom plugin configuration +- A couple of custom plugins feature adjustments +- Support for custom plugin location [#160] +- Fix typo in the license classifier -* Mon Dec 31 2018 Miro Hrončok - 0.12-2 -- Update Python dependencies to new packaging standards +* Tue Oct 01 2019 Petr Šplíchal - 0.13-1 +- Support for the full file path config [#140] +- Add the 'last friday' command [#197] +- New plugin with basic confluence support [#199] +- Improve redmine documentation [#195] +- Add a new 'wip' option for gerrit [#194] +- Include project name in gerrit stats [#192] +- Fix the configuration examples for gerrit +- Simplify Pagure search for created issues +- Extended query for verified bugs [fix #189] +- Fix for reviewed gerrit changes [#188] +- Add gerrit work-in-progress changes [#187] +- Fix for gerrit log strings [#186] +- Improve gerrit search limit [#185] +- Document API key auth for bugzilla [fix #180] +- Mock bugzilla module to fix generating docs +- Update feedparser requires +- Fix for gerrit plugin typo [#179] * Thu Dec 20 2018 Petr Šplíchal 0.12-1 - Add missing redmine dependency [fix #177] diff --git a/sources b/sources index 3b1fcbe..4ab8923 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (did-0.12.tar.bz2) = 15e558bace972dc50fdf9a5120315f093397899907099e51983da24f984ffe03e490620f3510c91bf939d6a4d44c7382421ca3c0c24ef9674164b53070daf6d4 +SHA512 (did-0.14.tar.bz2) = ea724907b97d16f9cdd9b02e8308f18aeaa18f844e01fb142af71f91465cd7e6d5e2b1bee44a92a1ab54c9e15798e7769ef8fd8b0ed885fcacbd2e181731bd63