cookiecutter/cookiecutter.spec

149 lines
5.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package cookiecutter
#
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
# Copyright (c) 2022 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/
#
%define skip_python2 1
Name: cookiecutter
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
Version: 2.0.2
Release: 0
Summary: A command-line utility that creates projects from project templates
License: BSD-3-Clause
Group: Development/Languages/Python
- remove obsolete patch fix-python-invocation-tests.diff - remove obsolete patch cookiecutter-click7.patch - update to version 1.7.0: * Important Changes: * Drop support for EOL Python 3.4, thanks to [@jamescurtin](https://github.com/jamescurtin) and [@insspb](https://github.com/insspb) (#1024) * Drop support for EOL Python 3.3, thanks to [@hugovk](https://github.com/hugovk) (#1024) * Increase the minimum click version to 7.0, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Other Changes: * PEP257 fixing docstrings in exceptions.py. Thanks to [@MinchinWeb](https://github.com/MinchinWeb) (#1237) * PEP257 fixing docstrings in replay.py. Thanks to [@kishan](https://github.com/kishan3) (#1234) * PEP257 fixing docstrings in test_unzip.py. Thanks to [@tonytheleg](https://github.com/tonytheleg) and [@insspb](https://github.com/insspb) (#1236, #1262) * Fixed tests sequence for appveyor, to exclude file not found bug. Thanks to [@insspb](https://github.com/insspb) (#1257) * Updates REAMDE.md with svg badge for appveyor. Thanks to [@sobolevn](https://github.com/sobolevn) (#1254) * Add missing {% endif %} to Choice Variables example. Thanks to [@mattstibbs](https://github.com/mattstibbs) (#1249) * Core documentation converted to Markdown format thanks to [@wagnernegrao](https://github.com/wagnernegrao), [@insspb](https://github.com/insspb) (#1216) * Tests update: use sys.executable when invoking python in python 3 only environment thanks to [@vincentbernat](https://github.com/vincentbernat) (#1221) * Prevent `click` API v7.0 from showing choices when already shown, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Test the codebase with python3.8 beta on tox and travis-ci (#1206), thanks to [@mihrab34](https://github.com/mihrab34) * Add a [CODE\_OF\_CONDUCT.md](https://github.com/audreyr/cookiecutter/blob/master/CODE_OF_CONDUCT.md) file to the project, thanks to [@andreagrandi](https://github.com/andreagrandi) (#1009) * Update docstrings in `cookiecutter/main.py`, `cookiecutter/__init__.py`, and `cookiecutter/log.py` to follow the PEP 257 style guide, thanks to [@meahow](https://github.com/meahow) (#998, #999, #1000) * Update docstrings in `cookiecutter/utils.py` to follow the PEP 257 style guide, thanks to [@dornheimer](https://github.com/dornheimer)(#1026) * Fix grammar in *Choice Variables* documentation, thanks to [@jubrilissa](https://github.com/jubrilissa) (#1011) * Update installation docs with links to the Windows Subsystem and GNU utilities, thanks to [@Nythiennzo](https://github.com/Nythiennzo) for the PR and [@BruceEckel](https://github.com/BruceEckel) for the review (#1016) * Upgrade flake8 to version 3.5.0, thanks to [@cclauss](https://github.com/cclauss) (#1038) * Update tutorial with explanation for how cookiecutter finds the template file, thanks to [@accraze](https://github.com/accraze)(#1025) * Update CI config files to use `TOXENV` environment variable, thanks to [@asottile](https://github.com/asottile) (#1019) * Improve user documentation for writing hooks, thanks to [@jonathansick](https://github.com/jonathansick) (#1057) * Make sure to preserve the order of items in the generated cookiecutter context, thanks to [@hackebrot](https://github.com/hackebrot) (#1074) * Fixed DeprecationWarning for a regular expression on python 3.6, thanks to [@reinout](https://github.com/reinout) (#1124) * Document use of cookiecutter-template topic on GitHub, thanks to [@ssbarnea](https://github.com/ssbarnea) (#1189) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=7
2020-01-01 12:04:51 +01:00
URL: https://github.com/audreyr/cookiecutter
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
Source: https://github.com/cookiecutter/cookiecutter/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# recent versions are not published on PyPI: https://github.com/cookiecutter/cookiecutter/issues/1636
#Source: https://files.pythonhosted.org/packages/source/c/cookiecutter/cookiecutter-%{version}.tar.gz
Source1: ccext.py
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
# PATCH-FIX-UPSTREAM -- fix-setup-version.patch https://github.com/cookiecutter/cookiecutter/pull/1656
Patch0: https://github.com/cookiecutter/cookiecutter/pull/1656.patch#/fix-setup-version.patch
BuildRequires: %{python_module Jinja2 >= 2.7}
BuildRequires: %{python_module binaryornot >= 0.2.0}
BuildRequires: %{python_module click >= 7.0}
BuildRequires: %{python_module future >= 0.15.2}
BuildRequires: %{python_module jinja2-time >= 0.1.0}
BuildRequires: %{python_module poyo >= 0.1.0}
BuildRequires: %{python_module python-slugify}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module whichcraft >= 0.4.0}
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: python-rpm-macros
Requires: git-core
Requires: python-Jinja2 >= 2.7
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
Requires: python-PyYAML
Requires: python-binaryornot >= 0.2.0
Requires: python-click >= 7.0
Requires: python-future >= 0.15.2
Requires: python-jinja2-time >= 0.1.0
Requires: python-poyo >= 0.1.0
Requires: python-python-slugify
Requires: python-requests >= 2.18.0
Requires: python-whichcraft >= 0.4.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION Testing requirements
BuildRequires: %{python_module chardet >= 2.0.0}
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.18.0}
# /SECTION
- remove obsolete patch fix-python-invocation-tests.diff - remove obsolete patch cookiecutter-click7.patch - update to version 1.7.0: * Important Changes: * Drop support for EOL Python 3.4, thanks to [@jamescurtin](https://github.com/jamescurtin) and [@insspb](https://github.com/insspb) (#1024) * Drop support for EOL Python 3.3, thanks to [@hugovk](https://github.com/hugovk) (#1024) * Increase the minimum click version to 7.0, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Other Changes: * PEP257 fixing docstrings in exceptions.py. Thanks to [@MinchinWeb](https://github.com/MinchinWeb) (#1237) * PEP257 fixing docstrings in replay.py. Thanks to [@kishan](https://github.com/kishan3) (#1234) * PEP257 fixing docstrings in test_unzip.py. Thanks to [@tonytheleg](https://github.com/tonytheleg) and [@insspb](https://github.com/insspb) (#1236, #1262) * Fixed tests sequence for appveyor, to exclude file not found bug. Thanks to [@insspb](https://github.com/insspb) (#1257) * Updates REAMDE.md with svg badge for appveyor. Thanks to [@sobolevn](https://github.com/sobolevn) (#1254) * Add missing {% endif %} to Choice Variables example. Thanks to [@mattstibbs](https://github.com/mattstibbs) (#1249) * Core documentation converted to Markdown format thanks to [@wagnernegrao](https://github.com/wagnernegrao), [@insspb](https://github.com/insspb) (#1216) * Tests update: use sys.executable when invoking python in python 3 only environment thanks to [@vincentbernat](https://github.com/vincentbernat) (#1221) * Prevent `click` API v7.0 from showing choices when already shown, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Test the codebase with python3.8 beta on tox and travis-ci (#1206), thanks to [@mihrab34](https://github.com/mihrab34) * Add a [CODE\_OF\_CONDUCT.md](https://github.com/audreyr/cookiecutter/blob/master/CODE_OF_CONDUCT.md) file to the project, thanks to [@andreagrandi](https://github.com/andreagrandi) (#1009) * Update docstrings in `cookiecutter/main.py`, `cookiecutter/__init__.py`, and `cookiecutter/log.py` to follow the PEP 257 style guide, thanks to [@meahow](https://github.com/meahow) (#998, #999, #1000) * Update docstrings in `cookiecutter/utils.py` to follow the PEP 257 style guide, thanks to [@dornheimer](https://github.com/dornheimer)(#1026) * Fix grammar in *Choice Variables* documentation, thanks to [@jubrilissa](https://github.com/jubrilissa) (#1011) * Update installation docs with links to the Windows Subsystem and GNU utilities, thanks to [@Nythiennzo](https://github.com/Nythiennzo) for the PR and [@BruceEckel](https://github.com/BruceEckel) for the review (#1016) * Upgrade flake8 to version 3.5.0, thanks to [@cclauss](https://github.com/cclauss) (#1038) * Update tutorial with explanation for how cookiecutter finds the template file, thanks to [@accraze](https://github.com/accraze)(#1025) * Update CI config files to use `TOXENV` environment variable, thanks to [@asottile](https://github.com/asottile) (#1019) * Improve user documentation for writing hooks, thanks to [@jonathansick](https://github.com/jonathansick) (#1057) * Make sure to preserve the order of items in the generated cookiecutter context, thanks to [@hackebrot](https://github.com/hackebrot) (#1074) * Fixed DeprecationWarning for a regular expression on python 3.6, thanks to [@reinout](https://github.com/reinout) (#1124) * Document use of cookiecutter-template topic on GitHub, thanks to [@ssbarnea](https://github.com/ssbarnea) (#1189) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=7
2020-01-01 12:04:51 +01:00
# SECTION Documentation requirements
BuildRequires: python3-Sphinx
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
BuildRequires: python3-sphinx-click
%if 0%{?sle_version} == 150300
BuildRequires: python3-commonmark
%endif
- remove obsolete patch fix-python-invocation-tests.diff - remove obsolete patch cookiecutter-click7.patch - update to version 1.7.0: * Important Changes: * Drop support for EOL Python 3.4, thanks to [@jamescurtin](https://github.com/jamescurtin) and [@insspb](https://github.com/insspb) (#1024) * Drop support for EOL Python 3.3, thanks to [@hugovk](https://github.com/hugovk) (#1024) * Increase the minimum click version to 7.0, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Other Changes: * PEP257 fixing docstrings in exceptions.py. Thanks to [@MinchinWeb](https://github.com/MinchinWeb) (#1237) * PEP257 fixing docstrings in replay.py. Thanks to [@kishan](https://github.com/kishan3) (#1234) * PEP257 fixing docstrings in test_unzip.py. Thanks to [@tonytheleg](https://github.com/tonytheleg) and [@insspb](https://github.com/insspb) (#1236, #1262) * Fixed tests sequence for appveyor, to exclude file not found bug. Thanks to [@insspb](https://github.com/insspb) (#1257) * Updates REAMDE.md with svg badge for appveyor. Thanks to [@sobolevn](https://github.com/sobolevn) (#1254) * Add missing {% endif %} to Choice Variables example. Thanks to [@mattstibbs](https://github.com/mattstibbs) (#1249) * Core documentation converted to Markdown format thanks to [@wagnernegrao](https://github.com/wagnernegrao), [@insspb](https://github.com/insspb) (#1216) * Tests update: use sys.executable when invoking python in python 3 only environment thanks to [@vincentbernat](https://github.com/vincentbernat) (#1221) * Prevent `click` API v7.0 from showing choices when already shown, thanks to [@rly](https://github.com/rly) and [@luzfcb](https://github.com/luzfcb) (#1168) * Test the codebase with python3.8 beta on tox and travis-ci (#1206), thanks to [@mihrab34](https://github.com/mihrab34) * Add a [CODE\_OF\_CONDUCT.md](https://github.com/audreyr/cookiecutter/blob/master/CODE_OF_CONDUCT.md) file to the project, thanks to [@andreagrandi](https://github.com/andreagrandi) (#1009) * Update docstrings in `cookiecutter/main.py`, `cookiecutter/__init__.py`, and `cookiecutter/log.py` to follow the PEP 257 style guide, thanks to [@meahow](https://github.com/meahow) (#998, #999, #1000) * Update docstrings in `cookiecutter/utils.py` to follow the PEP 257 style guide, thanks to [@dornheimer](https://github.com/dornheimer)(#1026) * Fix grammar in *Choice Variables* documentation, thanks to [@jubrilissa](https://github.com/jubrilissa) (#1011) * Update installation docs with links to the Windows Subsystem and GNU utilities, thanks to [@Nythiennzo](https://github.com/Nythiennzo) for the PR and [@BruceEckel](https://github.com/BruceEckel) for the review (#1016) * Upgrade flake8 to version 3.5.0, thanks to [@cclauss](https://github.com/cclauss) (#1038) * Update tutorial with explanation for how cookiecutter finds the template file, thanks to [@accraze](https://github.com/accraze)(#1025) * Update CI config files to use `TOXENV` environment variable, thanks to [@asottile](https://github.com/asottile) (#1019) * Improve user documentation for writing hooks, thanks to [@jonathansick](https://github.com/jonathansick) (#1057) * Make sure to preserve the order of items in the generated cookiecutter context, thanks to [@hackebrot](https://github.com/hackebrot) (#1074) * Fixed DeprecationWarning for a regular expression on python 3.6, thanks to [@reinout](https://github.com/reinout) (#1124) * Document use of cookiecutter-template topic on GitHub, thanks to [@ssbarnea](https://github.com/ssbarnea) (#1189) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=7
2020-01-01 12:04:51 +01:00
BuildRequires: python3-recommonmark
# /SECTION
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides: cookiecutter = %{version}-%{release}
Obsoletes: cookiecutter < %{version}-%{release}
%endif
%python_subpackages
%package -n cookiecutter-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 -n cookiecutter-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}
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
%patch0 -p1
cp %{SOURCE1} docs
# Remove pytest addopts:
rm setup.cfg
%build
%python_build
pushd docs
make %{?_smp_mflags} html
rm _build/html/.buildinfo
popd
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/cookiecutter
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# the doc directive in the files section cannot deduplicate, so do it manually
mkdir -p %{buildroot}%{_docdir}/cookiecutter-doc
cp -r docs/_build/html %{buildroot}%{_docdir}/cookiecutter-doc/
%fdupes %{buildroot}%{_docdir}/cookiecutter-doc
%check
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
# test_generate_file_verbose_template_syntax_error: reported at https://github.com/cookiecutter/cookiecutter/issues/1655
%pytest tests -k 'not test_generate_file_verbose_template_syntax_error'
%pre
# delete command if the old package was not update-alternatives controlled
[ -h %{_bindir}/cookiecutter ] || rm -f %{_bindir}/cookiecutter
%post
%python_install_alternative cookiecutter
%postun
%python_uninstall_alternative cookiecutter
%files %{python_files}
%license LICENSE
%python_alternative cookiecutter
- update to version 2.0.2: - Fix Python version number in cookiecutter --version and test on Python 3.10 (#1621) @ozer550 - Removed changes related to setuptools_scm (#1629) @audreyfeldroy @ozer550 - update to version 2.0.1: - Breaking Changes: - Release preparation for 2.0.1rc1 (#1608) @audreyfeldroy - Replace poyo with pyyaml. (#1489) @dHannasch - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Remove support for python2.7 (#1386) @ssbarnea - Minor Changes: - Adopt setuptools-scm packaging (#1577) @ssbarnea - Log the error message when git clone fails, not just the return code (#1505) @logworthy - allow jinja 3.0.0 (#1548) @wouterdb - Added uuid extension to be able to generate uuids (#1493) @jonaswre - Alert user if choice is invalid (#1496) @dHannasch - Replace poyo with pyyaml. (#1489) @dHannasch - update AUTHOR lead (#1532) @HosamAlmoghraby - Add Python 3.9 (#1478) @gliptak - Added: --list-installed cli option, listing already downloaded cookiecutter packages (#1096) @chrisbrake - Added: Jinja2 Environment extension on files generation stage (#1419) @insspb - Added: --replay-file cli option, for replay file distributing (#906) @Cadair - Added: _output_dir to cookiecutter context (#1034) @Casyfill - Added: CLI option to ignore hooks (#992) @rgreinho - Changed: Generated projects can use multiple type hooks at same time. (sh + py) (#974) @milonimrod - Added: Path templates will be rendered when copy_without_render used (#839) @noirbizarre - Added: End of line detection and configuration. (#1407) @insspb - Making code python 3 only: Remove python2 u' sign, fix some strings (#1402) @insspb - py3: remove futures, six and encoding (#1401) @insspb - Render variables starting with an underscore. (#1339) @smoothml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=18
2022-03-28 11:52:35 +02:00
%{python_sitelib}/cookiecutter*
%files -n cookiecutter-doc
%license LICENSE
%doc %{_docdir}/cookiecutter-doc
%changelog