Started by Bruce MccullamSep 29, 2021

Open
How to set variables during a project build in Python

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have some Python project, like a library. I have also two Azure DevOps environment feeds, NPRD and PROD for example. There are two different pipelines for build and post artifacts.

Now I need to define some different constants in my code for these envs, like URLS, end-points, etc. Maybe part of them I want to be secured. My built artifact (whl actually) will work on some user machine which I don't have access to and I can't define environment variables for my properties.

So how can I inject these values to the project during pipeline build? Is it possible?

0 Replies

You must be Logged in to reply
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan