From a4585317418a653a26d16b29299005c85f744ebf Mon Sep 17 00:00:00 2001 From: Patrick O'Hara Date: Tue, 6 Feb 2024 11:19:39 +0000 Subject: [PATCH] Build with pyproject.toml instead --- LICENSE | 2 +- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ setup.py | 33 --------------------------------- 3 files changed, 39 insertions(+), 34 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/LICENSE b/LICENSE index 14a4852..c26dc5b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Patrick O'Hara +Copyright (c) 2024 Patrick O'Hara Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f78c104 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name="tspwplib" +authors = [ + {name = "Patrick O'Hara", email = "patrick.h.o-hara@warwick.ac.uk"}, +] +urls = {Code = "https://github.com/PatrickOHara/tspwplib", Documentation = "https://patrickohara.github.io/tspwplib/", Download = "https://pypi.org/project/tspwplib/", Homepage = "https://github.com/PatrickOHara/tspwplib", Issues = "https://github.com/PatrickOHara/tspwplib/issues"} +description="Library of instances for TSP with Profits" +readme = "README.md" +requires-python = ">=3.10" +keywords = ["Distributionally Robust Optimisation"] +license = {text = "MIT"} +classifiers=[ + "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 :: Only", + "Operating System :: OS Independent", +] +dependencies = [ + "networkx>=3.0.0", + "numpy>=1.26.0", + "pandas>=2.0.0", + "pydantic>=2.5.3", + "pyyaml>=6.0", + "tsplib95@git+https://github.com/ben-hudson/tsplib95.git", +] +dynamic = ["version"] + +[tool.setuptools] +packages = ["tspwplib"] + +[tool.setuptools_scm] diff --git a/setup.py b/setup.py deleted file mode 100644 index ac76f7f..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Setup script for tspwplib""" - -from setuptools import setup - -setup( - author="Patrick O'Hara", - author_email="patrick.h.o-hara@warwick.ac.uk", - url="https://github.com/PatrickOHara/tspwplib", - description="Library of instances for TSP with Profits", - install_requires=[ - "networkx>=3.0.0", - "numpy>=1.26.0", - "pandas>=2.0.0", - "pydantic>=2.5.3", - "pyyaml>=6.0", - "tsplib95@git+https://github.com/ben-hudson/tsplib95.git", - ], - name="tspwplib", - packages=["tspwplib"], - python_requires=">=3.10", - license="MIT", - classifiers=[ - "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 :: Only", - "Operating System :: OS Independent", - ], - use_scm_version=True, - setup_requires=["setuptools_scm"], -)