From d8f8ed39d5bd63cd1700397044a6b5b20de3a8b1 Mon Sep 17 00:00:00 2001 From: whitews Date: Thu, 29 Feb 2024 15:12:56 -0500 Subject: [PATCH] move most project metadata to pyproject.toml --- pyproject.toml | 36 +++++++++++++++++++++++++++++++++--- setup.py | 24 +----------------------- src/flowio/_version.py | 2 +- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5388bcc..951d9eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,38 @@ -[build-system] -requires = ['setuptools>=61.0'] -build-backend = 'setuptools.build_meta' +[project] +name = "FlowIO" +dynamic = ["version"] +description = 'FlowIO is a Python library for reading / writing Flow Cytometry Standard (FCS) files' +readme = "README.md" +license = {file = "LICENSE"} +authors = [ + {name = "Scott White", email = "whitews@gmail.com" } +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.7" +] + +[tool.setuptools.dynamic] +version = {attr = "flowio.__version__"} [project.optional-dependencies] test = [ "numpy>=1.17", ] + +[project.urls] +Homepage = "https://github.com/whitews/flowio" +Documentation = "https://flowio.readthedocs.io/en/latest/" +Repository = "https://github.com/whitews/flowio" +Issues = "https://github.com/whitews/FlowIO/issues" +Changelog = "https://github.com/whitews/FlowIO/releases" + +[build-system] +requires = ['setuptools>=61.0'] +build-backend = 'setuptools.build_meta' diff --git a/setup.py b/setup.py index 9613ded..21cfdbd 100644 --- a/setup.py +++ b/setup.py @@ -12,30 +12,8 @@ if not __version__: raise RuntimeError("__version__ string not found in file %s" % VERSION_FILE) -with open('README.md', 'r') as fh: - long_description = fh.read() - setup( - name='FlowIO', - version=__version__, packages=['flowio'], package_dir={'': "src"}, - package_data={'': []}, - description='FlowIO is a Python library for reading / writing Flow Cytometry Standard (FCS) files', - long_description=long_description, - long_description_content_type='text/markdown', - author='Scott White', - author_email='whitews@gmail.com', - license='BSD', - license_files=('LICENSE',), - url='https://github.com/whitews/flowio', - requires=[], - classifiers=[ - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.7' - ] + package_data={'': []} ) diff --git a/src/flowio/_version.py b/src/flowio/_version.py index 239cd13..92b0082 100644 --- a/src/flowio/_version.py +++ b/src/flowio/_version.py @@ -1,4 +1,4 @@ """ FlowIO version """ -__version__ = "1.2.2b" +__version__ = "1.2.2b1"