15
0

- Don't own everything under sitelib.

- Run some tests (and use GitHub tarball to get it)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crayons?expand=0&rev=11
This commit is contained in:
2021-06-15 17:37:44 +00:00
committed by Git OBS Bridge
parent 69df0074a1
commit 8c35a7d443
3 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd33b7547800f2cfbd26b38431f9e64b487a7de74a947b0fafc89b45a601813f
size 4582
oid sha256:b4a95433721246b157e057eb6c3119a57746707a9c826ad4692de1d1a2b70f37
size 5374

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 15 17:32:37 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Don't own everything under sitelib.
- Run some tests (and use GitHub tarball to get it)
-------------------------------------------------------------------
Wed Jan 6 04:58:19 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,13 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname crayons
Name: python-crayons
Version: 0.4.0
Version: 0.4.0
Release: 0
Summary: Colored strings for terminal usage
License: MIT
URL: https://github.com/MasterOdin/crayons
Source: https://files.pythonhosted.org/packages/source/c/crayons/crayons-%{version}.tar.gz
# Source: https://files.pythonhosted.org/packages/source/c/crayons/crayons-%%{version}.tar.gz
Source: https://github.com/MasterOdin/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-colorama
@@ -36,7 +39,7 @@ Included colors are red, green, yellow, blue, black, magenta, cyan, white,
and normal.
%prep
%setup -q -n crayons-%{version}
%setup -q -n %{modname}-%{version}
%build
%python_build
@@ -44,9 +47,14 @@ and normal.
%install
%python_install
%check
%python_exec test_crayons.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/%{modname}.py
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%pycache_only %{python_sitelib}/__pycache__/%{modname}*
%changelog