Tests for PyInstaller
=====================
This directory contains tests for PyInstaller:
- `functional` directory contains tests where executables are created from
Python scripts.
- `unit` directory contains simple unit tests.
- `old_suite` directory contains old structure of tests (TODO migrate all tests
to a new structure).
Prerequisites
-------------
In order to run the tests, you will need the following Python packages/libraries
installed:
- pytest
- psutil
- execnet
The easiest way to install these (and some useful pytest add-ons) is running
```
pip install -U -r tests/requirements-tools.txt
```
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: (requires pytest-xdist)
py.test -n NUM
Or, to run only the unit or functional tests, run one the following command:
py.test tests/unit
py.test tests/functional
py.test tests/functional -k "not tests/functional/test_libraries.py"
Or, to run only the unit and functional tests, but not the huge library
test-suite:
py.test tests/unit tests/functional -k "not tests/functional/test_libraries.py"
Or, to run only a particular test suite within a file, run the following
command:
py.test tests/functional/test_basic.py -k test_pyz_as_external_file
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, all Python packages to be tested should
be listed in `test/requirements-library.txt`. Python packages required for
exercising tests (e.g., `pytest`) should instead be listed in
`test/requirements-tools.txt`.
Both files are usual pip [requirements
files](https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format)
following the respective syntax (e.g.,
[`{package_name}>={minimum_version}`](https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers).
These packages will be installed with `pip` into remote testing environments
managed by third-party CI services.
Packages only available for specific version or platforms should get an appropriate
[environment
marker](https://www.python.org/dev/peps/pep-0426/#environment-markers) like
so:
```
SomeProject ==5.4 ; python_version != '3.6'
SomeProject ; sys_platform == 'win32'
```
### GNU/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 GNU/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-5.13.2.tar.gz
0 下载量 7 浏览量
2024-03-18
12:44:48
上传
评论
收藏 3.91MB GZ 举报
温馨提示
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论
收起资源包目录
pyinstaller-5.13.2.tar.gz (1466个子文件)
pyinstaller.1 13KB
pyi-makespec.1 12KB
make.bat 7KB
clean.bat 68B
build-manylinux 529B
inflate.c 55KB
pyi_utils.c 44KB
pyi_splash.c 38KB
crc32.c 31KB
pyi_apple_events.c 29KB
pyi_launch.c 24KB
pyi_pythonlib.c 23KB
pyi_archive.c 18KB
pyi_win32_utils.c 16KB
pyi_main.c 15KB
pyi_path.c 13KB
pyi_exception_dialog.c 13KB
inftrees.c 13KB
inffast.c 13KB
test_path.c 8KB
pyi_global.c 7KB
zutil.c 7KB
adler32.c 5KB
pyi_python.c 5KB
test_launch.c 4KB
pyi_splashlib.c 3KB
main.c 3KB
ctypes_dylib.c 695B
uncrustify.cfg 79KB
setup.cfg 4KB
clean 166B
printShortLongCWD.cmd 77B
openssl.conf 294B
pyinstaller.css 963B
rthooks.dat 1KB
rthooks.dat 53B
rthooks.dat 50B
nine.dat 2B
eleven.dat 2B
ten.dat 2B
nine.dat 2B
eleven.dat 2B
ten.dat 2B
org.pyinstaller.appimage.test.desktop 243B
dynamiclib.dll 3B
dynamiclib.dll 3B
Dockerfile 2KB
alpine.dockerfile 2KB
Dockerfile 946B
.dockerignore 339B
dynamiclib.dylib 3B
dynamiclib.dylib 3B
.editorconfig 230B
syspath.egg 2KB
zipped.egg 2KB
nspkg3_bbb.egg 2KB
nspkg1_bbb.egg 2KB
pyi_egg_zipped.egg 1KB
nspkg3_empty.egg 1KB
nspkg1_empty.egg 1KB
test.egg 760B
my_test_package-1.0.egg-info 290B
runw_d.exe 258KB
run_d.exe 257KB
runw.exe 253KB
run.exe 252KB
runw_d.exe 220KB
run_d.exe 220KB
runw.exe 216KB
run.exe 215KB
release.fish 4KB
pyi_arbitrary_ext.foo 177B
.gitattributes 813B
.gitattributes 11B
.gitignore 2KB
.gitignore 119B
.gitignore 12B
crc32.h 578KB
zlib.h 95KB
zconf.h 16KB
pyi_global.h 8KB
zutil.h 7KB
gzguts.h 7KB
inflate.h 7KB
pyi_python.h 6KB
inffixed.h 6KB
pyi_splash.h 6KB
pyi_archive.h 5KB
pyi_splashlib.h 4KB
inftrees.h 3KB
pyi_utils.h 2KB
pyi_launch.h 2KB
pyi_apple_events.h 2KB
pyi_path.h 1KB
pyi_win32_utils.h 1KB
pyi_pythonlib.h 1KB
mkdtemp.h 875B
pyi_exception_dialog.h 822B
pyi_main.h 564B
inffast.h 427B
共 1466 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
程序员Chino的日记
- 粉丝: 3654
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 可直连数据库,找到存在可疑推荐关系字段的表绘制推荐关系层级信息
- 根据excel表格快速制作层级信息工具(线下传销)不包含其他信息,只有层级信息,其他信息添加需要自己添加,理论上问题不大
- 基于MATLAB车牌识别系统实现系统【GUI含界面】.zip
- 基于MATLAB车牌识别系统【含界面GUI】.zip
- 技术资料分享MMCSDTimming很好的技术资料.zip
- 技术资料分享MMC-FAT16-File-System-Specification-v1.0很好的技术资料.zip
- 技术资料分享MDk如何生成bin文件很好的技术资料.zip
- 根据已有层级及个人信息绘制层级
- 技术资料分享Keil用户手册很好的技术资料.zip
- 基于MATLAB车牌识别技术实现技术实现【带界面GUI】.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功