diff --git a/python-untokenize.spec b/python-untokenize.spec new file mode 100644 index 0000000..0c8e5ed --- /dev/null +++ b/python-untokenize.spec @@ -0,0 +1,48 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name untokenize + +Name: python-%{pypi_name} +Version: 0.1.1 +Release: 1 +Summary: It preserves the original whitespace between tokens. + +License: MIT +URL: https://files.pythonhosted.org/packages/f7/46/e7cea8159199096e1df52da20a57a6665da80c37fb8aeb848a3e47442c32/untokenize-0.1.1.tar.gz +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv + +%description +Untokenize transforms tokens into source code. Unlike the standard library’s tokenize.untokenize(), it preserves the original whitespace between tokens. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +Untokenize transforms tokens into source code. Unlike the standard library’s tokenize.untokenize(), it preserves the original whitespace between tokens. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.rst +%{python3_sitelib}/untokenize.py +%{python3_sitelib}/__pycache__/untokenize.cpython-310* +%{python3_sitelib}/untokenize-0.1.1.dist-info/ + +%changelog +* Mon Jun 26 2023 zoujiancang - 0.1.1-1 +- Initial package diff --git a/untokenize-0.1.1.tar.gz b/untokenize-0.1.1.tar.gz new file mode 100644 index 0000000..e67cceb Binary files /dev/null and b/untokenize-0.1.1.tar.gz differ