创建一个完整的自包含virtualenv引导文件

bootstrap-env的Python项目详细描述


引导环境

创建完整的自包含virtualenv引导文件的实验项目。

见:packaging-problems issues 55

叉子和贡献!;)

兼容的python版本(另请参见.travis.yml):

  • 3.5、3.6
  • pypy(python v2和v3)
Status on travis-ci.orgtravis-ci.org/jedie/bootstrap_env
Status on appveyor.comci.appveyor.com/project/jedie/bootstrap-env
Coverage Status on coveralls.iocoveralls.io/r/jedie/bootstrap_env
Status on landscape.iolandscape.io/github/jedie/bootstrap_env/master
Requirements Status on requires.iorequires.io/github/jedie/bootstrap_env/requirements/

状态

1.0版是重写版,现在还不能使用!

引导引导程序env-linux

# Download bootstrap file from github:
/home/FooBar$ wget https://github.com/jedie/bootstrap_env/raw/master/bootstrap_env/boot_bootstrap_env.py

# Create virtualenv with all needed packages:
/home/FooBar$ python3 boot_bootstrap_env.py boot ~/Bootstrap-env

引导引导程序环境-Windows

  1. 安装python 3:https://www.python.org/downloads/
  2. 从github下载引导文件:boot_bootstrap_env.py(右键单击并选择“保存”)
  3. 启动boot_bootstrap_env.py并例如:
boot_bootstrap_env.py shell v1.0.0rc11
Type help or ? to list commands.

boot_bootstrap_env.py> boot ~/Bootstrap-Env
...
virtualenv created at: 'C:\Users\<YourUserName>\Bootstrap-Env'

用法:

  1. 打开cmd.exe,例如:
C:\> cd /d %USERPROFILE%

C:\Users\foobar>cd Bootstrap-Env

C:\Users\foobar\Bootstrap-Env>cd Scripts

C:\Users\foobar\Bootstrap-Env\Scripts>call activate.bat
(Bootstrap-Env) C:\Users\foobar\Bootstrap-Env\Scripts> bootstrap_env_admin.py
Activated virtualenv detected: 'c:\\users\\foobar\\bootstrap-env' (c:\users\foobar\bootstrap-env\scripts\python.exe)

bootstrap_env_admin.py shell v0.1.0
Type help or ? to list commands.

bootstrap_env_admin.py> ?

Hint: All commands can be called directly from commandline.
e.g.: $ ./bootstrap_env_admin.py help

Available commands (type help <topic>):

 change_editable_address    - Replace git remote url from github read-only 'https' to 'git@'
 help                       - List available commands with "help" or detailed help with "help cmd".
 pip_freeze                 - Just run 'pip freeze'
 pytest                     - Run tests via pytest
 quit                       - Exit this interactiv shell
 update_env                 - Update all packages in virtualenv.
 upgrade_requirements       - 1. Convert via 'pip-compile' *.in requirements files to *.txt

工作原理

bootstrap项目

引导程序的工作方式如下:

  • 创建virtualenv
  • pip安装<;项目>;
  • <;project>;_admin update_env

向后不兼容的更改

v0.6.4->;v1.0.0

v1是完全重写的

相容矩阵

bootstrap_envPython
>=v1.03.5, 3.6, PyPy3
<=v0.62.7, 3.4, 3.5, PyPy (Python v2 and v3)

另请参见中的组合:

历史记录

  • compare v1.0.1…v1.0.2-2019年1月8日:

    • little change in appearance
  • compare v0.6.4…v1.0.1-2019年1月8日:

    • rewrite based on “PyLucid v3 boot” sources (by Jens Diemer)
  • v0.6.4-2016年11月30日:

    • Note: This pip version doesn’t support pypy3. See notes above
    • Update to get-pip v9.0.1
  • v0.6.3-2016年9月12日:

    • update for virtualenv v15.0.3
  • v0.6.2-2016年7月20日:

  • v0.6.1-04.04.2016:

  • v0.6.0-2015年12月26日:

    • Remove old v0.4 API warnings
  • v0.5.4-2015年7月26日:

  • v0.5.3-24.07.2015-更新到pip 7.1.2

  • v0.5.2-24.07.2015-生成add_extend_解析器,add_adjust_optionsadd_after_install可选的generate_bootstrap()

  • v0.5.1-18.07.2015-更新到pip 7.1.0

  • v0.5.0-05.06.2015-添加unittests,重构源代码布局。(请注意上面的“向后不兼容更改!”)

  • V0.4.6-03.06.2015-更新至PIP 7.0.3

  • v0.4.5-26.05.2015-更新到pip 7.0.1,在生成的引导文件注释中剪切文件路径

  • V0.4.4-14.04.2015-更新到PIP 6.1.1(也可以作为带轮子的V0.4.4再次上载)

  • V0.4.2-07.02.2015-更新至PIP 6.0.8

  • V0.4.1-29.01.2015-更新PIP 6.0.7和PIN请求的URL。

  • V0.4.0-28.01.2015-PIP 6.0.6更改的更新

  • v0.3.5-28.01.2015-为get-pip.pyv6.0.6更新sha256

  • >V0.3.4--141.2014—BugFix:如果^ TT2}$不存在。

  • v0.3.3-14.11.2014-将版本号添加到生成的引导文件中。

  • v0.3.2-14.11.2014-添加“boot bootstrap_env”和在Windows下运行的错误修复程序。

  • v0.3.1-2014年11月14日-在PIP安装时,如果使用了自己的可选选项,则修复“错误:没有此类选项:”的错误。

  • v0.3.0-13.11.2014-键入:将所有bootstrip重命名为bootstrap;)

  • v0.2.0-09.10.2014-将prefixsuffix参数添加到generate_bootstrap()

  • v0.1.0-2014年10月9日-初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaGCP:一个VM可以位于具有相同地址的不同网络上吗?   java查找安卓中第一个数组的第二个数组中存在的元素的索引   java摄像头活动不工作,设置参数失败   用于python的Base64转换的Java等效代码   为什么JPA/Hibernate在我尝试运行@Query时抛出“java.lang.NegativeArraySizeException:1”?   如何在ubuntu for java的终端上设置路径?   java为什么这两个IP不同?   java JPA:如何将本机查询结果集转换为POJO类集合   java如何在|(12)|(23)中用数字拆分字符串   异常处理如何让程序在达到Java目标后停止运行   java如何不添加以特定字符开头的元素   java如何通过字符串获得swing按钮名称?   java如何在响应不成功时读取改装中的错误体?   java*更新*现在我的程序可以编译但不运行了?