15
0
forked from pool/python-envs

New packages neeed for python-moto to build.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-envs?expand=0&rev=1
This commit is contained in:
2024-10-04 13:02:03 +00:00
committed by Git OBS Bridge
commit 1fa73278a4
5 changed files with 111 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
envs-1.4.tar.gz Normal file
View File

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

4
python-envs.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Oct 4 07:47:13 UTC 2024 - ecsos <ecsos@opensuse.org>
- Initial version 1.4

80
python-envs.spec Normal file
View File

@@ -0,0 +1,80 @@
#
# spec file for package python-envs
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-envs
Version: 1.4
Release: 0
Summary: Easy access of environment variables from Python
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/capless/envs
Source: https://files.pythonhosted.org/packages/source/e/envs/envs-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1.0.0}
BuildRequires: %{python_module click >= 8.0.3}
BuildRequires: %{python_module Jinja2 >= 3.0.3}
BuildRequires: %{python_module terminaltables >= 3.1.10}
BuildRequires: %{python_module poetry-core >= 1.0.0}
Requires: python-click >= 8.0.3
Requires: python-Jinja2 >= 3.0.3
Requires: python-terminaltables >= 3.1.10
BuildArch: noarch
%python_subpackages
%description
Easy access of environment variables from Python with support for typing
(ex. booleans, strings, lists, tuples, integers, floats, and dicts).
Now with CLI settings file converter.
%prep
%autosetup -p1 -n envs-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
# Fix python-bytecode-inconsistent-mtime
pushd %{buildroot}%{python_sitelib}
find . -name '*.pyc' -exec rm -f '{}' ';'
python%python_bin_suffix -m compileall *.py ';'
popd
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/envs
%check
#%%pytest OR %%pyunittest -v OR CUSTOM
%pyunittest -v
%post
%python_install_alternative envs
%postun
%python_uninstall_alternative envs
%files %{python_files}
%license LICENSE
%{python_sitelib}/envs
%{python_sitelib}/envs-%{version}.dist-info
%python_alternative %{_bindir}/envs
%changelog