Alternatively, if you want to go the extra mile, you could also use Zuul to deploy a test PyPI server using devpi, set up a user and its credentials on the go, and test the upload process on the test PyPI server. This would prevent side effects like networking problems from interfering with your testing, and solve the credentials problem. Of course, if the point is to test the upload to test PyPI itself, disregard my comment. :)

On Tue, Apr 28, 2020 at 9:43 AM Miro Hrončok <mhroncok@redhat.com> wrote:
On 28. 04. 20 8:04, Frederic Lepied wrote:
> On Tue, Apr 28, 2020 at 1:27 AM Miro Hrončok <mhroncok@redhat.com
> <mailto:mhroncok@redhat.com>> wrote:
>
>     Hello CIistas (I've just invented this term, probably not good, sorry).
>
>     Do we have something like encrypted secrets [0] for the Fedora CI?
>
>     I'd like to add CI tests for twine [1] that would:
>
>        - create a Python package named fedora-ci-canary, versioned as 0+<uuid>
>        - upload the package to Test PyPI [2][3]
>        - verify it is there
>
>     For this however, we would need to store credentials for a Test PyPI account.
>     I don't mind if the credentials are compromised via malicious Pull Request
>     (they
>     are to a test environment only), but I don't feel comfortable to store them in
>     git in plaintext (or obfuscated).
>
>
> Hi,
>
> If you can use Zuul, there is support for secrets:
> https://zuul-ci.org/docs/zuul/reference/secret_def.html
>
> If you choose this road, let me know and I'll help you setup your job.

Awesome, thanks. Zuul would work.

I'll prep the actual test and will get back to you with a WIP PR.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
CI mailing list -- ci@lists.fedoraproject.org
To unsubscribe send an email to ci-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/ci@lists.fedoraproject.org


--

Matthieu Huin

Senior Software Developer

Red Hat