Skip to content

Commit 6b49a19

Browse files
committed
Fix distribution finding when publishing
1 parent edcad01 commit 6b49a19

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

poetry/masonry/publishing/publisher.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,16 @@ def post_data(self, file):
232232
def _upload(self, session, url):
233233
dist = self._poetry.file.parent / 'dist'
234234
packages = dist.glob(f'{self._package.name}-{self._package.version}*')
235-
files = (i for i in packages if i.suffix != '.asc')
235+
files = (
236+
i for i in packages if (
237+
i.match(f'{self._package.name}-{self._package.version}-*.whl')
238+
or
239+
i.match(f'{self._package.name}-{self._package.version}.tar.gz')
240+
)
241+
)
236242

237243
for file in files:
238-
# TODO; Check existence
244+
# TODO: Check existence
239245

240246
resp = self._upload_file(session, url, file)
241247

0 commit comments

Comments
 (0)