From d52221ec07ebc6708653baec8d746acbb4cf684e Mon Sep 17 00:00:00 2001 From: Sietze van Buuren Date: Sat, 17 Aug 2024 20:06:49 +0200 Subject: [PATCH] chore: Move to pyproject.toml setup Signed-off-by: Sietze van Buuren --- .gitignore | 2 ++ MANIFEST.in | 3 --- mlpyqtgraph/__init__.py | 4 +++- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ requirements.txt | 3 --- setup.py | 18 ------------------ 6 files changed, 41 insertions(+), 25 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 10fd166..dbee1cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .vscode/ +.pytest_cache/ doc/build/ **/__pycache__ mlpyqtgraph.egg-info/ +build/ diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 235bef1..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include LICENSE -include README.md -include setup.py diff --git a/mlpyqtgraph/__init__.py b/mlpyqtgraph/__init__.py index 09a12ab..053c09b 100644 --- a/mlpyqtgraph/__init__.py +++ b/mlpyqtgraph/__init__.py @@ -8,11 +8,13 @@ from mlpyqtgraph import workers from mlpyqtgraph import config_options as config - from . import ml_functions from .ml_functions import * +__version__ = '0.1.0' + + GUIAgency = controllers.GUIAgency GUIAgency.add_agent('figure', windows.FigureWindow) GUIAgency.add_agent('axis', axes.Axis) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..acf96de --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "mlpyqtgraph" +version = "0.1.0" +description = "Matplotlib like plotting with pyqtgraph in python" +readme = "README.md" +license = { file = "LICENSE" } +authors = [ + { name = "Sietze van Buuren", email = "s.van.buuren@gmail.com" } +] +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +urls = { Homepage = "https://github.com/swvanbuuren/mlpyqtgraph" } +dependencies = [ + "pyqtgraph", + "pqthreads", + "pyopengl", +] + +[tool.setuptools.packages.find] +include = ["mlpyqtgraph", "mlpyqtgraph.*"] + +[tool.semantic_release] +version_variables = ["mlpyqtgraph/__init__.py:__version__"] +version_toml = ["pyproject.toml:project.version"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 62efd26..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pqthreads -pyqtgraph -pyopengl diff --git a/setup.py b/setup.py deleted file mode 100644 index 07a3912..0000000 --- a/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python -from setuptools import setup, find_namespace_packages - -setup( - name='mlpyqtgraph', - version='0.1', - author='Sietze van Buuren', - author_email='s.van.buuren@gmail.com', - packages=find_namespace_packages(include=['mlpyqtgraph', 'mlpyqtgraph.*']), - python_requires=">=3.8", - package_dir={"mlpyqtgraph": "mlpyqtgraph"}, - url='https://github.com/swvanbuuren', - license='LICENSE', - description='Matplotlib like plotting with pyqtgraph in python ', - long_description=open('README.md').read(), - install_requires=['pyqtgraph', - 'PySide2',] -)