cookiecutter/cookiecutter.spec
Sebastian Wagner 7bacc59e37 e add python3-python-slugify as new dependency, fixes build.
- update to version 1.7.2:
 * Fixed: Jinja2&Six version limits causing build errors with ansible project [@insspb](https://github.com/insspb) (#1385)
- update to version 1.7.1:
  This release was focused on internal code and CI/CD changes. During this release
  all code was verified to match pep8, pep257 and other code-styling guides.  
  Project CI/CD was significantly changed, Windows platform checks based on Appveyor
  engine was replaced by GitHub actions tests. Appveyor was removed. Also our
  CI/CD was extended with Mac builds, to verify project builds on Apple devices.
 * Important Changes:
  * Added: Added debug messages for get_user_config [@ssbarnea](https://github.com/ssbarnea) (#1357)
  * Multiple templates per one repository feature added. [@RomHartmann](https://github.com/RomHartmann) (#1224, #1063)
  * Update replay.py json.dump indent for easy viewing [@nicain](https://github.com/nicain) (#1293)
  * 'future' library replaced with 'six' as a more lightweight python porting library [@asottile](https://github.com/asottile) (#941)
  * Added extension: Slugify template filter [@ppanero](https://github.com/ppanero) (#1336)
  * Added command line option: `--skip-if-file-exists`, allow to skip the existing files when doing `overwrite_if_exists`. [@chhsiao1981](https://github.com/chhsiao1981) (#1076)
  * Some packages versions limited to be compatible with python2.7 and python 3.5 [@insspb](https://github.com/insspb) (#1349)
 * Internal CI/CD and tests changes:
  * Coverage comment in future merge requests disabled [@ssbarnea](https://github.com/ssbarnea) (#1279)
  * Fixed Python 3.8 travis tests and setup.py message [@insspb](https://github.com/insspb) (#1295, #1297)
  * Travis builds extended with Windows setup for all supported python versions [@insspb](https://github.com/insspb) (#1300, #1301)
  * Update .travis.yml to be compatible with latest travis cfg specs [@luzfcb](https://github.com/luzfcb) (#1346)
  * Added new test to improve tests coverage [@amey589](https://github.com/amey589) (#1023)
  * Added missed coverage lines highlight to pytest-coverage report [@insspb](https://github.com/insspb) (#1352)
  * pytest-catchlog package removed from test_requirements, as now it is included in pytest [@insspb](https://github.com/insspb) (#1347)
  * Fixed `cov-report` tox invocation environment [@insspb](https://github.com/insspb) (#1350)
  * Added: Release drafter support and configuration to exclude changelog update work and focus on development [@ssbarnea](https://github.com/ssbarnea) [@insspb](https://github.com/insspb) (#1356, #1362)
  * Added: CI/CD steps for Github actions to speedup CI/CD [@insspb](https://github.com/insspb) (#1360)
  * Removed: Appveyor CI/CD completely removed [@insspb](https://github.com/insspb) [@ssbarnea](https://github.com/ssbarnea) [@insspb](https://github.com/insspb) (#1363, #1367)
 * Code style and docs changes:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=11
2020-04-22 18:17:38 +00:00

130 lines
4.1 KiB
RPMSpec

#
# spec file for package cookiecutter
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2017 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cookiecutter
Version: 1.7.2
Release: 0
Summary: A command-line utility that creates projects from project templates
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/audreyr/cookiecutter
Source: https://files.pythonhosted.org/packages/source/c/cookiecutter/cookiecutter-%{version}.tar.gz
Source1: ccext.py
BuildRequires: git
BuildRequires: python3-Jinja2 >= 2.7
BuildRequires: python3-binaryornot >= 0.2.0
BuildRequires: python3-click >= 7.0
BuildRequires: python3-devel
BuildRequires: python3-future >= 0.15.2
BuildRequires: python3-jinja2-time >= 0.1.0
BuildRequires: python3-poyo >= 0.1.0
BuildRequires: python3-python-slugify
BuildRequires: python3-setuptools
BuildRequires: python3-whichcraft >= 0.4.0
Requires: git
Requires: python3-Jinja2 >= 2.7
Requires: python3-binaryornot >= 0.2.0
Requires: python3-click >= 7.0
Requires: python3-future >= 0.15.2
Requires: python3-jinja2-time >= 0.1.0
Requires: python3-poyo >= 0.1.0
Requires: python3-python-slugify
Requires: python3-requests >= 2.18.0
Requires: python3-whichcraft >= 0.4.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION Testing requirements
BuildRequires: python3-chardet >= 2.0.0
BuildRequires: python3-freezegun
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-mock
BuildRequires: python3-requests >= 2.18.0
# /SECTION
# SECTION Documentation requirements
BuildRequires: python3-Sphinx
BuildRequires: python3-recommonmark
# /SECTION
%package doc
Summary: Documentation files for %{name}
Group: Documentation/HTML
%description
A command-line utility that creates projects from cookiecutters (project
templates), e.g. creating a Python package project from a Python package
project template.
Project templates can be in any programming language or markup format.
%description doc
A command-line utility that creates projects from cookiecutters (project
templates), e.g. creating a Python package project from a Python package
project template.
This package contains the documentation for cookiecutter.
%prep
%setup -q -n cookiecutter-%{version}
sed -i "s/cookiecutter =/cookiecutter-%{py3_ver} =/" setup.py
cp %{SOURCE1} docs
%build
python3 setup.py build
pushd docs
make %{?_smp_mflags} html
rm _build/html/.buildinfo
popd
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/cookiecutter
ln -sf %{_sysconfdir}/alternatives/cookiecutter %{buildroot}%{_bindir}/cookiecutter
%check
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test tests
%pre
[ -h %{_bindir}/cookiecutter ] || rm -f %{_bindir}/cookiecutter
%post
update-alternatives --install %{_bindir}/cookiecutter cookiecutter %{_bindir}/cookiecutter-%{py3_ver} 30
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove cookiecutter %{_bindir}/cookiecutter-%{py3_ver}
fi
%files
%license LICENSE
%ghost %{_sysconfdir}/alternatives/cookiecutter
%{_bindir}/cookiecutter
%{_bindir}/cookiecutter-%{py3_ver}
%{python3_sitelib}/*
%files doc
%doc docs/_build/html
%license LICENSE
%changelog