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 个修改的文件
包含
68 行增加
和
38 行删除
+68
-38
pypi.yml
.github/workflows/pypi.yml
+52
-37
pyproject.toml
pyproject.toml
+16
-1
没有找到文件。
.github/workflows/pypi.yml
浏览文件 @
4da56ecf
...
@@ -17,27 +17,53 @@ concurrency:
...
@@ -17,27 +17,53 @@ concurrency:
cancel-in-progress
:
true
cancel-in-progress
:
true
jobs
:
jobs
:
# The job to build pypi wheels users can installed precompiled for them.
# The job to build precompiled pypi wheels.
# At the moment only linux wheels are build, Windows and MacOS will compile on installation
make_sdist
:
# Before prebuilds all users had to compile code anyway.
name
:
Make SDist
build
:
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
:
strategy
:
matrix
:
matrix
:
python-version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
]
platform
:
name
:
Build source distribution
-
macos-12
runs-on
:
ubuntu-latest
-
windows-2022
-
ubuntu-20.04
steps
:
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
with
:
with
:
fetch-depth
:
0
fetch-depth
:
0
-
uses
:
actions/setup-python@v4
-
name
:
Build wheels
uses
:
pypa/cibuildwheel@v2.11.4
-
uses
:
actions/upload-artifact@v3
with
:
with
:
python-version
:
${{ matrix.python-version }}
path
:
./wheelhouse/*.whl
-
name
:
Build the sdist and the wheel
run
:
|
check_dist
:
pip install build
name
:
Check dist
python -m build
needs
:
[
make_sdist
,
build_wheels
]
-
name
:
Check the sdist installs and imports
runs-on
:
ubuntu-22.04
steps
:
-
uses
:
actions/download-artifact@v3
with
:
name
:
artifact
path
:
dist
-
name
:
Check SDist
run
:
|
run
:
|
mkdir -p test-sdist
mkdir -p test-sdist
cd test-sdist
cd test-sdist
...
@@ -47,32 +73,21 @@ jobs:
...
@@ -47,32 +73,21 @@ jobs:
venv-sdist/bin/python -c "import pytensor;print(pytensor.__version__)"
venv-sdist/bin/python -c "import pytensor;print(pytensor.__version__)"
# check import cython module
# check import cython module
venv-sdist/bin/python -c 'from pytensor.scan import scan_perform; print(scan_perform.get_version())'
venv-sdist/bin/python -c 'from pytensor.scan import scan_perform; print(scan_perform.get_version())'
-
name
:
Check the bdist installs and imports
run
:
|
-
run
:
pipx run twine check --strict dist/*
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/*
upload_pypi
:
upload_pypi
:
name
:
Upload to PyPI on release
name
:
Upload to PyPI on release
needs
:
[
build
]
needs
:
[
check_dist
]
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
github.event_name == 'release' && github.event.action == 'published'
if
:
github.event_name == 'release' && github.event.action == 'published'
steps
:
steps
:
-
uses
:
actions/download-artifact@v3
-
uses
:
actions/download-artifact@v3
with
:
with
:
name
:
artifact
name
:
artifact
path
:
dist
path
:
dist
-
uses
:
pypa/gh-action-pypi-publish@v1.6.4
with
:
-
uses
:
pypa/gh-action-pypi-publish@v1.5.0
user
:
__token__
with
:
password
:
${{ secrets.pypi_secret }}
user
:
__token__
password
:
${{ secrets.pypi_password }}
pyproject.toml
浏览文件 @
4da56ecf
...
@@ -18,7 +18,7 @@ authors = [
...
@@ -18,7 +18,7 @@ authors = [
]
]
description
=
"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
description
=
"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
readme
=
"README.rst"
readme
=
"README.rst"
license
=
{file
=
"LICEN
C
E.txt"
}
license
=
{file
=
"LICEN
S
E.txt"
}
classifiers
=
[
classifiers
=
[
"Development Status :: 6 - Mature"
,
"Development Status :: 6 - Mature"
,
"Intended Audience :: Education"
,
"Intended Audience :: Education"
,
...
@@ -206,3 +206,18 @@ show_error_codes = true
...
@@ -206,3 +206,18 @@ show_error_codes = true
allow_redefinition
=
false
allow_redefinition
=
false
files
=
[
"pytensor"
,
"tests"
]
files
=
[
"pytensor"
,
"tests"
]
plugins
=
["numpy.typing.mypy_plugin"]
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论