资源简介
python-urx-master.zip

代码片段和文件信息
#!/usr/bin/python3
“““
hackish file to crreate deb from setup.py
“““
import subprocess
from email.utils import formatdate
import urx
DEBVERSION = urx.__version__
branch = subprocess.check_output(“git rev-parse --abbrev-ref HEAD“ shell=True)
branch = branch.decode()
branch = branch.strip()
branch = str(branch).replace(“‘“““)
rev = subprocess.check_output(“git log -1 --format=\‘%ad--%h\‘ --date=short“ shell=True)
rev = rev.decode()
rev = rev.strip()
rev = rev.replace(“‘“““)
#rev = rev.replace(“ “ “T“ 1)
#ev = rev.replace(“ “ “Z“ 1)
vcsstring = “git-“ + branch + “-“ + rev
def get_changelog(progname version changelog date):
“““
return a dummy changelog acceptable by debian script engine
“““
return “““%s (%s) unstable; urgency=low
%s
-- Olivier R-D %s “““ % (progname version changelog date)
def check_deb(name):
print(“checking if %s is installed“ % name)
subprocess.check_call(“dpkg -s %s > /dev/null“ % name shell=True)
if __name__ == “__main__“:
check_deb(“build-essential“)
f = open(“debian/changelog“ “w“)
f.write(get_changelog(“python-urx“ DEBVERSION + vcsstring “Updated to last changes in repository“ formatdate()))
f.close()
#now build package
#subprocess.check_call(“dpkg-buildpackage -rfakeroot -uc -us -b“ shell=True)
subprocess.check_call(“fakeroot dh binary --with python3python2“ shell=True)
subprocess.check_call(“dh clean“ shell=True)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-15 07:00 python-urx-master\
文件 27 2019-05-15 07:00 python-urx-master\.gitignore
文件 7651 2019-05-15 07:00 python-urx-master\COPYING
文件 3687 2019-05-15 07:00 python-urx-master\README.md
目录 0 2019-05-15 07:00 python-urx-master\debian\
文件 2 2019-05-15 07:00 python-urx-master\debian\compat
文件 613 2019-05-15 07:00 python-urx-master\debian\control
文件 9 2019-05-15 07:00 python-urx-master\debian\python-urx.pyinstall
文件 44 2019-05-15 07:00 python-urx-master\debian\python3-urx.install
文件 464 2019-05-15 07:00 python-urx-master\debian\rules
目录 0 2019-05-15 07:00 python-urx-master\docs\
文件 7421 2019-05-15 07:00 python-urx-master\docs\Makefile
文件 9300 2019-05-15 07:00 python-urx-master\docs\conf.py
文件 442 2019-05-15 07:00 python-urx-master\docs\index.rst
文件 144 2019-05-15 07:00 python-urx-master\docs\robot.rst
文件 148 2019-05-15 07:00 python-urx-master\docs\urrobot.rst
目录 0 2019-05-15 07:00 python-urx-master\examples\
文件 388 2019-05-15 07:00 python-urx-master\examples\get_robot.py
文件 4580 2019-05-15 07:00 python-urx-master\examples\joystick_control.py
文件 937 2019-05-15 07:00 python-urx-master\examples\matrices.py
文件 775 2019-05-15 07:00 python-urx-master\examples\simple.py
文件 2806 2019-05-15 07:00 python-urx-master\examples\spnav_control.py
文件 2420 2019-05-15 07:00 python-urx-master\examples\test_all.py
文件 914 2019-05-15 07:00 python-urx-master\examples\test_movep.py
文件 1478 2019-05-15 07:00 python-urx-master\make_deb.py
文件 40 2019-05-15 07:00 python-urx-master\make_windows_installer.bat
文件 1197 2019-05-15 07:00 python-urx-master\release.py
文件 778 2019-05-15 07:00 python-urx-master\setup.py
目录 0 2019-05-15 07:00 python-urx-master\tools\
文件 2177 2019-05-15 07:00 python-urx-master\tools\fakerobot.py
文件 385 2019-05-15 07:00 python-urx-master\tools\find_packet.py
............此处省略11个文件信息
相关资源
- python+ selenium教程
- 英文原版-Scientific Computing with Python
- CpuMemSets在Linux操作系统中的实现
- Python学习全系列教程永久可用
- 蓝奏云批量上传工具.zip
- python书籍 PDF
- 老男孩python项目实战
- Python.rar99111
- decision_tree_v2.py
- Python绝技运用Python成为顶级黑客.pdf
- python小波包文档及论文.zip
- Python黑帽子(黑客与渗透测试编程之
- FlaskWeb开发:基于Python的Web应用开发实
- Python基础教程第3版中英文源码.rar
- python数据结构与算法中文版.zip
- Python-冲顶大会芝士超人西瓜视频头脑
- time_series_forecasting_with_python.zip
- Python基础教程第三版PDF高清可复制.
- python编程从入门到实践.zip237878
- FlaskWeb开发:Python基于Web应用开发实战
- pythonBCRMDSJ.mobi
- 量化交易之路用Python做股票量化分析
- PYTHON自然语言处理中文版.pdf
- Python基础教程(第3版).rar
- GRAYHATPYTHON高清.英文.书签版.pdf
- Python简明教程第四版.rar
- Python编程:从入门到实践带书签完整
- Python基础教程(第3版).pdf109608
- vamei-从Python开始学编程.pdf
- 利用Python进行数据分析.pdf
评论
共有 条评论