.gear/lupa.spec | 69 ++++++++++++++++++++++ .gear/rules | 3 + .../tags/7d106f86c2e9ac1d015b289b1daa7062e4119e9c | 6 ++ .gear/tags/list | 1 + .gear/upstream/remotes | 3 + tox.ini | 4 +- 6 files changed, 84 insertions(+), 2 deletions(-) diff --git a/.gear/lupa.spec b/.gear/lupa.spec new file mode 100644 index 0000000..97c16e3 --- /dev/null +++ b/.gear/lupa.spec @@ -0,0 +1,69 @@ +%define _unpackaged_files_terminate_build 1 +%define oname lupa + +%def_with check + +Name: python3-module-%oname +Version: 1.9 +Release: alt1 + +Summary: Integrates the runtimes of Lua or LuaJIT2 into CPython +License: MIT +Group: Development/Python3 +# Source-git: https://github.com/scoder/lupa.git +Url: https://pypi.org/project/lupa/ + +Source: %name-%version.tar +Patch0: %name-%version-alt.patch + +BuildRequires(pre): rpm-build-python3 + +%ifarch ppc64le +# luajit doesn't officially support ppc64le +BuildRequires: liblua-devel +%else +BuildRequires: libluajit-devel +%endif + +BuildRequires: python3-module-Cython + +%if_with check +BuildRequires: python3(tox) +%endif + +%description +Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. It is a partial +rewrite of LunaticPython in Cython with some additional features such as proper +coroutine support. + +%prep +%setup +%autopatch -p1 + +# unbundle +rm -r ./third-party/* + +%build +%ifarch ppc64le +export PY_LUA_ARGS=--no-luajit +%endif + +%python3_build $PY_LUA_ARGS + +%install +%python3_install + +%check +export PIP_NO_BUILD_ISOLATION=no +export PIP_NO_INDEX=YES +export TOXENV=py3 +tox.py3 --sitepackages -vvr -- -v + +%files +%doc README.rst CHANGES.rst LICENSE.txt +%python3_sitelibdir/%oname/ +%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/ + +%changelog +* Thu Oct 15 2020 Stanislav Levin 1.9-alt1 +- Initial build for Sisyphus. diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..bf9a0e2 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/lupa.spec +tar: lupa-@version@:. +diff: lupa-@version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/7d106f86c2e9ac1d015b289b1daa7062e4119e9c b/.gear/tags/7d106f86c2e9ac1d015b289b1daa7062e4119e9c new file mode 100644 index 0000000..fa6135a --- /dev/null +++ b/.gear/tags/7d106f86c2e9ac1d015b289b1daa7062e4119e9c @@ -0,0 +1,6 @@ +object f81ea98bd43f0157e62ba78e92e7f04a12b77974 +type commit +tag lupa-1.9 +tagger Stefan Behnel 1576935432 +0100 + +1.9 diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..f348e86 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +7d106f86c2e9ac1d015b289b1daa7062e4119e9c lupa-1.9 diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes new file mode 100644 index 0000000..0790735 --- /dev/null +++ b/.gear/upstream/remotes @@ -0,0 +1,3 @@ +[remote "upstream"] + url = https://github.com/scoder/lupa.git + fetch = +refs/heads/*:refs/remotes/upstream/* diff --git a/tox.ini b/tox.ini index 2686c67..4d60872 100644 --- a/tox.ini +++ b/tox.ini @@ -7,12 +7,12 @@ envlist= py38, [testenv] +usedevelop=True deps= Cython setuptools passenv= SETUP_OPTIONS commands= - {envpython} setup.py --with-cython {env:SETUP_OPTIONS:} build install - {envpython} setup.py test + {envpython} -m unittest {posargs:} sitepackages=False