2020-03-13 10:03:34 +08:00
|
|
|
|
Name: python-apipkg
|
|
|
|
|
|
Version: 1.5
|
2020-10-30 14:25:29 +08:00
|
|
|
|
Release: 3
|
2020-03-13 10:03:34 +08:00
|
|
|
|
Summary: Namespace control and lazy-import mechanism
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
URL: https://pypi.org/project/apipkg/
|
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
2020-10-30 14:25:29 +08:00
|
|
|
|
BuildRequires: python3-devel python3-setuptools_scm
|
2020-03-13 10:03:34 +08:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
With apipkg you can control the exported namespace of a Python package and greatly reduce the
|
|
|
|
|
|
number of imports for your users. It is a small pure Python module that works on CPython 2.7
|
|
|
|
|
|
and 3.4+, Jython and PyPy. It cooperates well with Python’s help() system, custom importers (PEP302)
|
|
|
|
|
|
and common command-line completion tools.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-apipkg
|
|
|
|
|
|
Summary: Namespace control and lazy-import mechanism
|
|
|
|
|
|
%python_provide python3-apipkg
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-apipkg
|
|
|
|
|
|
With apipkg you can control the exported namespace of a Python package and greatly reduce the
|
|
|
|
|
|
number of imports for your users. It is a small pure Python module that works on CPython 2.7
|
|
|
|
|
|
and 3.4+, Jython and PyPy. It cooperates well with Python’s help() system, custom importers (PEP302)
|
|
|
|
|
|
and common command-line completion tools.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -n apipkg-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-apipkg
|
|
|
|
|
|
%doc CHANGELOG README.rst
|
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-10-30 14:25:29 +08:00
|
|
|
|
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.5-3
|
|
|
|
|
|
- Remove Subpackage python2-apipkg
|
|
|
|
|
|
|
2020-03-13 10:03:34 +08:00
|
|
|
|
* Thu Mar 12 2020 chenli <chenli147@huawei.com> - 1.5-2
|
|
|
|
|
|
- Init package.
|