15
0
forked from pool/python-cogapp

Accepting request 1006330 from devel:languages:python

- Remove not needed patch in prep section 
- Change preun to postun to run python_uninstall_alternatives to remove rpmlint
  errors

- Update to 3.3.0:
  Added the --check option to check whether files would change if run again, for use in continuous integration scenarios.
- Update to 3.2.0:
  Added the -P option to use print() instead of cog.outl() for code output.
- Update to 3.1.0: 
  * Fix a problem with Python 3.8.10 and 3.9.5 that require absolute paths in sys.path
    https://github.com/nedbat/cog/issues/16
    Python 3.9 and 3.10 are supported.

OBS-URL: https://build.opensuse.org/request/show/1006330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cogapp?expand=0&rev=5
This commit is contained in:
2022-09-27 18:14:04 +00:00
committed by Git OBS Bridge
4 changed files with 28 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e5da2bcfc4e4750c66cecb80ea4eaed1ef4fddd3787c989d4f5bfffb1152d6a
size 24638

3
cogapp-3.3.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1be95183f70282422d594fa42426be6923070a4bd8335621f6347f3aeee81db0
size 26164

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Tue Sep 27 06:52:19 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed patch in prep section
- Change preun to postun to run python_uninstall_alternatives to remove rpmlint
errors
-------------------------------------------------------------------
Mon Sep 26 22:06:02 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 3.3.0:
Added the --check option to check whether files would change if run again, for use in continuous integration scenarios.
- Update to 3.2.0:
Added the -P option to use print() instead of cog.outl() for code output.
- Update to 3.1.0:
* Fix a problem with Python 3.8.10 and 3.9.5 that require absolute paths in sys.path
https://github.com/nedbat/cog/issues/16
Python 3.9 and 3.10 are supported.
-------------------------------------------------------------------
Fri May 7 20:31:02 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cogapp
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cogapp
Version: 3.0.0
Version: 3.3.0
Release: 0
Summary: A code generator for executing Python snippets in source files
License: MIT
@@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun):update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -41,9 +41,6 @@ need.
%prep
%setup -q -n cogapp-%{version}
# The fix for bpo-43105 broke cogapp's way to import relative paths
# https://github.com/nedbat/cog/issues/16
sed -i 's/self.addToIncludePath(a)/self.addToIncludePath(os.path.abspath(a))/' cogapp/cogapp.py
%build
%python_build
@@ -61,7 +58,7 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog
%post
%python_install_alternative cog
%preun
%postun
%python_uninstall_alternative cog
%files %{python_files}