From 1fa73278a4567d4447b033339c39410a6ee56317e7d83ecf825f72fcb46be5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 4 Oct 2024 13:02:03 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + envs-1.4.tar.gz | 3 ++ python-envs.changes | 4 +++ python-envs.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 envs-1.4.tar.gz create mode 100644 python-envs.changes create mode 100644 python-envs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/envs-1.4.tar.gz b/envs-1.4.tar.gz new file mode 100644 index 0000000..d5a4adc --- /dev/null +++ b/envs-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d8435c6985d1cdd68299e04c58e2bdb8ae6cf66b2596a8079e6f9a93f2a0398 +size 9230 diff --git a/python-envs.changes b/python-envs.changes new file mode 100644 index 0000000..cc3fad7 --- /dev/null +++ b/python-envs.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Oct 4 07:47:13 UTC 2024 - ecsos + +- Initial version 1.4 diff --git a/python-envs.spec b/python-envs.spec new file mode 100644 index 0000000..ce81db9 --- /dev/null +++ b/python-envs.spec @@ -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