Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
bca59922
提交
bca59922
authored
9月 29, 2017
作者:
Frédéric Bastien
提交者:
GitHub
9月 29, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6453 from abergeron/fix_version
Make setup.py fallback when versioneer can't get the version.
上级
ad628f1f
2794bcd1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
2 行删除
+11
-2
how_to_release.txt
doc/internal/how_to_release.txt
+3
-1
setup.py
setup.py
+8
-1
没有找到文件。
doc/internal/how_to_release.txt
浏览文件 @
bca59922
...
...
@@ -37,6 +37,8 @@ Update the year in the ``Theano/LICENSE.txt`` file too, if necessary.
``NEWS.txt`` usually contains the name and date of the release, change them
too.
Update the fallback version in ``setup.py``.
Update the code and the documentation for the theano flags
``warn.ignore_bug_before`` to accept the new version. You must modify the
file ``theano/configdefaults.py`` and ``doc/library/config.txt``.
...
...
@@ -48,7 +50,7 @@ You will need to commit the previous changes, tag the resulting version, and
push that into the original repository. The syntax is something like the
following::
git commit -m "Modifications for 0.X.Y release" doc/conf.py NEWS.txt HISTORY.txt theano/configdefaults.py doc/library/config.txt
git commit -m "Modifications for 0.X.Y release"
setup.py
doc/conf.py NEWS.txt HISTORY.txt theano/configdefaults.py doc/library/config.txt
git tag -a rel-0.X.Y
git push
git push --tags
...
...
setup.py
浏览文件 @
bca59922
...
...
@@ -16,6 +16,7 @@ except ImportError:
import
versioneer
FALLBACK_VERSION
=
"0.10.0beta3+unknown"
CLASSIFIERS
=
"""
\
Development Status :: 4 - Beta
...
...
@@ -70,9 +71,15 @@ def find_packages(where='.', exclude=()):
return
out
version_data
=
versioneer
.
get_versions
()
if
version_data
[
'error'
]
is
not
None
:
version_data
[
'version'
]
=
FALLBACK_VERSION
def
do_setup
():
setup
(
name
=
NAME
,
version
=
version
eer
.
get_version
()
,
version
=
version
_data
[
'version'
]
,
description
=
DESCRIPTION
,
long_description
=
LONG_DESCRIPTION
,
classifiers
=
CLASSIFIERS
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论