upgrade to pyproject

- migrate to pyproject format
- drop support for python <= 3.8
- add tests placeholder
This commit is contained in:
Daniel F. Murcia Rivera 2024-07-01 12:08:22 -05:00
parent 8e71037f5f
commit c52992f2b1
No known key found for this signature in database
GPG key ID: 4C23A4C3C0EA238E
6 changed files with 38 additions and 46 deletions

35
pyproject.toml Normal file
View file

@ -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"

View file

@ -1,2 +0,0 @@
numpy
Wand

View file

@ -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',
],
)

0
tests/__init__.py Normal file
View file

View file

@ -0,0 +1,2 @@
def test_placeholder() -> None:
assert 1 == 1

View file

@ -0,0 +1 @@
__version__ = "0.2.0"