Put url_for_version() after versions in example.
This commit is contained in:
parent
8a481e7e13
commit
85be3aefa7
@ -401,10 +401,11 @@ the ``url`` declaration. For example:
|
|||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
class Foo(Package):
|
class Foo(Package):
|
||||||
|
version('8.2.1', '4136d7b4c04df68b686570afa26988ac')
|
||||||
|
...
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
return 'http://example.com/version_%s/foo-%s.tar.gz' \
|
return 'http://example.com/version_%s/foo-%s.tar.gz' \
|
||||||
% (version, version)
|
% (version, version)
|
||||||
version('8.2.1', '4136d7b4c04df68b686570afa26988ac')
|
|
||||||
...
|
...
|
||||||
|
|
||||||
If a URL cannot be derived systematically, you can add an explicit URL
|
If a URL cannot be derived systematically, you can add an explicit URL
|
||||||
|
Loading…
Reference in New Issue
Block a user