Updating workflows

Added 3.13 support, publish to Bluesky, Poetry build system
This commit is contained in:
Jamie Hardt
2024-11-26 10:50:38 -08:00
parent cd35f4f80d
commit a79cb02139
3 changed files with 40 additions and 44 deletions

View File

@@ -16,7 +16,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -29,7 +29,6 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install flake8 pytest python -m pip install flake8 pytest
python3 -m pip install -e . python3 -m pip install -e .
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names

View File

@@ -3,7 +3,6 @@ name: Upload Python Package
on: on:
release: release:
types: [published] types: [published]
workflow_dispatch:
permissions: permissions:
contents: read contents: read
@@ -15,9 +14,9 @@ jobs:
environment: environment:
name: release name: release
steps: steps:
- uses: actions/checkout@v3.5.2 - uses: actions/checkout@v4.2.2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4.6.0 uses: actions/setup-python@v5.3.0
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
@@ -25,16 +24,17 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install build pip install build
- name: Build package - name: Build package
run: python -m build run: python -m build .
- name: pypi-publish - name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@v1.8.6 uses: pypa/gh-action-pypi-publish@v1.8.6
- name: Report to Mastodon - name: Send Bluesky Post
uses: cbrgm/mastodon-github-action@v1.0.1 uses: myConsciousness/bluesky-post@v5
with: with:
message: | text: |
I just released a new version of pycmx, my library for reading CMX EDLs! I've released a new version of pycmx, my module for
#sounddesign #filmmaking #python reading CMX EDLs.
${{ github.server_url }}/${{ github.repository }} link-preview-url: ${{ github.server_url }}/${{ github.repository }}
env: identifier: ${{ secrets.BLUESKY_APP_USER }}
MASTODON_URL: ${{ secrets.MASTODON_URL }} password: ${{ secrets.BLUESKY_APP_PASSWORD }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} service: bsky.social
retry-count: 1

View File

@@ -1,13 +1,15 @@
[build-system] [tool.poetry]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pycmx" name = "pycmx"
authors = [{name = "Jamie Hardt", email = "jamiehardt@me.com"}] version = "1.2.2"
description = "Python CMX 3600 Edit Decision List Parser"
authors = ["Jamie Hardt <jamiehardt@me.com>"]
license = "MIT"
readme = "README.md" readme = "README.md"
dynamic = ["version", "description"] keywords = [
requires-python = "~=3.7" 'parser',
'film',
'broadcast'
]
classifiers = [ classifiers = [
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License', 'License :: OSI Approved :: MIT License',
@@ -20,29 +22,20 @@ classifiers = [
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11' 'Programming Language :: Python :: 3.11'
] ]
dependencies = [ homepage = "https://github.com/iluvcapra/pycmx"
documentation = "https://pycmx.readthedocs.io/"
repository = "https://github.com/iluvcapra/pycmx.git"
urls.Tracker = "https://github.com/iluvcapra/pycmx/issues"
] [tool.poetry.dependencies]
keywords = [ python = "^3.7"
'parser',
'film',
'broadcast'
]
[tool.flit.module] [tool.poetry.extras]
name = "pycmx" doc = ['sphinx', 'sphinx_rtd_theme']
[project.optional-dependencies] [tool.poetry.dependencies]
doc = [ sphinx = { version='>= 5.3.0', optional=true}
'sphinx >= 5.3.0', sphinx_rtd_theme = {version ='>= 1.1.1', optional=true}
'sphinx_rtd_theme >= 1.1.1',
]
[project.urls]
Home = "https://github.com/iluvcapra/pycmx"
Documentation = "https://pycmx.readthedocs.io/"
Source = "https://github.com/iluvcapra/pycmx.git"
Issues = "https://github.com/iluvcapra/pycmx/issues"
[tool.pyright] [tool.pyright]
typeCheckingMode = "basic" typeCheckingMode = "basic"
@@ -58,3 +51,7 @@ disable = [
"R0913", # (too-many-arguments) "R0913", # (too-many-arguments)
"W0105", # (pointless-string-statement) "W0105", # (pointless-string-statement)
] ]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"