Group :: Development/Python3
RPM: python3-module-GeoIP2
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname GeoIP2
%define descr Python code for GeoIP2 webservice client and database reader
%def_with docs
%def_with check
Name: python3-module-%oname
Version: 4.7.0
Release: alt1
Summary: %descr
License: Apache-2.0
Group: Development/Python3
URL: https://github.com/maxmind/GeoIP2-python
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-MaxMindDB
%if_with docs
BuildRequires: python3-module-sphinx
%endif
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-mocket
BuildRequires: python3-module-decorator
BuildRequires: python3-module-http-parser
BuildRequires: python3-module-aiohttp
%endif
BuildArch: noarch
Source: %name-%version.tar
%description
%descr
%if_with docs
%package doc
Summary: Documentation for %oname
Group: Development/Documentation
%description doc
Documentation for %oname.
%endif
%prep
%setup
%build
%python3_build
%if_with docs
sphinx-build-3 -b html docs html
rm -rf html/.{buildinfo,doctrees}
%endif
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
# database_test needs submodule with database
py.test-3 --ignore tests/database_test.py
%files
%python3_sitelibdir/geoip2
%python3_sitelibdir/geoip2-%version-py%_python3_version.egg-info
%if_with docs
%files doc
%doc LICENSE html
%endif
%changelog
…
Full changelog you can see here
%define descr Python code for GeoIP2 webservice client and database reader
%def_with docs
%def_with check
Name: python3-module-%oname
Version: 4.7.0
Release: alt1
Summary: %descr
License: Apache-2.0
Group: Development/Python3
URL: https://github.com/maxmind/GeoIP2-python
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-MaxMindDB
%if_with docs
BuildRequires: python3-module-sphinx
%endif
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-mocket
BuildRequires: python3-module-decorator
BuildRequires: python3-module-http-parser
BuildRequires: python3-module-aiohttp
%endif
BuildArch: noarch
Source: %name-%version.tar
%description
%descr
%if_with docs
%package doc
Summary: Documentation for %oname
Group: Development/Documentation
%description doc
Documentation for %oname.
%endif
%prep
%setup
%build
%python3_build
%if_with docs
sphinx-build-3 -b html docs html
rm -rf html/.{buildinfo,doctrees}
%endif
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
# database_test needs submodule with database
py.test-3 --ignore tests/database_test.py
%files
%python3_sitelibdir/geoip2
%python3_sitelibdir/geoip2-%version-py%_python3_version.egg-info
%if_with docs
%files doc
%doc LICENSE html
%endif
%changelog
…
Full changelog you can see here