diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c9cbd0a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.venv +*.egg-info +build diff --git a/linak_ctrl/__init__.py b/linak_ctrl.py similarity index 100% rename from linak_ctrl/__init__.py rename to linak_ctrl.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d5f6539 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "linak-ctrl" +version = "1.0.5" +requires-python = ">= 3.10" +description = "Control Linak powered desks using USB2LIN06 cable." +dependencies = [ + "pyusb>=1.3.1" +] +readme = "README.rst" +authors = [ + {name = "Roman Dobosz", email = "gryf73@gmail.com"} +] +license = {text = "BSD"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: BSD License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: System :: Networking" +] + +[tool.setuptools] +py-modules = ["linak_ctrl"] + +[project.urls] +Repository = "https://github.com/gryf/linak-ctrl" + +[project.scripts] +linak-ctrl = "linak_ctrl:main" + +[tool.distutils.bdist_wheel] +universal = true diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index a84cc71..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pbr -pyusb>=1.1.1 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index e2acca0..0000000 --- a/setup.cfg +++ /dev/null @@ -1,35 +0,0 @@ -[metadata] -name = linak-ctrl -summary = Control Linak powered desks using USB2LIN06 cable. -description-file = README.rst -author = Roman Dobosz -author-email = gryf73@gmail.com -home-page = https://github.com/gryf/linak-ctrl -license = BSD -classifier = - Development Status :: 5 - Production/Stable - Environment :: Console - Intended Audience :: End Users/Desktop - License :: OSI Approved :: BSD License - Operating System :: POSIX :: Linux - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Topic :: System :: Networking - -[install] -record = install.log - -[options.entry_points] -console_scripts = - linak-ctrl= linak_ctrl:main - -[options] -packages = find: -install_requires = - pyusb - -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py deleted file mode 100644 index b324f04..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -import setuptools - - -setuptools.setup(setup_requires=['pbr>=2.0.0'], pbr=True)