From 173493a6104901f46cb211a9104e05fd6deee1a2 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 17 May 2023 16:12:42 -0700 Subject: [PATCH] Updated project to pyproject-style package --- pycmx/__init__.py | 5 ++-- pyproject.toml | 60 +++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 33 -------------------------- 3 files changed, 62 insertions(+), 36 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pycmx/__init__.py b/pycmx/__init__.py index 387b58d..4a20f1c 100644 --- a/pycmx/__init__.py +++ b/pycmx/__init__.py @@ -3,13 +3,12 @@ pycmx is a module for parsing CMX 3600-style EDLs. For more information and examples see README.md -This module (c) 2018 Jamie Hardt. For more information on your rights to +This module (c) 2022 Jamie Hardt. For more information on your rights to copy and reuse this software, refer to the LICENSE file included with the distribution. """ -__version__ = '1.1.1' -__author__ = 'Jamie Hardt' +__version__ = '1.2.0' from .parse_cmx_events import parse_cmx3600 from .transition import Transition diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2d1d790 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" + +[project] +name = "pycmx" +authors = [{name = "Jamie Hardt", email = "jamiehardt@me.com"}] +readme = "README.md" +dynamic = ["version", "description"] +requires-python = "~=3.8" +classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'License :: OSI Approved :: MIT License', + 'Topic :: Multimedia', + 'Topic :: Multimedia :: Video', + 'Topic :: Text Processing', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10' +] +dependencies = [ + +] +keywords = [ + 'parser', + 'film', + 'broadcast' +] + +[tool.flit.module] +name = "pycmx" + +[project.optional-dependencies] +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] +typeCheckingMode = "basic" + +[tool.pylint] +max-line-length = 88 +disable = [ + "C0103", # (invalid-name) + "C0114", # (missing-module-docstring) + "C0115", # (missing-class-docstring) + "C0116", # (missing-function-docstring) + "R0903", # (too-few-public-methods) + "R0913", # (too-many-arguments) + "W0105", # (pointless-string-statement) +] diff --git a/setup.py b/setup.py deleted file mode 100644 index eb00fe8..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -from setuptools import setup - -with open("README.md", "r") as fh: - long_description = fh.read() - -setup(name='pycmx', - version='1.1.5', - author='Jamie Hardt', - author_email='jamiehardt@me.com', - description='CMX 3600 Edit Decision List Parser', - long_description_content_type="text/markdown", - long_description=long_description, - project_urls={ - 'Source': - 'https://github.com/iluvcapra/pycmx', - 'Documentation': - 'https://pycmx.readthedocs.io/', - 'Issues': - 'https://github.com/iluvcapra/pycmx/issues', - }, - url='https://github.com/iluvcapra/pycmx', - classifiers=['Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: MIT License', - 'Topic :: Multimedia', - 'Topic :: Multimedia :: Video', - 'Topic :: Text Processing', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10' - ], - packages=['pycmx'])