From c426c7766e8ad9a7e22c14858d6dad503d28c9c5 Mon Sep 17 00:00:00 2001 From: Changaco Date: Tue, 21 Jun 2022 14:42:40 +0200 Subject: [PATCH] mark this project as obsolete --- README.rst | 2 ++ setuptools_scm_git_archive/__init__.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/README.rst b/README.rst index b0a8b01..ff75689 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,5 @@ +**This plugin is obsolete. ``setuptools_scm >= 7.0.0`` supports Git archives by itself.** + This is a `setuptools_scm `_ plugin that adds support for git archives (for example the ones GitHub automatically generates). diff --git a/setuptools_scm_git_archive/__init__.py b/setuptools_scm_git_archive/__init__.py index e271faf..c51abb0 100644 --- a/setuptools_scm_git_archive/__init__.py +++ b/setuptools_scm_git_archive/__init__.py @@ -1,11 +1,17 @@ from os.path import join import re +import warnings from setuptools_scm import Configuration from setuptools_scm.utils import data_from_mime, trace from setuptools_scm.version import meta, tags_to_versions +warnings.warn(DeprecationWarning( + "This plugin is obsolete. setuptools_scm >= 7.0.0 supports Git archives by itself." +)) + + tag_re = re.compile(r'(?<=\btag: )([^,]+)\b') # Define default config so call to meta() does not warn