commit
675a6462d8
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015, The Jupyter Development Team
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
91
python-testpath.spec
Normal file
91
python-testpath.spec
Normal file
@ -0,0 +1,91 @@
|
||||
%{?python_enable_dependency_generator}
|
||||
%global pypi_name testpath
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.3.1
|
||||
Release: 1
|
||||
Summary: Test utilities for code working with files and commands
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/jupyter/testpath
|
||||
|
||||
# There is no sdist on PyPI, download from GitHub
|
||||
Source0: %url/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-devel
|
||||
|
||||
BuildRequires: python3-flit
|
||||
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
|
||||
# Tests:
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%global _description \
|
||||
Testpath is a collection of utilities for Python code working with files and \
|
||||
commands. \
|
||||
\
|
||||
It contains functions to check things on the filesystem, and tools for \
|
||||
mocking system commands and recording calls to those.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
|
||||
%_description
|
||||
|
||||
%package doc
|
||||
Summary: %{name} documentation
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
|
||||
# The exe files are only needed on Microsoft Windows
|
||||
rm -f %{pypi_name}/*.exe
|
||||
|
||||
%build
|
||||
# this package has no setup.py
|
||||
# and upstream does not want one
|
||||
# https://github.com/takluyver/flit/issues/74
|
||||
# we use flit to create a wheel from sources
|
||||
flit build --format wheel
|
||||
|
||||
# generate html docs
|
||||
sphinx-build-3 doc html
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
|
||||
%install
|
||||
# We install the wheel created at %%build
|
||||
%py3_install_wheel %{pypi_name}-%{version}-py2.py3-none-any.whl
|
||||
|
||||
|
||||
|
||||
%check
|
||||
%{__python3} -m pytest -v
|
||||
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
|
||||
%files doc
|
||||
%doc html
|
||||
|
||||
%changelog
|
||||
* Wed Jun 23 2021 wangxiaomeng <wangxiaomeng@kylinos.cn> - 0.3.1-1
|
||||
- Package init
|
||||
BIN
testpath-0.3.1.tar.gz
Normal file
BIN
testpath-0.3.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user