From 3aa507f0a878dfb8700312cc73ae7a8a270e854221f651c62d3a6d645adf246b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 2 Apr 2024 04:47:40 +0000 Subject: [PATCH] - Initial release of 0.1.3. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mypy-testing?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pytest-mypy-testing-0.1.3.tar.gz | 3 ++ python-pytest-mypy-testing.changes | 4 ++ python-pytest-mypy-testing.spec | 65 ++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-mypy-testing-0.1.3.tar.gz create mode 100644 python-pytest-mypy-testing.changes create mode 100644 python-pytest-mypy-testing.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-mypy-testing-0.1.3.tar.gz b/pytest-mypy-testing-0.1.3.tar.gz new file mode 100644 index 0000000..06e6ee6 --- /dev/null +++ b/pytest-mypy-testing-0.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad4c41232f5d5f6d54b85a34325612e29669d01eb4e173aaf1fb023fecc9e281 +size 30127 diff --git a/python-pytest-mypy-testing.changes b/python-pytest-mypy-testing.changes new file mode 100644 index 0000000..58e378d --- /dev/null +++ b/python-pytest-mypy-testing.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 2 03:55:42 UTC 2024 - Steve Kowalik + +- Initial release of 0.1.3. diff --git a/python-pytest-mypy-testing.spec b/python-pytest-mypy-testing.spec new file mode 100644 index 0000000..1815308 --- /dev/null +++ b/python-pytest-mypy-testing.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-pytest-mypy-testing +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pytest-mypy-testing +Version: 0.1.3 +Release: 0 +Summary: Pytest plugin to check mypy output +License: Apache-2.0 OR MIT +URL: https://github.com/davidfritzsche/pytest-mypy-testing +Source: https://files.pythonhosted.org/packages/source/p/pytest-mypy-testing/pytest-mypy-testing-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module flit-core >= 2} +BuildRequires: %{python_module pip} +# SECTION test requirements +BuildRequires: %{python_module mypy >= 1.0} +BuildRequires: %{python_module pytest >= 7} +# /SECTION +BuildRequires: fdupes +Requires: python-mypy >= 1.0 +Requires: python-pytest >= 7 +BuildArch: noarch +%python_subpackages + +%description +pytest-mypy-testing — Plugin to test mypy output with pytest + +`pytest-mypy-testing` provides a pytest plugin to test that +mypy produces a given output. As mypy can be told to display the +type of an expression this allows us to check mypys type interference. + +%prep +%autosetup -p1 -n pytest-mypy-testing-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSES/Apache-2.0.txt LICENSES/CC0-1.0.txt LICENSES/MIT.txt +%{python_sitelib}/pytest_mypy_testing +%{python_sitelib}/pytest_mypy_testing-%{version}.dist-info + +%changelog