diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0fa4cb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/MonkeyType-21.5.0.tar.gz diff --git a/monkeytype.spec b/monkeytype.spec new file mode 100644 index 0000000..237b0b8 --- /dev/null +++ b/monkeytype.spec @@ -0,0 +1,61 @@ +%global srcname MonkeyType + +Name: monkeytype +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) + +%py_provides python%{python3_pkgversion}-%{name} + +%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} + + +%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 %{name} + + +%check +%pytest + + +%files -f %{pyproject_files} +%license LICENSE +%doc CHANGES.rst CODE_OF_CONDUCT.md CONTRIBUTING.rst README.rst +%{_bindir}/%{name} + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..3cf22e2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (MonkeyType-21.5.0.tar.gz) = 0e1ed656b95022735eaae82ad27297f73169fd687dff713bee6e280f587ac4a54de0c544c7bd754861488e6a6f9ce9d431ba377510ba27b4631526db964017cf