diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e4d6d89 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2015 Geoffrey Sneddon + +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. \ No newline at end of file diff --git a/pytest-expect-1.1.0.tar.gz b/pytest-expect-1.1.0.tar.gz new file mode 100644 index 0000000..7bfcb4d Binary files /dev/null and b/pytest-expect-1.1.0.tar.gz differ diff --git a/python-pytest-expect.spec b/python-pytest-expect.spec new file mode 100644 index 0000000..e869c59 --- /dev/null +++ b/python-pytest-expect.spec @@ -0,0 +1,68 @@ +Name: python-pytest-expect +Version: 1.1.0 +Release: 2 +Summary: Py.test plugin to store test expectations and mark tests based on them +License: MIT +URL: https://pypi.org/project/pytest-expect/ +Source0: https://files.pythonhosted.org/packages/8b/3d/c5fcbb8a693dcde00ecc3d69639b2b2b3f385b305bc76a06f94f1030b2dc/pytest-expect-1.1.0.tar.gz +Source1: https://raw.githubusercontent.com/gsnedders/pytest-expect/%{version}/LICENSE + +BuildRequires: python2-devel python3-devel +BuildArch: noarch + +%description +A py.test plugin that stores test expectations by saving the set of failing +tests, allowing them to be marked as xfail when running them in future. +The tests expectations are stored such that they can be distributed alongside +the tests. + + +%package -n python2-pytest-expect +Summary: Python2 package + +%description -n python2-pytest-expect +A py.test plugin that stores test expectations by saving the set of failing +tests, allowing them to be marked as xfail when running them in future. +The tests expectations are stored such that they can be distributed alongside +the tests. + +%package -n python3-pytest-expect +Summary: Python3 package + +%description -n python3-pytest-expect +A py.test plugin that stores test expectations by saving the set of failing +tests, allowing them to be marked as xfail when running them in future. +The tests expectations are stored such that they can be distributed alongside +the tests. + +%prep +%autosetup -n pytest-expect-1.1.0 -p1 +rm -rf pytest-expect.egg-info +cp -p %{SOURCE1} . + + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-pytest-expect +%doc README.rst +%license LICENSE +%{python2_sitelib}/pytest_expect-1.1.0-py2.7.egg-info +%{python2_sitelib}/pytest_expect + + +%files -n python3-pytest-expect +%doc README.rst +%license LICENSE +%{python3_sitelib}/pytest_expect-1.1.0-py3.7.egg-info +%{python3_sitelib}/pytest_expect + + +%changelog +* Mon Jan 6 2020 chenli 1.1.0-2 +- Initial package