- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
tox-dev/devpi-process
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Allows you to createdevpi server process with indexes, andupload artifacts to that programmatically.
pip install devpi-process
frompathlibimportPathfromdevpi_processimportIndex,IndexServerwithIndexServer(Path("server-dir"))asserver:# create an index mirroring an Artifactory instancemagic_index_url="https://magic.com/artifactory/api/pypi/magic-pypi/simple"base_name="magic"server.create_index(base_name,"type=mirror",f"mirror_url={magic_index_url}")# create a dev index server that bases of magic PyPI, and upload a wheel to itdev:Index=server.create_index("dev",f"bases={server.user}/{base_name}")dev.upload("magic-2.24.0-py3-none-any.whl")assertdev.url# point the tool consuming the index server to this
About
No description or website provided.
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published