Tests for PyInstaller
=====================
This directory contains tests for PyInstaller:
- `functional` directory contains tests where executables are created from
Python scripts.
- `old_suite` directory contains old structure of tests (TODO migrate all tests
to a new structure).
- `unit` directory contains simple unit tests.
Prerequisites
-------------
In order to run the tests, you will need the following Python packages/libraries
installed:
- Mock
- pytest
Running the Tests
-----------------
To run the tests, navigate to the root directory of the PyInstaller project and
run the following command:
py.test
Or, to speed up test runs by sending tests to multiple CPUs:
py.test -n NUM
Or, to run only the unit or functional tests, run the following command:
TODO
Or, to run only a particular test suite within a file, run the following
command:
TODO
Run all tests matching `test_ctypes_CDLL` resp. `ctypes_CDLL`:
py.test -k test_ctypes_CDLL
py.test -k ctypes_CDLL
Run both the onefile and ondir tests for
`test_ctypes_CDLL_find_library__nss_files`:
py.test -k test_ctypes_CDLL_find_library__nss_files
Finally, to only run a particular test, run one of the following commands:
py.test -k test_ctypes_CDLL_find_library__nss_files[onedir]
py.test -k test_ctypes_CDLL_find_library__nss_files[onefile]
## Continuous Integration (CI)
Continuous integration (CI) automatically exercises all tests for all platforms
officially supported by PyInstaller.
### Python Packages
Regardless of platform or CI service, cross-platform Python packages to be
tested should be listed in `test/requirements-library.txt` using the usual
`requirements.txt` syntax (e.g., `{package_name}>={minimum_version}`). These
packages will be installed with `pip` into remote testing environments managed
by third-party CI services for _all_ supported platforms.
Platform-specific Python packages to be tested should instead be:
- For OS X, listed in `test/requirements-mac.txt`.
- For Windows, listed in `test/requirements-win.txt`.
Cross-platform Python packages required for exercising tests (e.g., `pytest`)
should instead be listed in `test/requirements-tools.txt`.
### Linux
The top-level `.travis.yml` file configures the Travis-CI service to remotely
test PyInstaller in an Ubuntu 12.04 (LTS) container, the most recent Linux
distribution supported by Travis-CI.
Non-Python dependencies installable through `apt-get` on Ubuntu 12.04 should be
listed as `- `-prefixed items in the `addons:` → `apt:` → `packages:` subsection
of `.travis.yml`. Since Ubuntu 12.04 provides _no_ Python 3 packages prefixed by
`python3-`, only Python 2.7 packages prefixed by `python-` are installable by
`apt-get`. Since installing only Python 2.7 packages would be useless, Python
packages should _always_ be installed by `pip` rather than `apt-get`. See
**"Python Packages"** above.
### OS X
The top-level `.travis.yml` file of a
[separate repository](https://github.com/pyinstaller/pyinstaller-osx-tests)
configures the Travis-CI service to remotely test PyInstaller in an OS X 10.9.5
virtual machine, the most recent OS X version supported by Travis-CI.
### Windows
The top-level `appveyor.yml` file configures the Appveyor service to remotely
test PyInstaller in a Windows virtual machine.
Non-Python dependencies installable through either Chocolatey (`cinst`),
PowerShell (`ps`), or WebPI (`WebpiCmd`) should be listed as `- `-prefixed items
in the `install:` section of `appveyor.yml`. See the
[official documentation](http://www.appveyor.com/docs/build-configuration#installing-additional-software)
for voluminous details.
没有合适的资源?快使用搜索试试~ 我知道了~
PyInstaller-3.2.zip
共780个文件
py:537个
txt:41个
toc:29个
5星 · 超过95%的资源 需积分: 50 404 下载量 70 浏览量
2016-07-31
03:33:28
上传
评论 1
收藏 2.94MB ZIP 举报
温馨提示
解压后、 切换到根目录,cmd 命令下输入:python setup.py install 安装。 安装前确认已安装pypiwin32。 如已安装pip可以使用pip pypiwin32 install安装pypiwin32 , pip install pyinstaller安装pyinstaller。 这里提供ZIP包给网络不好的同学。
资源推荐
资源详情
资源评论
收起资源包目录
PyInstaller-3.2.zip (780个子文件)
pyinstaller.1 7KB
pyi-makespec.1 7KB
make.bat 7KB
inflate.c 52KB
unzip.c 48KB
pyi_utils.c 29KB
pyi_pythonlib.c 23KB
pyi_launch.c 18KB
pyi_win32_utils.c 17KB
pyi_archive.c 15KB
inffast.c 13KB
crc32.c 13KB
inftrees.c 13KB
pyi_path.c 10KB
zutil.c 7KB
pyi_main.c 6KB
adler32.c 5KB
pyi_python.c 5KB
ioapi.c 4KB
pyi_global.c 3KB
main.c 3KB
pyi_python27_compat.c 1KB
ctypes_dylib.c 591B
uncrustify.cfg 79KB
setup.cfg 376B
openssl.conf 294B
pyinstaller.css 2KB
rthooks.dat 1KB
eleven.dat 2B
ten.dat 2B
nine.dat 2B
eleven.dat 2B
ten.dat 2B
nine.dat 2B
dynamiclib.dll 3B
dynamiclib.dll 3B
dynamiclib.dylib 2B
dynamiclib.dylib 2B
nspkg3_bbb.egg 2KB
nspkg1_bbb.egg 2KB
pyi_egg_zipped.egg 1KB
nspkg3_empty.egg 1KB
nspkg1_empty.egg 1KB
runw_d.exe 136KB
run_d.exe 134KB
runw.exe 132KB
runw_d.exe 131KB
run_d.exe 130KB
run.exe 130KB
runw.exe 127KB
run.exe 126KB
zlib.h 86KB
crc32.h 30KB
zconf.h 15KB
unzip.h 13KB
pyi_python.h 9KB
msvc_stdint.h 7KB
zutil.h 7KB
gzguts.h 6KB
inflate.h 6KB
inffixed.h 6KB
pyi_archive.h 5KB
crypt.h 5KB
pyi_global.h 4KB
inftrees.h 3KB
ioapi.h 2KB
pyi_launch.h 2KB
pyi_win32_utils.h 2KB
pyi_path.h 1KB
pyi_utils.h 1KB
resource.h 1KB
pyi_pythonlib.h 995B
pyi_python27_compat.h 837B
mkdtemp.h 750B
pyi_main.h 460B
inffast.h 427B
pyinstaller.html 14KB
pyi-makespec.html 13KB
icon-windowed.icns 108KB
pyi_icon.icns 105KB
icon-console.icns 104KB
pyinstaller-draft1a.ico 213KB
icon-windowed.ico 59KB
icon-console.ico 58KB
pyi_icon.ico 55KB
test_pkg_structures.ico 766B
MANIFEST.in 341B
Makefile 7KB
README.md 4KB
ISSUE_TEMPLATE.md 579B
CONTRIBUTING.md 102B
not-zip-safe 1B
not-zip-safe 1B
not-zip-safe 1B
not-zip-safe 1B
not-zip-safe 1B
not-zip-safe 1B
server.pem 2KB
PKG-INFO 37KB
PKG-INFO 37KB
共 780 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- wangzyon2017-10-31资源很不错
- lukern2017-05-09很好,可以正常生成exe文件。不过它只是将python解释模块打包进了exe文件中,并不是像其他exe文件
- adyfang2017-03-07感谢分享,看看先
- afs19842017-01-03最终还是没能正常生成exe,不过感谢分享了。thewindkee2017-02-07我一直都可以正常生成。 pyinstaller -F xx.py
thewindkee
- 粉丝: 81
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于keras+fasterRCNN,在VOC格式的口罩数据集上训练,检测人群中有无戴口罩python源码+模型
- 基于opencv+qt5机器视觉的传统缺陷检测, 即采用标准图片和待测图片进行pixel to pixel的XOR操作源码+文档
- 管道内检测缺陷数据库管理系统源码+文档说明+sln
- 毕业设计-低功耗STM32F411开发板(原理图+PCB源文件+官方例程+驱动等)源码+文档说明+截图
- 基于yolov5-tensorRT检测+发动机缸体内壁缺陷检测系统源码+文档说明
- 基于C++实现的锂电池缺陷检测源码+文档说明
- push_version
- 软件自制图像批量压缩工具
- 经典缺陷检测算法源码整理包含PaDiM(2020ICPR)、PatchCore(2022CVPR)、SimpleNet+文档说明
- 基于深度学习的抗梯度噪声的缺陷检测器python源码+文档说明+模型的预训练
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功