I am trying to install a private dependency (not something that Python could find on PyPI).
I have added to the file setup.py
this (as explained here: https
I've read multiple answers, but only this one worked for me (using pip 20.2.3
and Gitlab Pypi feature):
pip3 install --extra-index-url https://__token__:my_personal_token@gitlab.com/api/v4/projects/347/packages/pypi/simple .
My setup.py
looked like:
from setuptools import setup
setup(name='whatever_production_scripts',
version='0.0.1',
description='Whatever production scripts',
url='https://gitlab.com/user/whatever',
author='Me Myself',
author_email='user@whatever.com',
license='All rights reserved',
scripts=[
'whatever_production_scripts/production/insomnia.py',
'whatever_production_scripts/production/rdsmaintenance.py',
'whatever_production_scripts/production/changeinstancetype.py',
],
packages=[
'whatever_production_scripts',
'whatever_production_scripts.production',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Topic :: Internet",
"Topic :: System :: Systems Administration",
"Programming Language :: Python :: 3 :: Only"
],
install_requires=[
'privatepackage1>=0.1',
'publicpackage1>=7',
'publicpackage2>=2'
],
zip_safe=False)