Skip to content

Commit

Permalink
[CI] converted to GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 27, 2024
1 parent 2cf5ad9 commit d6e40ae
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 51 deletions.
46 changes: 0 additions & 46 deletions .drone.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish To PyPI

on:
push:
branches: ['main']

jobs:
build-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set environnment package version from commit
run: echo "PACKAGE_VERSION=v0.0.0-$(date +%Y%m%d)-${{ github.sha }}" >> $GITHUB_ENV # use same convention as Go bindings

- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Install dependencies
run: pip install build twine

- name: Build wheel
run: python -m build

- name: Publish distribution to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload --repository pypi dist/*

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
*.eggs/
*.egg-info/
*.egg
*.pyc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CS3APIS for Python
# CS3APIs Bindings for Python

[![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)

Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@

setuptools.setup(
name="cs3apis",
use_scm_version={
"local_scheme": "no-local-version"
},
setup_requires=['setuptools_scm'],
author="CS3 Organization",
author_email="contact@cs3community.org",
description="CS3 API client for Python",
description="CS3 API bindings for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/cs3org/python-cs3apis",
Expand Down

0 comments on commit d6e40ae

Please sign in to comment.