Commit 6b49a19f by Sébastien Eustace

Fix distribution finding when publishing

parent edcad014
...@@ -232,10 +232,16 @@ class Publisher: ...@@ -232,10 +232,16 @@ class Publisher:
def _upload(self, session, url): def _upload(self, session, url):
dist = self._poetry.file.parent / 'dist' dist = self._poetry.file.parent / 'dist'
packages = dist.glob(f'{self._package.name}-{self._package.version}*') packages = dist.glob(f'{self._package.name}-{self._package.version}*')
files = (i for i in packages if i.suffix != '.asc') files = (
i for i in packages if (
i.match(f'{self._package.name}-{self._package.version}-*.whl')
or
i.match(f'{self._package.name}-{self._package.version}.tar.gz')
)
)
for file in files: for file in files:
# TODO; Check existence # TODO: Check existence
resp = self._upload_file(session, url, file) resp = self._upload_file(session, url, file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment