Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
2da42cdf
提交
2da42cdf
authored
9月 14, 2017
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use versioneer.
上级
f39edc12
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
48 行增加
和
99 行删除
+48
-99
.gitattributes
.gitattributes
+1
-0
MANIFEST.in
MANIFEST.in
+2
-0
meta.yaml
conda/meta.yaml
+3
-7
setup.cfg
setup.cfg
+12
-0
setup.py
setup.py
+7
-86
__init__.py
theano/__init__.py
+4
-0
_version.py
theano/_version.py
+0
-0
version.py
theano/version.py
+19
-6
versioneer.py
versioneer.py
+0
-0
没有找到文件。
.gitattributes
0 → 100644
浏览文件 @
2da42cdf
theano/_version.py export-subst
MANIFEST.in
浏览文件 @
2da42cdf
...
...
@@ -11,3 +11,5 @@ include bin/theano-cache
include bin/theano-nose
prune .jenkins
prune .travis
include versioneer.py
include theano/_version.py
conda/meta.yaml
浏览文件 @
2da42cdf
...
...
@@ -5,8 +5,7 @@ package:
version
:
{{
version
}}
source
:
git_url
:
https://github.com/Theano/Theano.git
git_tag
:
rel-{{ version }}
path
:
../
build
:
noarch
:
python
...
...
@@ -14,15 +13,12 @@ build:
requirements
:
build
:
-
m2-filesystem [win]
-
m2-git [win]
-
git [not win]
-
python
-
setuptools
-
six >=1.9.0
-
numpy >=1.9.1
-
scipy >=0.14.0
-
pygpu >=0.
6,<0.
7
-
pygpu >=0.7
run
:
-
python
-
mkl-service
...
...
@@ -31,7 +27,7 @@ requirements:
-
six >=1.9.0
-
numpy >=1.9.1
-
scipy >=0.14.0
-
pygpu >=0.6,<0.7
-
{{
pin_compatible('pygpu'
,
'
0.7'
,
max_pin='0.8')
}}
test
:
requires
:
...
...
setup.cfg
浏览文件 @
2da42cdf
...
...
@@ -4,3 +4,15 @@ nocapture=1
[flake8]
ignore=E501,E123,E133,FI12,FI14,FI15,FI50,FI51,FI53
# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
[versioneer]
VCS = git
style = pep440
versionfile_source = theano/_version.py
versionfile_build = theano/_version.py
tag_prefix = rel-
#parentdir_prefix =
setup.py
浏览文件 @
2da42cdf
...
...
@@ -6,7 +6,6 @@
from
__future__
import
absolute_import
,
print_function
,
division
import
os
import
subprocess
import
codecs
from
fnmatch
import
fnmatchcase
from
distutils.util
import
convert_path
...
...
@@ -15,6 +14,8 @@ try:
except
ImportError
:
from
distutils.core
import
setup
import
versioneer
CLASSIFIERS
=
"""
\
Development Status :: 4 - Beta
...
...
@@ -50,13 +51,6 @@ CLASSIFIERS = [_f for _f in CLASSIFIERS.split('\n') if _f]
AUTHOR
=
"LISA laboratory, University of Montreal"
AUTHOR_EMAIL
=
"theano-dev@googlegroups.com"
PLATFORMS
=
[
"Windows"
,
"Linux"
,
"Solaris"
,
"Mac OS-X"
,
"Unix"
]
MAJOR
=
0
MINOR
=
10
MICRO
=
0
SUFFIX
=
"beta2"
# Should be blank except for rc's, betas, etc.
ISRELEASED
=
False
VERSION
=
'
%
d.
%
d.
%
d
%
s'
%
(
MAJOR
,
MINOR
,
MICRO
,
SUFFIX
)
def
find_packages
(
where
=
'.'
,
exclude
=
()):
...
...
@@ -67,91 +61,17 @@ def find_packages(where='.', exclude=()):
for
name
in
os
.
listdir
(
where
):
fn
=
os
.
path
.
join
(
where
,
name
)
if
(
'.'
not
in
name
and
os
.
path
.
isdir
(
fn
)
and
os
.
path
.
isfile
(
os
.
path
.
join
(
fn
,
'__init__.py'
))
):
out
.
append
(
prefix
+
name
)
stack
.
append
((
fn
,
prefix
+
name
+
'.'
))
os
.
path
.
isfile
(
os
.
path
.
join
(
fn
,
'__init__.py'
))):
out
.
append
(
prefix
+
name
)
stack
.
append
((
fn
,
prefix
+
name
+
'.'
))
for
pat
in
list
(
exclude
)
+
[
'ez_setup'
,
'distribute_setup'
]:
out
=
[
item
for
item
in
out
if
not
fnmatchcase
(
item
,
pat
)]
return
out
def
git_version
():
"""
Return the sha1 of local git HEAD as a string.
"""
# josharian: I doubt that the minimal environment stuff here is
# still needed; it is inherited. This was originally
# an hg_version function borrowed from NumPy's setup.py.
# I'm leaving it in for now because I don't have enough other
# environments to test in to be confident that it is safe to remove.
def
_minimal_ext_cmd
(
cmd
):
# construct minimal environment
env
=
{}
for
k
in
[
'SYSTEMROOT'
,
'PATH'
,
'PYTHONPATH'
]:
v
=
os
.
environ
.
get
(
k
)
if
v
is
not
None
:
env
[
k
]
=
v
# LANGUAGE is used on win32
env
[
'LANGUAGE'
]
=
'C'
env
[
'LANG'
]
=
'C'
env
[
'LC_ALL'
]
=
'C'
out
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
env
=
env
)
.
communicate
()[
0
]
return
out
try
:
out
=
_minimal_ext_cmd
([
'git'
,
'rev-parse'
,
'HEAD'
])
git_revision
=
out
.
strip
()
.
decode
(
'ascii'
)
except
OSError
:
git_revision
=
"unknown-git"
return
git_revision
def
write_text
(
filename
,
text
):
try
:
with
open
(
filename
,
'w'
)
as
a
:
a
.
write
(
text
)
except
Exception
as
e
:
print
(
e
)
def
write_version_py
(
filename
=
os
.
path
.
join
(
'theano'
,
'generated_version.py'
)):
cnt
=
"""
# THIS FILE IS GENERATED FROM THEANO SETUP.PY
short_version = '
%(version)
s'
version = '
%(version)
s'
git_revision = '
%(git_revision)
s'
full_version = '
%(version)
s.dev-
%%(git_revision)
s'
%%
{
'git_revision': git_revision}
release =
%(isrelease)
s
if not release:
version = full_version
"""
FULL_VERSION
=
VERSION
if
os
.
path
.
isdir
(
'.git'
):
GIT_REVISION
=
git_version
()
elif
os
.
path
.
exists
(
filename
):
# must be a source distribution, use existing version file
GIT_REVISION
=
"RELEASE"
else
:
GIT_REVISION
=
"unknown-git"
FULL_VERSION
+=
'.dev-'
+
GIT_REVISION
text
=
cnt
%
{
'version'
:
VERSION
,
'full_version'
:
FULL_VERSION
,
'git_revision'
:
GIT_REVISION
,
'isrelease'
:
str
(
ISRELEASED
)}
write_text
(
filename
,
text
)
def
do_setup
():
write_version_py
()
setup
(
name
=
NAME
,
version
=
VERSION
,
version
=
versioneer
.
get_version
()
,
description
=
DESCRIPTION
,
long_description
=
LONG_DESCRIPTION
,
classifiers
=
CLASSIFIERS
,
...
...
@@ -161,6 +81,7 @@ def do_setup():
license
=
LICENSE
,
platforms
=
PLATFORMS
,
packages
=
find_packages
(),
cmdclass
=
versioneer
.
get_cmdclass
(),
install_requires
=
[
'numpy>=1.9.1'
,
'scipy>=0.14'
,
'six>=1.9.0'
],
# pygments is a dependency for Sphinx code highlight
extras_require
=
{
...
...
theano/__init__.py
浏览文件 @
2da42cdf
...
...
@@ -245,3 +245,7 @@ def sparse_grad(var):
__import__
(
'theano.tensor.shared_randomstreams'
)
from
._version
import
get_versions
__version__
=
get_versions
()[
'version'
]
del
get_versions
theano/_version.py
0 → 100644
浏览文件 @
2da42cdf
差异被折叠。
点击展开。
theano/version.py
浏览文件 @
2da42cdf
from
__future__
import
absolute_import
,
print_function
,
division
from
theano._version
import
get_versions
info
=
get_versions
()
full_version
=
info
[
'version'
]
git_revision
=
info
[
'full-revisionid'
]
del
info
,
get_versions
short_version
=
full_version
.
split
(
'+'
)[
0
]
# This tries to catch a tag like beta2, rc1, ...
try
:
from
theano.generated_version
import
*
# noqa
except
ImportError
:
short_version
=
'unknown'
version
=
'unknown'
git_revision
=
'unknown'
full_version
=
'unknown'
int
(
short_version
.
split
(
'.'
)[
2
])
release
=
True
except
ValueError
:
release
=
False
if
release
:
version
=
short_version
else
:
version
=
full_version
versioneer.py
0 → 100644
浏览文件 @
2da42cdf
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论