From ccc722b7ed330198d82a3cf28ead76d6d107a70a Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:25:48 +0000 Subject: added java --- .../deprecation-warning.patch | 10 ++++++++++ .../python-setuptools-scm.xibuild | 23 ++++++++++++++++++++++ repo/python-setuptools-scm/test_integration.patch | 11 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 repo/python-setuptools-scm/deprecation-warning.patch create mode 100644 repo/python-setuptools-scm/python-setuptools-scm.xibuild create mode 100644 repo/python-setuptools-scm/test_integration.patch (limited to 'repo/python-setuptools-scm') diff --git a/repo/python-setuptools-scm/deprecation-warning.patch b/repo/python-setuptools-scm/deprecation-warning.patch new file mode 100644 index 0000000..cf7a2c3 --- /dev/null +++ b/repo/python-setuptools-scm/deprecation-warning.patch @@ -0,0 +1,10 @@ +--- ./tox.ini ++++ ./tox.ini +@@ -6,6 +6,7 @@ + filterwarnings= + error + ignore:.*tool\.setuptools_scm.* ++ ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning + markers= + issue(id): reference to github issue + skip_commit: allows to skip commiting in the helpers diff --git a/repo/python-setuptools-scm/python-setuptools-scm.xibuild b/repo/python-setuptools-scm/python-setuptools-scm.xibuild new file mode 100644 index 0000000..e81ca07 --- /dev/null +++ b/repo/python-setuptools-scm/python-setuptools-scm.xibuild @@ -0,0 +1,23 @@ +#!/bin/sh + +NAME="python-setuptools-scm" +DESC="The blessed package to manage your versions by scm tags" + +MAKEDEPS="python-packaging python-tomli" +DEPS="python-packaging python-tomli " + +PKG_VER=6.4.2 +SOURCE="https://files.pythonhosted.org/packages/source/s/setuptools_scm/setuptools_scm-$PKG_VER.tar.gz" +ADDITIONAL="test_integration.patch deprecation-warning.patch " + +prepare () { + apply_patches +} + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python-setuptools-scm/test_integration.patch b/repo/python-setuptools-scm/test_integration.patch new file mode 100644 index 0000000..09490b5 --- /dev/null +++ b/repo/python-setuptools-scm/test_integration.patch @@ -0,0 +1,11 @@ +--- ./testing/test_integration.py ++++ ./testing/test_integration.py +@@ -119,7 +119,7 @@ + monkeypatch.setenv(PRETEND_KEY, "dummy") + wd.write("setup.py", SETUP_PY_PLAIN) + assert wd.get_version(write_to="test.py") == "dummy" +- assert wd("python setup.py --version") == "0.0.0" ++ assert wd("python3 setup.py --version") == "0.0.0" + + + def test_own_setup_fails_on_old_python(monkeypatch): -- cgit v1.2.1