equal
deleted
inserted
replaced
|
1 # pypi.py - Automation around PyPI |
|
2 # |
|
3 # Copyright 2019 Gregory Szorc <gregory.szorc@gmail.com> |
|
4 # |
|
5 # This software may be used and distributed according to the terms of the |
|
6 # GNU General Public License version 2 or any later version. |
|
7 |
|
8 # no-check-code because Python 3 native. |
|
9 |
|
10 from twine.commands.upload import ( |
|
11 upload as twine_upload, |
|
12 ) |
|
13 from twine.settings import ( |
|
14 Settings, |
|
15 ) |
|
16 |
|
17 |
|
18 def upload(paths): |
|
19 """Upload files to PyPI. |
|
20 |
|
21 `paths` is an iterable of `pathlib.Path`. |
|
22 """ |
|
23 settings = Settings() |
|
24 |
|
25 twine_upload(settings, [str(p) for p in paths]) |