Skip to content

Commit ad4d4fd

Browse files
init commit
1 parent a2d7cb2 commit ad4d4fd

File tree

3 files changed

+226
-213
lines changed

3 files changed

+226
-213
lines changed

.github/workflows/changelog.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
#
2-
# BSD 2-Clause License
3-
#
4-
# Copyright (c) 2021-2024, Hewlett Packard Enterprise
5-
# All rights reserved.
6-
#
7-
# Redistribution and use in source and binary forms, with or without
8-
# modification, are permitted provided that the following conditions are met:
9-
#
10-
# 1. Redistributions of source code must retain the above copyright notice, this
11-
# list of conditions and the following disclaimer.
12-
#
13-
# 2. Redistributions in binary form must reproduce the above copyright notice,
14-
# this list of conditions and the following disclaimer in the documentation
15-
# and/or other materials provided with the distribution.
16-
#
17-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20-
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21-
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22-
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23-
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24-
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25-
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26-
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27-
#
1+
# #
2+
# # BSD 2-Clause License
3+
# #
4+
# # Copyright (c) 2021-2024, Hewlett Packard Enterprise
5+
# # All rights reserved.
6+
# #
7+
# # Redistribution and use in source and binary forms, with or without
8+
# # modification, are permitted provided that the following conditions are met:
9+
# #
10+
# # 1. Redistributions of source code must retain the above copyright notice, this
11+
# # list of conditions and the following disclaimer.
12+
# #
13+
# # 2. Redistributions in binary form must reproduce the above copyright notice,
14+
# # this list of conditions and the following disclaimer in the documentation
15+
# # and/or other materials provided with the distribution.
16+
# #
17+
# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
# # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
# # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
# # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21+
# # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22+
# # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23+
# # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24+
# # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25+
# # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
# # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+
# #
2828

29-
name: enforce_changelog
29+
# name: enforce_changelog
3030

31-
on:
32-
pull_request:
33-
push:
34-
branches:
35-
- develop
31+
# on:
32+
# pull_request:
33+
# push:
34+
# branches:
35+
# - develop
3636

37-
jobs:
38-
changelog:
39-
name: check_changelog
40-
runs-on: ubuntu-latest
37+
# jobs:
38+
# changelog:
39+
# name: check_changelog
40+
# runs-on: ubuntu-latest
4141

42-
steps:
43-
- uses: actions/checkout@v4
42+
# steps:
43+
# - uses: actions/checkout@v4
4444

45-
- name: Changelog Enforcer
46-
uses: dangoslen/changelog-enforcer@v3.6.0
47-
with:
48-
changeLogPath: './doc/changelog.rst'
49-
missingUpdateErrorMessage: 'changelog.rst has not been updated'
45+
# - name: Changelog Enforcer
46+
# uses: dangoslen/changelog-enforcer@v3.6.0
47+
# with:
48+
# changeLogPath: './doc/changelog.rst'
49+
# missingUpdateErrorMessage: 'changelog.rst has not been updated'

.github/workflows/release.yml

Lines changed: 84 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
name: deploy-release
3030

3131
on:
32-
release:
33-
types: [published]
32+
pull_request:
33+
push:
34+
branches:
35+
- develop
3436

3537

3638
env:
@@ -47,76 +49,87 @@ env:
4749

4850

4951
jobs:
50-
build_wheels:
51-
name: Build wheels on ${{ matrix.os }}
52-
runs-on: ${{ matrix.os }}
53-
strategy:
54-
fail-fast: false
55-
matrix:
56-
os: [ubuntu-20.04, macos-12]
57-
58-
steps:
59-
- uses: actions/checkout@v2
60-
- uses: actions/setup-python@v2
61-
62-
- uses: actions/setup-python@v2
63-
name: Install Python
64-
with:
65-
python-version: '3.9'
66-
67-
- name: Install build
68-
run: |
69-
python -m pip install --upgrade pip
70-
python -m pip install build>=1.0.3
71-
72-
- name: Build wheels
73-
run: |
74-
python -m build -o wheelhouse -w
75-
env:
76-
CIBW_ENVIRONMENT_MACOS: PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH"
77-
MACOSX_DEPLOYMENT_TARGET: "10.09"
78-
79-
- uses: actions/upload-artifact@v2
80-
with:
81-
path: ./wheelhouse/*.whl
82-
83-
84-
build_sdist:
85-
name: Build source distribution
52+
createPullRequest:
8653
runs-on: ubuntu-latest
8754
steps:
88-
- uses: actions/checkout@v2
89-
90-
- uses: actions/setup-python@v2
91-
name: Install Python
92-
with:
93-
python-version: '3.9'
55+
- name: Checkout code
56+
uses: actions/checkout@v2
9457

95-
- name: Install build
58+
- name: Create pull request
9659
run: |
97-
python -m pip install --upgrade pip
98-
python -m pip install build>=1.0.3
99-
100-
- name: Build dist
101-
run: |
102-
python -m build -o dist
103-
104-
- uses: actions/upload-artifact@v2
105-
with:
106-
path: dist/*.tar.gz
107-
108-
109-
upload_pypi:
110-
needs: [build_wheels, build_sdist]
111-
runs-on: ubuntu-latest
112-
steps:
113-
- uses: actions/download-artifact@v2
114-
with:
115-
name: artifact
116-
path: dist
117-
118-
- uses: pypa/gh-action-pypi-publish@release/v1
119-
with:
120-
# user: __token__
121-
password: ${{ secrets.PYPI }}
122-
#repository_url: https://test.pypi.org/legacy/
60+
gh pr create -B develop -H master --title 'Merge master into develop' --body 'This PR brings develop up to date with master for release.'
61+
env:
62+
GH_TOKEN: ${{ github.token }}
63+
# build_wheels:
64+
# name: Build wheels on ${{ matrix.os }}
65+
# runs-on: ${{ matrix.os }}
66+
# strategy:
67+
# fail-fast: false
68+
# matrix:
69+
# os: [ubuntu-20.04, macos-12]
70+
71+
# steps:
72+
# - uses: actions/checkout@v2
73+
# - uses: actions/setup-python@v2
74+
75+
# - uses: actions/setup-python@v2
76+
# name: Install Python
77+
# with:
78+
# python-version: '3.9'
79+
80+
# - name: Install build
81+
# run: |
82+
# python -m pip install --upgrade pip
83+
# python -m pip install build>=1.0.3
84+
85+
# - name: Build wheels
86+
# run: |
87+
# python -m build -o wheelhouse -w
88+
# env:
89+
# CIBW_ENVIRONMENT_MACOS: PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH"
90+
# MACOSX_DEPLOYMENT_TARGET: "10.09"
91+
92+
# - uses: actions/upload-artifact@v2
93+
# with:
94+
# path: ./wheelhouse/*.whl
95+
96+
97+
# build_sdist:
98+
# name: Build source distribution
99+
# runs-on: ubuntu-latest
100+
# steps:
101+
# - uses: actions/checkout@v2
102+
103+
# - uses: actions/setup-python@v2
104+
# name: Install Python
105+
# with:
106+
# python-version: '3.9'
107+
108+
# - name: Install build
109+
# run: |
110+
# python -m pip install --upgrade pip
111+
# python -m pip install build>=1.0.3
112+
113+
# - name: Build dist
114+
# run: |
115+
# python -m build -o dist
116+
117+
# - uses: actions/upload-artifact@v2
118+
# with:
119+
# path: dist/*.tar.gz
120+
121+
122+
# upload_pypi:
123+
# needs: [build_wheels, build_sdist]
124+
# runs-on: ubuntu-latest
125+
# steps:
126+
# - uses: actions/download-artifact@v2
127+
# with:
128+
# name: artifact
129+
# path: dist
130+
131+
# - uses: pypa/gh-action-pypi-publish@release/v1
132+
# with:
133+
# # user: __token__
134+
# password: ${{ secrets.PYPI }}
135+
# #repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)