1 Star 0 Fork 5

温占礼 / python-docker-pycreds

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-docker-pycreds.spec 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
algorithmofdish 提交于 2020-02-15 19:25 . Package init
%bcond_with python2
# the test suite is diabled b/c it needs docker-credential-secretservice binary
%bcond_with tests
Name: python-docker-pycreds
Version: 0.4.0
Release: 1
Summary: Python bindings for the docker credentials store API
License: ASL 2.0
URL: https://github.com/shin-/dockerpy-creds/
Source0: https://files.pythonhosted.org/packages/source/d/docker-pycreds/docker-pycreds-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools python3-six
%if %{with tests}
BuildRequires: python3-pytest
%endif
%if %{with python2}
BuildRequires: python2-devel python2-setuptools python2-six
%if %{with tests}
BuildRequires: python2-pytest
%endif
%endif
%description
Python bindings for the docker credentials store API
%package -n python3-docker-pycreds
Summary: Python bindings for the docker credentials store API
Requires: python3-six
%{?python_provide:%python_provide python3-docker-pycreds}
%description -n python3-docker-pycreds
Python bindings for the docker credentials store API
%if %{with python2}
%package -n python2-docker-pycreds
Summary: Python bindings for the docker credentials store API
Requires: python2-six
%{?python_provide:%python_provide python2-docker-pycreds}
%description -n python2-docker-pycreds
Python bindings for the docker credentials store API
%endif
%prep
%autosetup -n docker-pycreds-%{version} -p1
%build
%py3_build
%if %{with python2}
%py2_build
%endif
%install
%py3_install
%if %{with python2}
%py2_install
%endif
%check
%{__python3} -c "import dockerpycreds"
%if %{with tests}
PYTHONPATH="${PWD}" py.test-%{python3_version} -vv tests/
%endif
%if %{with python2}
%{__python2} -c "import dockerpycreds"
%if %{with tests}
PYTHONPATH="${PWD}" py.test-%{python2_version} -vv tests/
%endif
%endif
%if %{with python2}
%files -n python2-docker-pycreds
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{python2_sitelib}/dockerpycreds
%{python2_sitelib}/docker_pycreds-%{version}-py?.?.egg-info
%endif
%files -n python3-docker-pycreds
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{python3_sitelib}/dockerpycreds
%{python3_sitelib}/docker_pycreds-%{version}-py?.?.egg-info
%changelog
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.4.0-1
- Package init
1
https://gitee.com/zhanliwen/python-docker-pycreds.git
git@gitee.com:zhanliwen/python-docker-pycreds.git
zhanliwen
python-docker-pycreds
python-docker-pycreds
master

搜索帮助