Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PARL
提交
7be55742
P
PARL
项目概览
PaddlePaddle
/
PARL
通知
67
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PARL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7be55742
编写于
4月 29, 2019
作者:
H
Hongsheng Zeng
提交者:
Bo Zhou
4月 29, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add __version__ description in package(#74)
Now we can check the parl version by calling parl.__version__
上级
e01966f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
1 deletion
+23
-1
parl/__init__.py
parl/__init__.py
+2
-0
setup.py
setup.py
+21
-1
未找到文件。
parl/__init__.py
浏览文件 @
7be55742
...
...
@@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__
=
"1.1"
"""
generates new PARL python API
"""
...
...
setup.py
浏览文件 @
7be55742
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
codecs
import
sys
import
os
import
re
...
...
@@ -34,9 +35,28 @@ def _find_packages(prefix=''):
return
packages
def
read
(
*
parts
):
with
codecs
.
open
(
os
.
path
.
join
(
cur_dir
,
*
parts
),
'r'
)
as
fp
:
return
fp
.
read
()
# Reference: https://github.com/pypa/pip/blob/master/setup.py
def
find_version
(
*
file_paths
):
version_file
=
read
(
*
file_paths
)
version_match
=
re
.
search
(
r
"^__version__ = ['\"]([^'\"]*)['\"]"
,
version_file
,
re
.
M
,
)
if
version_match
:
return
version_match
.
group
(
1
)
raise
RuntimeError
(
"Unable to find version string."
)
setup
(
name
=
'parl'
,
version
=
1.1
,
version
=
find_version
(
"parl"
,
"__init__.py"
)
,
description
=
'Reinforcement Learning Framework'
,
long_description
=
long_description
,
long_description_content_type
=
'text/markdown'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录