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:
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-pyinstaller-v3.5.zip
共1307个文件
py:873个
txt:122个
rst:53个
需积分: 42 84 下载量 187 浏览量
2019-08-26
23:44:19
上传
评论 4
收藏 3.93MB ZIP 举报
温馨提示
下载到本地后,直接解压,然后通过管理员模式打开命令窗口,用 cd 命令切换至 pyinstaller的解压路径,然后运行 python setup.py install
资源推荐
资源详情
资源评论
收起资源包目录
pyinstaller-pyinstaller-v3.5.zip (1307个子文件)
pyinstaller.1 10KB
pyi-makespec.1 9KB
make.bat 7KB
clean.bat 66B
inflate.c 54KB
unzip.c 48KB
pyi_utils.c 32KB
pyi_pythonlib.c 24KB
pyi_launch.c 18KB
pyi_win32_utils.c 18KB
pyi_archive.c 16KB
crc32.c 14KB
inftrees.c 13KB
inffast.c 13KB
pyi_path.c 11KB
pyi_global.c 7KB
zutil.c 7KB
pyi_main.c 6KB
adler32.c 5KB
pyi_python.c 5KB
ioapi.c 4KB
main.c 2KB
pyi_python27_compat.c 1KB
ctypes_dylib.c 591B
uncrustify.cfg 79KB
setup.cfg 2KB
clean 158B
openssl.conf 294B
application_winxp.exe.config 829B
application_win2k3.exe.config 732B
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
do_prerelease 496B
do_release 314B
Dockerfile 946B
.dockerignore 95B
dynamiclib.dylib 2B
dynamiclib.dylib 2B
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
run_d.exe 271KB
runw_d.exe 271KB
run.exe 267KB
runw.exe 267KB
run_d.exe 243KB
runw_d.exe 242KB
run.exe 239KB
runw.exe 238KB
pyi_arbitrary_ext.foo 177B
.gitattributes 368B
.gitattributes 11B
.gitignore 2KB
.gitignore 119B
.gitignore 12B
zlib.h 94KB
crc32.h 30KB
zconf.h 16KB
unzip.h 13KB
pyi_python.h 9KB
msvc_stdint.h 7KB
zutil.h 7KB
gzguts.h 7KB
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_utils.h 1KB
pyi_path.h 1KB
resource.h 1KB
pyi_pythonlib.h 995B
pyi_python27_compat.h 837B
mkdtemp.h 750B
pyi_main.h 460B
inffast.h 427B
test_web_page.html 191B
icon-windowed.icns 108KB
pyi_icon.icns 105KB
icon-console.icns 104KB
pyinstaller-draft1a.ico 213KB
icon-windowed.ico 59KB
icon-console.ico 58KB
共 1307 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
新宇Yuxy
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功