summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-17 14:47:45 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-17 14:47:45 -0800
commitdfe69562694312c2f8277172eb993f1d94ca18f5 (patch)
treea973018bdd3c04dfa830181fa4f4677ab1f2b51a /meta
parent669420329e041605063fa4182f559a4081a435b2 (diff)
downloadspecs-dfe69562694312c2f8277172eb993f1d94ca18f5.tar.gz
specs-dfe69562694312c2f8277172eb993f1d94ca18f5.tar.xz
specs-dfe69562694312c2f8277172eb993f1d94ca18f5.zip
+ monkeytype
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/python-monkeytype.spec67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/python-monkeytype.spec b/meta/python-monkeytype.spec
new file mode 100644
index 0000000..5b46750
--- /dev/null
+++ b/meta/python-monkeytype.spec
@@ -0,0 +1,67 @@
+%global srcname MonkeyType
+%global modname monkeytype
+
+Name: python-%{modname}
+Version: 21.5.0
+Release: %autorelease
+Summary: Generating Python type annotations from sampled production types
+License: BSD
+URL: https://github.com/instagram/%{srcname}
+# PyPI source has no tests
+# Source0: %%{pypi_source %%{srcname}}
+Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+# Pipfile not supported yet
+# Test dependencies:
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(django)
+
+%global _description %{expand:
+MonkeyType collects runtime types of function arguments and return values, and
+can automatically generate stub files or even add draft type annotations
+directly to your Python code based on the types collected at runtime.}
+
+%description %{_description}
+
+
+%package -n %{modname}
+Summary: %{summary}
+Provides: python%{python3_pkgversion}-%{modname} = %{version}-%{release}
+
+%description -n %{modname} %{_description}
+
+
+%prep
+%autosetup -p1 -n %{srcname}-%{version}
+# we don't care about coverage checks
+rm pytest.ini
+
+
+%generate_buildrequires
+%pyproject_buildrequires -r
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files %{modname}
+
+
+%check
+%pytest
+
+
+%files -n %{modname} -f %{pyproject_files}
+%license LICENSE
+%doc CHANGES.rst CODE_OF_CONDUCT.md CONTRIBUTING.rst README.rst
+%{_bindir}/%{modname}
+
+
+%changelog
+%autochangelog