Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4da56ecf
Unverified
提交
4da56ecf
authored
1月 10, 2023
作者:
Caroline Russell
提交者:
GitHub
1月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix release pipeline (#183)
* initial cibuildwheel setup * Update pyproject.toml * Updated test-command * Enable most builds * Skip builds for 32-bit OS * Updated upload_pypi action
上级
f817f337
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
62 行增加
和
32 行删除
+62
-32
pypi.yml
.github/workflows/pypi.yml
+46
-31
pyproject.toml
pyproject.toml
+16
-1
没有找到文件。
.github/workflows/pypi.yml
浏览文件 @
4da56ecf
...
...
@@ -17,27 +17,53 @@ concurrency:
cancel-in-progress
:
true
jobs
:
# The job to build pypi wheels users can installed precompiled for them.
# At the moment only linux wheels are build, Windows and MacOS will compile on installation
# Before prebuilds all users had to compile code anyway.
build
:
# The job to build precompiled pypi wheels.
make_sdist
:
name
:
Make SDist
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Build SDist
run
:
pipx run build --sdist
-
uses
:
actions/upload-artifact@v3
with
:
path
:
dist/*.tar.gz
build_wheels
:
name
:
Build ${{ matrix.python-version }} wheels on ${{ matrix.platform }}
runs-on
:
${{ matrix.platform }}
strategy
:
matrix
:
python-version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
]
name
:
Build source distribution
runs-on
:
ubuntu-latest
platform
:
-
macos-12
-
windows-2022
-
ubuntu-20.04
steps
:
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
uses
:
actions/setup-python@v4
-
name
:
Build wheels
uses
:
pypa/cibuildwheel@v2.11.4
-
uses
:
actions/upload-artifact@v3
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Build the sdist and the wheel
run
:
|
pip install build
python -m build
-
name
:
Check the sdist installs and imports
path
:
./wheelhouse/*.whl
check_dist
:
name
:
Check dist
needs
:
[
make_sdist
,
build_wheels
]
runs-on
:
ubuntu-22.04
steps
:
-
uses
:
actions/download-artifact@v3
with
:
name
:
artifact
path
:
dist
-
name
:
Check SDist
run
:
|
mkdir -p test-sdist
cd test-sdist
...
...
@@ -47,24 +73,12 @@ jobs:
venv-sdist/bin/python -c "import pytensor;print(pytensor.__version__)"
# check import cython module
venv-sdist/bin/python -c 'from pytensor.scan import scan_perform; print(scan_perform.get_version())'
-
name
:
Check the bdist installs and imports
run
:
|
mkdir -p test-bdist
cd test-bdist
python -m venv venv-bdist
venv-bdist/bin/python -m pip install ../dist/pytensor-*.whl
# check import
venv-bdist/bin/python -c "import pytensor;print(pytensor.__version__)"
# check import cython module
venv-bdist/bin/python -c 'from pytensor.scan import scan_perform; print(scan_perform.get_version())'
-
uses
:
actions/upload-artifact@v3
with
:
name
:
artifact
path
:
dist/*
-
run
:
pipx run twine check --strict dist/*
upload_pypi
:
name
:
Upload to PyPI on release
needs
:
[
build
]
needs
:
[
check_dist
]
runs-on
:
ubuntu-latest
if
:
github.event_name == 'release' && github.event.action == 'published'
steps
:
...
...
@@ -72,7 +86,8 @@ jobs:
with
:
name
:
artifact
path
:
dist
-
uses
:
pypa/gh-action-pypi-publish@v1.6.4
-
uses
:
pypa/gh-action-pypi-publish@v1.5.0
with
:
user
:
__token__
password
:
${{ secrets.pypi_secret
}}
password
:
${{ secrets.pypi_password
}}
pyproject.toml
浏览文件 @
4da56ecf
...
...
@@ -18,7 +18,7 @@ authors = [
]
description
=
"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
readme
=
"README.rst"
license
=
{file
=
"LICEN
C
E.txt"
}
license
=
{file
=
"LICEN
S
E.txt"
}
classifiers
=
[
"Development Status :: 6 - Mature"
,
"Intended Audience :: Education"
,
...
...
@@ -206,3 +206,18 @@ show_error_codes = true
allow_redefinition
=
false
files
=
[
"pytensor"
,
"tests"
]
plugins
=
["numpy.typing.mypy_plugin"]
[tool.cibuildwheel]
build
=
"*"
# Uncomment to skip builds that compile but fail when trying to test (maybe due to incompatibility with runner)
# archs = ["auto64"]
# Disable any-platform (pp*), and 32-bit builds.
# Additional options to consider: "*musllinux*"
skip
=
[
"pp*"
,
"*-win32"
,
"*-manylinux_i686"
]
build-frontend
=
"build"
test-command
=
'python
-c
"import pytensor; print(pytensor.__version__); from pytensor.scan import scan_perform; print(scan_perform.get_version())"
'
test-skip
=
[
"cp37*"
,
"*musllinux*"
,
"*win32*"
,
"*i686*"
]
# Testing seems to be running into issues locating libs where expected
# test-requires = ["pytest", "numba", "jax", "jaxlib"]
# test-command = "pytest {package}/tests"
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论