21 Commits

Author SHA1 Message Date
Jamie Hardt
a717589683 Bumped version and tweaked Bluesky message 2024-11-26 11:19:01 -08:00
Jamie Hardt
f48c164e1b Merge pull request #10 from iluvcapra/maint-poetry
Sprucing-up Build System and Workflows
2024-11-26 11:17:10 -08:00
Jamie Hardt
be1dc99e94 Update pyproject.toml
Fixed typo
2024-11-26 11:16:33 -08:00
Jamie Hardt
fbdfcddfff Re-activated Bluesky posting
Updated classifiers in pyproject.toml
2024-11-26 11:15:08 -08:00
Jamie Hardt
156828b648 Update pythonpublish.yml 2024-11-26 11:11:25 -08:00
Jamie Hardt
1894a143b1 Removed second dependencies block 2024-11-26 11:02:53 -08:00
Jamie Hardt
c0d278e079 Removing 3.7 support 2024-11-26 11:01:49 -08:00
Jamie Hardt
7d3a58bff8 Small change 2024-11-26 10:57:01 -08:00
Jamie Hardt
f1381f5f46 Merge branch 'maint-poetry' of https://github.com/iluvcapra/pycmx into maint-poetry 2024-11-26 10:54:37 -08:00
Jamie Hardt
dc00b52b61 Merge branch 'master' of https://github.com/iluvcapra/pycmx into maint-poetry 2024-11-26 10:53:39 -08:00
Jamie Hardt
571ffdefd7 Merge branch 'master' into maint-poetry 2024-11-26 10:52:55 -08:00
Jamie Hardt
a79cb02139 Updating workflows
Added 3.13 support, publish to Bluesky, Poetry build system
2024-11-26 10:50:38 -08:00
Jamie Hardt
ce1a0d32bb Update __init__.py
Nudged version to 1.2.2
2023-11-08 10:10:08 -08:00
Jamie Hardt
daa5d58a66 Create .readthedocs.yaml 2023-11-08 10:02:24 -08:00
Jamie Hardt
38ce1445a1 Merge pull request #9 from iluvcapra/maint-py3.12
Added Python 3.12 support
2023-11-08 08:17:04 -08:00
Jamie Hardt
552d007360 Merge branch 'master' into maint-py3.12 2023-11-08 08:16:42 -08:00
Jamie Hardt
d79fdcc6a8 Update pyproject.toml
Added Python 3.12 classifier
2023-11-08 08:15:47 -08:00
Jamie Hardt
3187a50a6b Update pyproject.toml 2023-11-08 08:15:26 -08:00
Jamie Hardt
8e8d4f5753 Update pyproject.toml
Added 3.12 classifier
2023-11-08 08:14:57 -08:00
Jamie Hardt
cc371cd486 Update python-package.yml
Added 3.12 to test matrix
2023-11-08 08:13:42 -08:00
Jamie Hardt
795a666a74 Update conf.py 2023-05-31 19:21:27 -07:00
6 changed files with 80 additions and 52 deletions

View File

@@ -16,8 +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.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@@ -28,8 +27,7 @@ jobs:
run: | run: |
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 . python -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,19 @@ 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.12.2
- name: Report to Mastodon
uses: cbrgm/mastodon-github-action@v1.0.1
with: with:
message: | password: ${{ secrets.PYPI_APIKEY }}
I just released a new version of pycmx, my library for reading CMX EDLs! - name: Send Bluesky Post
#sounddesign #filmmaking #python uses: myConsciousness/bluesky-post@v5
${{ github.server_url }}/${{ github.repository }} with:
env: text: |
MASTODON_URL: ${{ secrets.MASTODON_URL }} I've released a new version of pycmx, my python module for
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} reading CMX EDLs.
link-preview-url: ${{ github.server_url }}/${{ github.repository }}
identifier: ${{ secrets.BLUESKY_APP_USER }}
password: ${{ secrets.BLUESKY_APP_PASSWORD }}
service: bsky.social
retry-count: 1

32
.readthedocs.yaml Normal file
View File

@@ -0,0 +1,32 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.10"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
#If using Sphinx, optionally build your docs in additional formats such as PDF
formats:
- pdf
#Optionally declare the Python requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- doc

View File

@@ -145,7 +145,7 @@ latex_documents = [
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
(master_doc, 'pycmx', u'pycmx Documentation', (master_doc, 'pycmx', u'pycmx Documentation',
[author], 1) [author], "3p")
] ]

View File

@@ -7,7 +7,7 @@ copy and reuse this software, refer to the LICENSE file included with the
distribution. distribution.
""" """
__version__ = '1.2.1' __version__ = '1.2.2'
from .parse_cmx_events import parse_cmx3600 from .parse_cmx_events import parse_cmx3600
from .transition import Transition from .transition import Transition

View File

@@ -1,48 +1,40 @@
[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.3"
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',
'Topic :: Multimedia', 'Topic :: Multimedia',
'Topic :: Multimedia :: Video', 'Topic :: Multimedia :: Video',
'Topic :: Text Processing', 'Topic :: Text Processing',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11' 'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13'
] ]
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.extras]
keywords = [ doc = ['sphinx', 'sphinx_rtd_theme']
'parser',
'film',
'broadcast'
]
[tool.flit.module] [tool.poetry.dependencies]
name = "pycmx" python = "^3.8"
sphinx = { version='>= 5.3.0', optional=true}
[project.optional-dependencies] sphinx_rtd_theme = {version ='>= 1.1.1', optional=true}
doc = [
'sphinx >= 5.3.0',
'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 +50,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"