diff options
author | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
commit | ccc722b7ed330198d82a3cf28ead76d6d107a70a (patch) | |
tree | 7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/python-setuptools-scm | |
parent | 9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff) |
added java
Diffstat (limited to 'repo/python-setuptools-scm')
-rw-r--r-- | repo/python-setuptools-scm/deprecation-warning.patch | 10 | ||||
-rw-r--r-- | repo/python-setuptools-scm/python-setuptools-scm.xibuild | 23 | ||||
-rw-r--r-- | repo/python-setuptools-scm/test_integration.patch | 11 |
3 files changed, 44 insertions, 0 deletions
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): |