diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..f087b429e2f81a9f37b28a8308e2210f84df6c9b --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..af0c39f4513431c8c9ba5f0f953cd12e0842dfcf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.lfsconfig diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..d2c2752f24b1e492f729acc2496cf2754900fb16 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://openeuler-bigfiles.test.osinfra.cn/src-openEuler/software-package-server \ No newline at end of file diff --git a/blacken_docs-1.16.0.tar.gz b/blacken_docs-1.16.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b5f8406cc2f2af3c20c59620d4d928a841eea198 --- /dev/null +++ b/blacken_docs-1.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4bdc3f3d73898dfbf0166f292c6ccfe343e65fc22ddef5319c95d1a8dcc6c1c +size 12964 diff --git a/python-blacken-docs.spec b/python-blacken-docs.spec new file mode 100644 index 0000000000000000000000000000000000000000..9cb9dc9acbd55844d3a944831be0c47e342e45c8 --- /dev/null +++ b/python-blacken-docs.spec @@ -0,0 +1,75 @@ +%global pypi_name blacken-docs +%global source_name blacken_docs + +Name: python-%{pypi_name} +Version: 1.16.0 +Release: 1 +Summary: Run Black on Python code blocks in documentation files. + +License: MIT +URL: https://github.com/adamchainz/blacken-docs +Source0: https://files.pythonhosted.org/packages/73/79/a3fbf1d5c1ea3395a2a16e435d918a35d60ac7474cfb41cf34a44acb0127/blacken_docs-1.16.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + + +%description +Run Black on Python code blocks in documentation files. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} +%description -n python3-%{pypi_name} +Run Black on Python code blocks in documentation files. + +%package help +Summary: %{summary} +Provides: python3-%{source_name}-doc +%description help +Run Black on Python code blocks in documentation files. + + +%prep +%autosetup -n %{source_name}-%{version} + + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/doclist.lst . + + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +#%{python3_sitelib}/async_generator-stubs +%{python3_sitelib}/%{source_name}* +%{_bindir}/%{pypi_name} + + +%files help +%{_docdir}/* + + +%changelog +* Tue Aug 22 2023 luolu12 - 1.16.0-1 +- Initial package.