-
Notifications
You must be signed in to change notification settings - Fork 64
pypi
Alena edited this page Mar 31, 2023
·
4 revisions
PyPI is a Python Index Repository, it allows to store and distribute python packages. Artipie supports this repository type:
repo:
type: pypi
storage:
type: fs
path: /var/artipie/data
Check storage documentations to learn more about storage settings.
To publish the packages with twine
specify Artipie repository url with --repository-url
option
$ twine upload --repository-url http://{host}:{port}/{repository-name} -u {username} -p {password} my-project/dist/*
To install the package with pip install
specify Artipie repository url with --index-url
option:
$ pip install --index-url http://{username}:{password}@{host}:{port}/{repository-name} my-project
In the examples above {host}
and {port}
are Artipie service host and port, {repository-name}
is the name of the repository (and repository name is the name of the repo config yaml file),
username
and password
are credentials of Artipie user.