Skip to content

Commit eb55c26

Browse files
committed
adding release action
1 parent 318bf8d commit eb55c26

File tree

6 files changed

+108
-1
lines changed

6 files changed

+108
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: pypi
17+
url: https://test.pypi.org/project/cloudbees-openfeature-provider-python
18+
permissions:
19+
id-token: write
20+
steps:
21+
- uses: google-github-actions/release-please-action@v4
22+
id: release
23+
with:
24+
release-type: python
25+
- uses: actions/checkout@v4
26+
if: ${{ steps.release.outputs.release_created }}
27+
- uses: actions/setup-python@v5
28+
if: ${{ steps.release.outputs.release_created }}
29+
with:
30+
python-version: 'python:3.8'
31+
- name: Install dependencies
32+
if: ${{ steps.release.outputs.release_created }}
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install build
36+
- name: Build package
37+
if: ${{ steps.release.outputs.release_created }}
38+
run: python -m build
39+
- name: Publish package
40+
if: ${{ steps.release.outputs.release_created }}
41+
uses: pypa/gh-action-pypi-publish@v1
42+
with:
43+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflow/run-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
- name: Run tests
24+
run: |
25+
python -m unittest test/test_integration.py

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ __pycache__
22
.idea/
33
dist/
44
build/
5-
cloudbees/_version.py
5+
cloudbees/_version.py
6+
cloudbees_openfeature_provider_python.egg-info/

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
prune test/
2+
prune .github/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# CloudBees Feature Management provider for OpenFeature

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[build-system]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]
6+
version_file = "cloudbees/_version.py"
7+
8+
[project]
9+
dynamic = ["version"]
10+
name="cloudbees-openfeature-provider-python"
11+
authors=[{name = "CloudBees", email = "[email protected]"}]
12+
description="CloudBees.com OpenFeature SDK"
13+
keywords=["CloudBees", "OpenFeature"]
14+
requires-python= ">=3.8, <=3.11"
15+
readme = "README.md"
16+
dependencies = [
17+
'rox >= 5.0',
18+
'openfeature-sdk >= 0.4.1',
19+
]
20+
classifiers=[
21+
'Programming Language :: Python :: 3.8',
22+
'Programming Language :: Python :: 3.9',
23+
'Programming Language :: Python :: 3.10',
24+
'Programming Language :: Python :: 3.11',
25+
'License :: Other/Proprietary License',
26+
]
27+
28+
[project.urls]
29+
homepage='https://github.com/rollout/cloudbees-openfeature-provider-python'
30+
31+
[tools.setuptools]
32+
packages=["cloudbees"]
33+
34+
[tool.setuptools.packages.find]
35+
exclude = ["./test*"]

0 commit comments

Comments
 (0)