Python Private package
so in my requirements.txt i have a private github package i need to install but i keep running into this error on deploy:
I saw that you guys don't support private packages for NPM but was wondering if this is the case for python as well
31 Replies
Project ID:
c9469c41-0676-4e12-ab4a-0307986c6520
c9469c41-0676-4e12-ab4a-0307986c6520
how would you normally authorise a private python package down
git+https://username:[email protected]/AugmentedLabsInc/archer-voice.git
to clarify this is inside the requirements.txt
ty for the quick reply btwplaintext passwords in a txt file? is that the only method you can use?
nope but just wanted to deploy something quickly to test
what's the recommended way to do it then
the way i usually do it is a pip install command with env vars of credentials after requirements.txt is alr installed
well tell me these commands and the environment variables required
pip install git+https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/username/repository.git
and it's inside a shell script:
which i call from docker
what's the best way do this in railway?okay first step, set those variables in your service variables
second step, send me your railway.json file
ah i dont have have a railway.json file
i just used the github deploy
i can create one tho
every deployment gets a railway.json file, it would be in the details tab of your most recent deployment
o okay
do you only have one private package to install?
ye
is this the package?
yes
have you set those as service variables?
yep
let me know how this goes
unfortunately still same issue -- i'll do some debugging myself, wasn't too familiar with railway.json
ah wait
i know the issue
do tell
i didn't remove the old git+.... line from requirements.txt -- i suspect thats it
thanks for the help!
does it work?
yessir
my railway.json worked as is?
yep
thats awsome
i have some issues on my end but it deployed completely
sweet