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