Mercurial > hgrepos > Python > apps > py-cutils
comparison _postprocess-sdist.py @ 286:9518944ed42e
Do not handle "file:" version specifications yet
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 23 Feb 2025 21:52:34 +0100 |
| parents | 39a19c008708 |
| children | e42a4486a007 |
comparison
equal
deleted
inserted
replaced
| 285:39a19c008708 | 286:9518944ed42e |
|---|---|
| 29 .strip() | 29 .strip() |
| 30 .rpartition('.')) | 30 .rpartition('.')) |
| 31 assert dummy is not None and vermodattr is not None | 31 assert dummy is not None and vermodattr is not None |
| 32 vermod = importlib.import_module(vermodname) | 32 vermod = importlib.import_module(vermodname) |
| 33 project_version = getattr(vermod, vermodattr) | 33 project_version = getattr(vermod, vermodattr) |
| 34 else: | 34 elif project_version.startswith("file:"): |
| 35 assert False | 35 assert False |
| 36 # | 36 # |
| 37 # Compressed tar files cannot be modified by Python: make sure the | 37 # Compressed tar files cannot be modified by Python: make sure the |
| 38 # originally generated archive is uncompressed. | 38 # originally generated archive is uncompressed. |
| 39 # | 39 # |
