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-6.4.0.tar.gz
0 下载量 46 浏览量
2024-03-18
12:49:26
上传
评论
收藏 3.96MB GZ 举报
温馨提示
共1375个文件
py:1031个
txt:53个
rst:41个
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论
收起资源包目录
pyinstaller-6.4.0.tar.gz (1375个子文件)
pyinstaller.1 13KB
pyi-makespec.1 13KB
make.bat 7KB
clean.bat 68B
build-manylinux 487B
inflate.c 54KB
pyi_utils.c 42KB
pyi_splash.c 37KB
crc32.c 31KB
pyi_apple_events.c 29KB
pyi_launch.c 24KB
pyi_archive.c 21KB
pyi_win32_utils.c 20KB
pyi_pyconfig.c 19KB
pyi_main.c 19KB
pyi_path.c 15KB
pyi_pythonlib.c 14KB
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 4KB
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 1004B
rthooks.dat 53B
rthooks.dat 50B
nine.dat 2B
eleven.dat 2B
ten.dat 2B
eleven.dat 2B
ten.dat 2B
nine.dat 2B
org.pyinstaller.appimage.test.desktop 243B
dynamiclib.dll 3B
dynamiclib.dll 3B
Dockerfile 2KB
alpine.dockerfile 2KB
Dockerfile 947B
.dockerignore 339B
dynamiclib.dylib 3B
dynamiclib.dylib 3B
.editorconfig 230B
syspath.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 264KB
run_d.exe 264KB
run.exe 259KB
runw.exe 259KB
runw_d.exe 225KB
run_d.exe 225KB
runw.exe 221KB
run.exe 220KB
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_python.h 8KB
pyi_global.h 8KB
inflate.h 7KB
zutil.h 7KB
gzguts.h 7KB
inffixed.h 6KB
pyi_splash.h 6KB
pyi_archive.h 6KB
pyi_splashlib.h 4KB
inftrees.h 3KB
pyi_pyconfig_v312.h 2KB
pyi_pyconfig_v311.h 2KB
pyi_utils.h 2KB
pyi_pyconfig_v310.h 2KB
pyi_pyconfig_v39.h 2KB
pyi_pyconfig_v38.h 2KB
pyi_launch.h 2KB
pyi_pyconfig.h 2KB
pyi_apple_events.h 2KB
pyi_path.h 2KB
共 1375 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
程序员Chino的日记
- 粉丝: 2839
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于MATLAB的图像分割源码+详细文档+全部数据(高分课程设计).zip
- 基于MATLAB的图像分割源码+详细文档+全部数据(高分课程设计).zip
- 基于MINST数据库的手写体数字识别CNN设计,MATLAB实现源码+全部资料.zip
- 基于MINST数据库的手写体数字识别CNN设计,MATLAB实现源码+全部资料(高分项目)
- stata 经纬度计算反距离矩阵的方法.docx
- ORACLE数据库面试题解答DBA数据库管理员JAVA程序员架构师必看.docx
- stata 经纬度计算反距离矩阵的方法.zip
- ORACLE数据库面试题解答DBA数据库管理员JAVA程序员架构师必看.zip
- 华为-华为od题库练习题之密码截取.zip
- 华为-华为od题库练习题之字符串加解密.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功