From c52992f2b128e88d245eae249e8749515d806f98 Mon Sep 17 00:00:00 2001 From: "Daniel F. Murcia Rivera" Date: Mon, 1 Jul 2024 12:08:22 -0500 Subject: [PATCH] upgrade to pyproject - migrate to pyproject format - drop support for python <= 3.8 - add tests placeholder --- pyproject.toml | 35 +++++++++++++++++++++++++++++++ requirements.txt | 2 -- setup.py | 44 --------------------------------------- tests/__init__.py | 0 tests/test_placeholder.py | 2 ++ win2xcur/__init__.py | 1 + 6 files changed, 38 insertions(+), 46 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.py create mode 100644 tests/__init__.py create mode 100644 tests/test_placeholder.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4a89fac --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[project] +name = "win2xcur" +authors = [ + {name = "quantum", email = "quantum2048@gmail.com"}, +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Environment :: Win32 (MS Windows)", + "Environment :: X11 Applications", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Topic :: Desktop Environment", +] +requires-python = ">=3.9" +dependencies = [ + "numpy >=1.2.12, <2.0.0", + "Wand >=0.6.13, <1.0.0", +] +description = "win2xcur is a tool to convert Windows .cur and .ani cursors to Xcursor format." +dynamic = ["version"] + +[project.scripts] +win2xcur = 'win2xcur.main.win2xcur:main' +x2wincur = 'win2xcur.main.x2wincur:main' + +[build-system] +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c81de1e..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -numpy -Wand diff --git a/setup.py b/setup.py deleted file mode 100644 index 71aed32..0000000 --- a/setup.py +++ /dev/null @@ -1,44 +0,0 @@ -import os - -from setuptools import find_packages, setup - -with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f: - long_description = f.read() - -setup( - name='win2xcur', - version='0.1.2', - packages=find_packages(), - install_requires=['numpy', 'Wand'], - - entry_points={ - 'console_scripts': [ - 'win2xcur = win2xcur.main.win2xcur:main', - 'x2wincur = win2xcur.main.x2wincur:main', - ], - }, - - author='quantum', - author_email='quantum2048@gmail.com', - url='https://github.com/quantum5/win2xcur', - description='win2xcur is a tool to convert Windows .cur and .ani cursors to Xcursor format.', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='cur ani x11 windows win32 cursor xcursor', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Environment :: Win32 (MS Windows)', - 'Environment :: X11 Applications', - 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - 'Operating System :: Microsoft :: Windows', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3 :: Only', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Topic :: Desktop Environment', - ], -) diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_placeholder.py b/tests/test_placeholder.py new file mode 100644 index 0000000..db2a8a6 --- /dev/null +++ b/tests/test_placeholder.py @@ -0,0 +1,2 @@ +def test_placeholder() -> None: + assert 1 == 1 diff --git a/win2xcur/__init__.py b/win2xcur/__init__.py index e69de29..d3ec452 100644 --- a/win2xcur/__init__.py +++ b/win2xcur/__init__.py @@ -0,0 +1 @@ +__version__ = "0.2.0"