结构设置脚本和结构实用程序库

fabsetup的Python项目详细描述


结构任务,以便设置和维护配置、软件 本地或远程Linux系统上的安装和其他内容(大多数 debian/ubuntu的功能)。

“dotfiles on steroids”

用法

fabsetup是一个`fabric<;http://www.fabfile.org/>;`\uu脚本。

# task infos
## list all tasks: '-l'
fabsetup -l

## show details: '-d'
fabsetup -d new_addon


# run tasks

fabsetup setup.regex_repl

## on your local host:
fabsetup setup.pencil3 -H localhost

## remote host:
fabsetup up -H example.com

`设置howtos<;/howtos>;`\uu

已知的fabsetup插件

请投稿:Create your own fabsetup-addon并制作一个pull request来添加 fabsetup加载项到fabsetup/addons.py中的known_pip_addons和 到这个README.md

安装

作为pypi package的 命令pip2(推荐方式):

pip2 install fabsetup

# install addon, eg. fabsetup-theno-termdown
pip2 install fabsetup-theno-termdown

覆盆子皮

在新鲜的覆盆子(德宾)上,你至少需要 在安装fabsetup之前使用pip

sudo apt install -y git python python-pip libffi-dev libssl-dev tree curl && sudo pip install fabsetup

整个安装过程将在Raspi 3上花费大约15分钟, 覆盆子伸展,这样你就可以给自己沏茶了。注意:你不需要 键入pip2作为pip默认为pip的python2变量。 如果您像正常的usr一样运行$ pip install fabsetup(没有sudopip将默认使用--user设置安装,因此fabsetup是 位于~/.local/bin下。在这种情况下,您需要添加 ~/.local/bin$PATH,位于/etc/profile中。

更新:

pip2 install --upgrade fabsetup

# update addon (also updates fabsetup)
pip2 install --upgrade fabsetup-theno-termdown

无超级用户权限安装:

pip2 install --user fabsetup

使用--userpip运行时,将在以下位置安装命令fabsetup~/.local/binAssure~/.local/bin$PATH环境变量中设置。

卸载:

pip2 uninstall --yes fabsetup
pip2 uninstall --yes fabsetup-addon-theno

您还可以克隆github repository而不是使用 pip2 install

# install requirements
sudo apt-get install  git  fabric
pip2 install --user utlz

git clone  https://github.com/theno/fabsetup.git  ~/.fabsetup

# from ~/.fabsetup dir use `fab` instead of `fabsetup`
cd ~/.fabsetup
fab -l

开发

devel命令:

# save changes
git commit -am 'I describe my changes'# upload to github
git push origin master

# update version number in fabsetup/_version.py
# create and publish package at pypi
fab -f fabfile-dev.py  pypi

# clean up
fab -f fabfile-dev.py  clean

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

推荐PyPI第三方库


热门话题
JavaSpring重定向请求处理程序   SwingJava:拆分字符串并将其放入文本区域的   Java:标记“”上出现语法错误,此标记后面应为表达式   web服务Java RestService从日志文件写入和读取数据   java如何将ArrayList<String>转换为char数组,然后向后打印每个单词?   java SimpleDataFormat解析返回年终日期   加密Java aes解密bytebuffer,包括填充为空字节   java有没有办法从特定的if语句调用变量?   java从更新返回到渲染   spring GRPC Java登录测试   java为什么下面的代码不工作(StringBuffer.toString!=null)   java是一种可行的模式吗?   使用Spring集成测试的JavaOSGi片段   java jCommander为未知和未使用的值引发异常?   在imageView的editText中输入的java图像URL