From bd013ff5d353f78d7e1bd236ab6dd11095b7387d Mon Sep 17 00:00:00 2001 From: Michael Mouchous Date: Mon, 17 Oct 2022 18:12:38 +0200 Subject: [PATCH] Move from setup.py to pyproject.toml --- pyproject.toml | 29 +++++++++++++++++++++++++++++ setup.py | 11 ----------- 2 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..11943d0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pystages" +version = "1.1.0" +authors = [ + { name="Olivier Hérivaux", email="olivier.heriveaux@ledger.fr" }, + { name="Michaël Mouchous", email="michael.mouchous@ledger.fr" }, +] +description = "Motorized stage control library for scientific applications" +readme = "README.md" +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", + "Operating System :: OS Independent", +] +dependencies = [ + "pyserial", + "pyusb", + "numpy" +] + +[project.urls] +"Homepage" = "https://github.com/Ledger-Donjon/pystages" +"Bug Tracker" = "https://github.com/Ledger-Donjon/pystages/issues" +"Documentation" = "https://pystages.readthedocs.io/en/latest" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100755 index 075ed97..0000000 --- a/setup.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/python3 - -from setuptools import setup, find_packages - -setup( - name="pystages", - version="1.1", - install_requires=["pyserial", "pyusb", "numpy"], - packages=find_packages(), - python_requires=">=3.8", -)