Skip to content

Commit f54e4da

Browse files
committed
[CI] converted to GH workflow
1 parent 2cf5ad9 commit f54e4da

File tree

5 files changed

+37
-51
lines changed

5 files changed

+37
-51
lines changed

.drone.yml

-46
This file was deleted.

.github/workflows/publish.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish To PyPI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
jobs:
8+
build-publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set environnment package version from commit
15+
run: echo "PACKAGE_VERSION=v0.0.0-$(date +%Y%m%d)-${{ github.sha }}" >> $GITHUB_ENV # use same convention as Go bindings
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.12"
21+
22+
- name: Install dependencies
23+
run: pip install build twine
24+
25+
- name: Build wheel
26+
run: python -m build
27+
28+
- name: Publish distribution to PyPI
29+
env:
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
32+
run: twine upload --repository pypi dist/*
33+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/
55
*.eggs/
66
*.egg-info/
77
*.egg
8+
*.pyc

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CS3APIS for Python
1+
# CS3APIs Bindings for Python
22

33
[![Join the conversation](https://badges.gitter.im/cs3org/CS3APIS.svg)](https://gitter.im/cs3org/CS3APIS) [![Latest Version](https://img.shields.io/pypi/v/cs3apis)](https://pypi.org/project/cs3apis/) [![Drone CI Build Status](https://img.shields.io/drone/build/cs3org/python-cs3apis)](https://cloud.drone.io/cs3org/python-cs3apis) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44

setup.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
setuptools.setup(
77
name="cs3apis",
8-
use_scm_version={
9-
"local_scheme": "no-local-version"
10-
},
8+
version="PYPI_VERSION",
119
setup_requires=['setuptools_scm'],
1210
author="CS3 Organization",
1311
author_email="contact@cs3community.org",
14-
description="CS3 API client for Python",
12+
description="CS3 API bindings for Python",
1513
long_description=long_description,
1614
long_description_content_type="text/markdown",
1715
url="https://github.com/cs3org/python-cs3apis",

0 commit comments

Comments
 (0)