From 5fadcfc259ddd92eb09cef61cf70b597d669ba93 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 19 Jan 2024 08:15:16 -0500 Subject: [PATCH] build: fix dynamic dependencies for newer setuptools versions (#133) --- pyproject.toml | 20 +++++++++++++++----- setup.cfg | 16 ++++------------ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fd7a6dd..91db04f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,18 +15,28 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] -dynamic = ["version"] +dynamic = ["version", "optional-dependencies"] +dependencies = [ + "bioutils > 0.4", + "coloredlogs", + "ipython", + "pysam", + "requests", + "requests_html", + "six", + "tqdm", + "yoyo-migrations" +] [project.urls] "Homepage" = "https://github.com/biocommons/biocommons.seqrepo" "Bug Tracker" = "https://github.com/biocommons/biocommons.seqrepo/issues" - [build-system] requires = [ - "setuptools >= 65.3", - "setuptools_scm[toml] ~= 7.0" - ] + "setuptools >= 69.0.2", + "setuptools_scm[toml] >= 8.0" +] build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index 5b78a58..d0fb3f5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ +[metadata] +name = biocommons.seqrepo + [options] include_package_data = True packages = find_namespace: @@ -5,17 +8,6 @@ package_dir = = src zip_safe = True -install_requires = - bioutils>0.4 - coloredlogs - ipython - pysam - requests - requests_html - six - tqdm - yoyo-migrations - [options.extras_require] dev = bandit @@ -29,7 +21,7 @@ dev = setuptools_scm vcrpy wheel -docs = +docs = mkdocs [options.entry_points]