summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-21 11:43:58 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-21 11:43:58 -0800
commit9490ecf4a67775ec0298a8f3ea8c18fe97af2853 (patch)
tree2659c03a7ac5b2fad6357704abdc6bf86525c066
parentdfe69562694312c2f8277172eb993f1d94ca18f5 (diff)
downloadspecs-9490ecf4a67775ec0298a8f3ea8c18fe97af2853.tar.gz
specs-9490ecf4a67775ec0298a8f3ea8c18fe97af2853.tar.xz
specs-9490ecf4a67775ec0298a8f3ea8c18fe97af2853.zip
Rename to monkeytype, use py_provides
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--meta/monkeytype.spec (renamed from meta/python-monkeytype.spec)18
1 files changed, 6 insertions, 12 deletions
diff --git a/meta/python-monkeytype.spec b/meta/monkeytype.spec
index 5b46750..237b0b8 100644
--- a/meta/python-monkeytype.spec
+++ b/meta/monkeytype.spec
@@ -1,7 +1,6 @@
%global srcname MonkeyType
-%global modname monkeytype
-Name: python-%{modname}
+Name: monkeytype
Version: 21.5.0
Release: %autorelease
Summary: Generating Python type annotations from sampled production types
@@ -19,6 +18,8 @@ BuildRequires: python%{python3_pkgversion}-devel
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
@@ -27,13 +28,6 @@ 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
@@ -50,17 +44,17 @@ rm pytest.ini
%install
%pyproject_install
-%pyproject_save_files %{modname}
+%pyproject_save_files %{name}
%check
%pytest
-%files -n %{modname} -f %{pyproject_files}
+%files -f %{pyproject_files}
%license LICENSE
%doc CHANGES.rst CODE_OF_CONDUCT.md CONTRIBUTING.rst README.rst
-%{_bindir}/%{modname}
+%{_bindir}/%{name}
%changelog