From 709418575c3810c13e33821dc6dcac089e8d4c1b Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Oct 04 2018 17:30:27 +0000 Subject: SourceURL guidelines for PyPI: Use %{pypi_source} --- diff --git a/guidelines/modules/ROOT/pages/SourceURL.adoc b/guidelines/modules/ROOT/pages/SourceURL.adoc index af05a41..27fb0d1 100644 --- a/guidelines/modules/ROOT/pages/SourceURL.adoc +++ b/guidelines/modules/ROOT/pages/SourceURL.adoc @@ -60,12 +60,16 @@ tar -czvf libfoo-$VERSION-nopatents.tar.gz libfoo-$VERSION == Python Packages (pypi) -As Pypi has moved to storing files in directories which change depending on the file being stored, it is rather unpleasant to use in a Source: URL. Instead, files.pythonhosted.org can be used as follows, where `+%srcname+` is the project's name on pypi and is the first letter of that name. (See also the sample python spec Packaging:Python#Example_common_spec_file[here]). +As PyPI has moved to storing files in directories which change depending on the file being stored, +it is rather unpleasant to use in a Source: URL. +Instead, files.pythonhosted.org can be used trough the `+%{pypi_source}+` macro. .... -Source0: https://files.pythonhosted.org/packages/source//%{srcname}/%{srcname}-%{version}.tar.gz +Source0: %{pypi_source} .... +See more about the macro in the xref:Python.adoc#_source_files_from_pypi[Python guidelines]. + == Sourceforge.net For packages hosted on sourceforge, use