如何滚动我自己的pypi? [英] How to roll my own pypi?

查看:45
本文介绍了如何滚动我自己的pypi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行我自己的内部 pypi 服务器,以便在我的组织内分发鸡蛋.

I would like to run my own internal pypi server, for egg distribution within my organization.

我找了几个项目,比如:

I have found a few projects, such as:

据我所知,pypi.python.org 使用名为 Cheese Shop 的软件.

As I understand it, pypi.python.org uses software called Cheese Shop.

我的问题:

  1. 为什么我不能使用 cheeseshop 本身?(我找不到它,不确定它是否存在)
  2. 其他人是如何解决这个问题的?(目前我们使用 blush svn 来分发鸡蛋)
  1. Why can't I use cheeseshop itself? (I can't find it, not sure it exists)
  2. How do other people solve this problem? (Currently we use blush svn to distribute eggs)

*edit:这似乎是规范的 http://wiki.python.org/moin/PyPiImplementations.不过,我对反馈很感兴趣.

*edit: This seems canonical http://wiki.python.org/moin/PyPiImplementations. Still, I'm interested in feedback.

推荐答案

更新:PyPi 现在由 仓库,这是奶酪店的替代品.

Update: PyPi is now powered by Warehouse, which is the replacement for Cheese Shop.

奶酪店的源码可以从https://bitbucket.org/pypa/pypi/下载源代码.还有一个示例,来自您链接到的页面,使用 Apache 作为哑"Python 包存储库:

The source to Cheese Shop can be downloaded from https://bitbucket.org/pypa/pypi/src. There is also an example, from the page you linked to, of using Apache as a "dumb" Python package repository:

# Mount pypi repositories into URI space
Alias /pypi   /var/pypi

# /pypi/dev: Redirect for unknown packages (fallback to pypi)
RewriteCond   /var/pypi/dev/$1 !-d
RewriteCond   /var/pypi/dev/$1 !-f
RewriteRule   ^/pypi/dev/([^/]+)/?$ http://pypi.python.org/pypi/$1/ [R,L]

RewriteCond   /var/pypi/dev/$1/$2 !-f
RewriteRule   ^/pypi/dev/([^/]+)/([^/]+)$ http://pypi.python.org/pypi/$1/$2 [R,L]

# /pypi/stable: Redirect for unknown packages (fallback to pypi)
RewriteCond   /var/pypi/stable/$1 !-d
RewriteCond   /var/pypi/stable/$1 !-f
RewriteRule   ^/pypi/stable/([^/]+)/?$ http://pypi.python.org/pypi/$1/ [R,L]

RewriteCond   /var/pypi/stable/$1/$2 !-f
RewriteRule   ^/pypi/stable/([^/]+)/([^/]+)$ http://pypi.python.org/pypi/$1/$2 [R,L]

这篇关于如何滚动我自己的pypi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆