commit e419cc134dcf0d65817e614ed5e43dba9021792118a7512f48ff914c201b9cd3 Author: Tomáš Chvátal Date: Fri Feb 15 08:03:22 2019 +0000 Accepting request 676338 from home:jayvdb:django - Initial spec for 0.10.1 OBS-URL: https://build.opensuse.org/request/show/676338 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=1 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/python-python-dotenv.changes b/python-python-dotenv.changes new file mode 100644 index 0000000..0875a02 --- /dev/null +++ b/python-python-dotenv.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 15 06:37:32 UTC 2019 - John Vandenberg + +- Initial spec for 0.10.1 diff --git a/python-python-dotenv.spec b/python-python-dotenv.spec new file mode 100644 index 0000000..edd0bab --- /dev/null +++ b/python-python-dotenv.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-python-dotenv +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-python-dotenv +Version: 0.10.1 +Release: 0 +Summary: Python library for .env support +License: BSD-3-Clause +Group: Development/Languages/Python +URL: http://github.com/theskumar/python-dotenv +Source: https://github.com/theskumar/python-dotenv/archive/v%{version}.tar.gz +BuildRequires: %{python_module click >= 5.0} +BuildRequires: %{python_module jupyter_ipython} +BuildRequires: %{python_module pypandoc} +BuildRequires: %{python_module pytest >= 3.0.5} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sh >= 1.09} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-click >= 5.0 +# rubygem-dotenv also provides executable dotenv +Requires(post): update-alternatives +Requires(postun): update-alternatives +Recommends: python-jupyter_ipython +# There is a very similar Python package which also used `dotenv` namespace +Conflicts: python-dotenv +BuildArch: noarch +%python_subpackages + +%description +Add .env support to your Fjango/Flask apps in development and deployments. + +%prep +%setup -q -n python-dotenv-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/dotenv +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +mv %{buildroot}%{_bindir}/dotenv %{buildroot}%{_bindir}/dotenv.orig +# CLI tests require distribution to be found, and the correct executable installed +export PATH=%{buildroot}%{_bindir}:$PATH +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +cp %{buildroot}%{_bindir}/dotenv-%{$python_bin_suffix} %{buildroot}%{_bindir}/dotenv +$python -m pytest +} +mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv + +%post +%python_install_alternative dotenv + +%postun +%python_uninstall_alternative dotenv + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/dotenv +%{python_sitelib}/* + +%changelog diff --git a/v0.10.1.tar.gz b/v0.10.1.tar.gz new file mode 100644 index 0000000..0a7b75f --- /dev/null +++ b/v0.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a350dc7fe9308ad8897f24a10c1654cc4ba2bcf2db02e557163a694e5d74126 +size 16627