mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 17:00:46 +00:00
Migrating to uv build and manager (#16)
* Migrating to uv build and manager * Updated Flake8 settings * Updating github workflow * Update python-package.yml * Removed redundant flake8 run * Version number in banner --------- Co-authored-by: Jamie Hardt <jamie@squad51.us>
This commit is contained in:
4
.flake8
4
.flake8
@@ -1,4 +1,4 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
ptulsconv/__init__.py: F401
|
src/ptulsconv/__init__.py: F401
|
||||||
ptulsconv/docparser/__init__.py: F401
|
src/ptulsconv/docparser/__init__.py: F401
|
||||||
|
|||||||
7
.github/workflows/python-package.yml
vendored
7
.github/workflows/python-package.yml
vendored
@@ -32,10 +32,9 @@ jobs:
|
|||||||
- 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
|
||||||
flake8 ptulsconv tests --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 src/ptulsconv tests --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings.
|
||||||
flake8 ptulsconv tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 src/ptulsconv tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
flake8 ptulsconv
|
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "ptulsconv"
|
name = "ptulsconv"
|
||||||
|
version = "4.0.0"
|
||||||
|
description = "Read Pro Tools Text exports and generate PDF ADR Reports, JSON"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.9"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
|
keywords = ["text-processing", "parsers", "film",
|
||||||
|
"broadcast", "editing", "editorial"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Topic :: Multimedia',
|
'Topic :: Multimedia',
|
||||||
@@ -13,39 +19,34 @@ classifiers = [
|
|||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
"Topic :: Text Processing :: Filters"
|
"Topic :: Text Processing :: Filters"
|
||||||
]
|
]
|
||||||
requires-python = ">=3.8"
|
authors = [{name = "Jamie Hardt", email = "<jamiehardt@me.com>"}]
|
||||||
keywords = ["text-processing", "parsers", "film",
|
dependencies = [
|
||||||
"broadcast", "editing", "editorial"]
|
"parsimonious>=0.10.0",
|
||||||
|
"py-ptsl>=600.0.0",
|
||||||
[tool.poetry]
|
"reportlab>=4.4.4",
|
||||||
name = "ptulsconv"
|
"tqdm>=4.67.1",
|
||||||
version = "4.0.0"
|
]
|
||||||
description = "Read Pro Tools Text exports and generate PDF ADR Reports, JSON"
|
|
||||||
authors = ["Jamie Hardt <jamiehardt@me.com>"]
|
|
||||||
license = "MIT"
|
|
||||||
readme = "README.md"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = "^3.9"
|
|
||||||
parsimonious = "^0.10.0"
|
|
||||||
tqdm = "^4.67.1"
|
|
||||||
reportlab = "^4.4.1"
|
|
||||||
py-ptsl = "^600.0.0"
|
|
||||||
sphinx_rtd_theme = {version= '>= 1.1.1', optional=true}
|
|
||||||
sphinx = {version= '>= 5.3.0', optional=true}
|
|
||||||
|
|
||||||
[tool.poetry.extras]
|
|
||||||
doc = ['sphinx', 'sphinx_rtd_theme']
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
|
||||||
ptulsconv = 'ptulsconv.__main__:main'
|
|
||||||
|
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Source = 'https://github.com/iluvcapra/ptulsconv'
|
Source = 'https://github.com/iluvcapra/ptulsconv'
|
||||||
Issues = 'https://github.com/iluvcapra/ptulsconv/issues'
|
Issues = 'https://github.com/iluvcapra/ptulsconv/issues'
|
||||||
Documentation = 'https://ptulsconv.readthedocs.io/'
|
Documentation = 'https://ptulsconv.readthedocs.io/'
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
doc = [
|
||||||
|
"sphinx>=7.4.7",
|
||||||
|
"sphinx-rtd-theme>=3.0.2",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ptulsconv = "ptulsconv:__main__.main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["uv_build>=0.8.18,<0.9.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "uv_build"
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = [
|
||||||
|
"flake8>=7.3.0",
|
||||||
|
]
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ from optparse import OptionParser, OptionGroup
|
|||||||
import datetime
|
import datetime
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import importlib.metadata
|
||||||
|
|
||||||
from ptulsconv import __name__
|
from ptulsconv import __name__
|
||||||
import ptulsconv
|
import ptulsconv
|
||||||
from ptulsconv.commands import convert
|
from ptulsconv.commands import convert
|
||||||
@@ -83,7 +85,8 @@ def main():
|
|||||||
|
|
||||||
parser.add_option_group(informational_options)
|
parser.add_option_group(informational_options)
|
||||||
|
|
||||||
print_banner_style(ptulsconv.__name__)
|
version = importlib.metadata.version(ptulsconv.__name__)
|
||||||
|
print_banner_style(f"{ptulsconv.__name__} - version {version}")
|
||||||
print_banner_style(ptulsconv.__copyright__)
|
print_banner_style(ptulsconv.__copyright__)
|
||||||
|
|
||||||
(options, args) = parser.parse_args(sys.argv)
|
(options, args) = parser.parse_args(sys.argv)
|
||||||
Reference in New Issue
Block a user