Skip to content

Commit

Permalink
Bump version to 4.7 and add publish workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
ufodone committed May 19, 2024
1 parent e519c8c commit 7738482
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 11 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

11 changes: 11 additions & 0 deletions setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# Stop on errors
set -e

cd "$(dirname "$0")"

python3 -m venv venv
source venv/bin/activate

python3 -m pip install -r requirements.txt
32 changes: 21 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
#!/usr/bin/env python3
from setuptools import setup

setup(name='pyenvisalink',
version='4.6',
description='A python3 library for running asynchronus communications with envisalink alarm control panel modules.',
url='https://github.com/Cinntax/pyenvisalink',
download_url='https://github.com/ufodone/pyenvisalink/tarball/4.6',
author="David O'Neill",
author_email='[email protected]',
license='MIT',
packages=['pyenvisalink'],
classifiers=['Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10']
)
setup(
name="pyenvisalink",
version="4.7",
description=(
"A python3 library for running asynchronus communications with envisalink "
"alarm control panel modules."
),
long_description=(
"A python3 library for running asynchronus communications with envisalink "
"alarm control panel modules."
),
url="https://github.com/ufodone/pyenvisalink",
author="David O'Neill",
author_email="[email protected]",
license="MIT",
packages=["pyenvisalink"],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.10",
],
)

0 comments on commit 7738482

Please sign in to comment.