Skip to content

Commit 84dac3d

Browse files
authored
[CI] Fix arrow patching and upgrade to v0.5.2.
1 parent 95d0310 commit 84dac3d

5 files changed

Lines changed: 73 additions & 22 deletions

File tree

CONTRIBUTING.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# How to contribute
2+
3+
We appreciate all contributions to improve HybridBackend. You can create an
4+
[issue](https://github.com/alibaba/HybridBackend/issues) or send a
5+
[pull request](https://github.com/alibaba/HybridBackend/pulls).
6+
7+
**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://kcd.im/pull-request)
8+
9+
## Code style
10+
11+
Before any commits, please use below tools to format and check code style:
12+
13+
```bash
14+
cibuild/run cibuild/format
15+
cibuild/run cibuild/lint
16+
```
17+
18+
Commit message style should follow below format:
19+
20+
```
21+
[Module] Do something great.
22+
```
23+
24+
`Module` could be `CI`, `IO` or other well-known abbreviations.
25+
26+
## Package building
27+
28+
Build code with default developer docker:
29+
30+
```bash
31+
cibuild/run make -j8
32+
```
33+
34+
## Unit tests
35+
36+
Test your commit in local node:
37+
38+
```bash
39+
cibuild/run make test
40+
```
41+
42+
Also, CI builds would be triggered if a commit is pushed.

README.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HybridBackend
22

3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
35
[![cibuild: cpu](https://github.com/alibaba/HybridBackend/actions/workflows/cpu-cibuild.yaml/badge.svg?branch=main&event=push)](https://github.com/alibaba/HybridBackend/actions/workflows/cpu-cibuild.yaml)
46
[![Documentation Status](https://readthedocs.org/projects/hybridbackend/badge/?version=latest)](https://hybridbackend.readthedocs.io/en/latest/?badge=latest)
57

@@ -36,25 +38,9 @@ pip install -U pip
3638

3739
## Contributing
3840

39-
We appreciate all contributions to improve HybridBackend. Please follow below
40-
steps to contribute:
41+
We appreciate all contributions to improve HybridBackend. Please see
42+
[Contributing Guide](CONTRIBUTING.md) for more details.
4143

42-
**1. Clone the repository and checkout a new branch.**
44+
## License
4345

44-
```bash
45-
git clone <git_repo_addr>
46-
git pull -r
47-
git checkout -b features/my_feature
48-
```
49-
50-
**2. Commit changes, check code style and test.**
51-
52-
```bash
53-
git commit
54-
cibuild/run cibuild/format
55-
cibuild/run cibuild/lint
56-
cibuild/run make -j8
57-
cibuild/run make test
58-
```
59-
60-
**3. Create pull request for code review.**
46+
HybridBackend is licensed under the [Apache 2.0 License](LICENSE).

arrow/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eo pipefail
44

5-
cp -rf arrow/patches/cpp arrow/src/cpp
5+
cp -rf arrow/patches/cpp arrow/src/
66

77
if [[ ! -d $CACHE_DIR ]]; then
88
CACHE_DIR=arrow/cache

hybridbackend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
from __future__ import division
2121
from __future__ import print_function
2222

23-
__version__ = '0.5.1'
23+
__version__ = '0.5.2'
2424
__author__ = 'Alibaba Group Holding Limited'
2525
__copyright__ = '2021 Alibaba Group Holding Limited'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# =============================================================================
15+
16+
r'''Support for training models in hybridbackend.
17+
'''
18+
19+
from __future__ import absolute_import
20+
from __future__ import division
21+
from __future__ import print_function
22+
23+
from hybridbackend.tensorflow.training.step_stat_hook import StepStatHook

0 commit comments

Comments
 (0)