From 0fd68618c786612694e25b94753be694a1f61821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Wed, 10 Feb 2021 23:27:44 +0100 Subject: [PATCH] autopublish when released using github actions --- .github/workflows/python-publish.yml | 31 +++++++++++++++++++++++++++ README.rst | 32 ++++++++++++++++++++++------ pymodaq_plugins_newport/version.py | 2 +- 3 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..cc1ffb5 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine toml + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/README.rst b/README.rst index b406368..78072cb 100644 --- a/README.rst +++ b/README.rst @@ -1,11 +1,31 @@ -# PyMoDAQ Plugins +pymodaq_plugins_newport (Newport Instruments) +############################################# -PyMoDAQ, Modular Data Acquisition with Python, is a set of **python** modules used to perform automated measurements. +.. image:: https://img.shields.io/pypi/v/pymodaq_plugins_newport.svg + :target: https://pypi.org/project/pymodaq_plugins_newport/ + :alt: Latest Version -This repository contains various hardware plugins compatible with PyMoDAQ +.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest + :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest + :alt: Documentation Status -For an exhaustive list of the available plugins, see https://docs.google.com/spreadsheets/d/1wfMfvLwTitZd2R2m1O5i6wVEaX1lJBahP2HUbxVdidg +.. image:: https://github.com/CEMES-CNRS/pymodaq_plugins_newport/workflows/Upload%20Python%20Package/badge.svg + :target: https://github.com/CEMES-CNRS/pymodaq_plugins_newport -GitHub repo: https://github.com/CEMES-CNRS +PyMoDAQ plugin for instruments from Newport (Conex, ESP100,...) -Documentation: http://pymodaq.cnrs.fr/ \ No newline at end of file + +Authors +======= + +* Sebastien J. Weber + +Instruments +=========== +Below is the list of instruments included in this plugin + +Actuators ++++++++++ + +* **Conex**: Piezo actuators from the CONEX-AGAP series" +* **Newport_ESP100**: ESP100 motion controllers diff --git a/pymodaq_plugins_newport/version.py b/pymodaq_plugins_newport/version.py index 3f8b6a4..22b7fe4 100644 --- a/pymodaq_plugins_newport/version.py +++ b/pymodaq_plugins_newport/version.py @@ -8,7 +8,7 @@ from os.path import abspath, dirname -VERSION = (0, 0, 2, 'final', 0) +VERSION = (0, 0, 3, 'final', 0)