Skip to content

Commit

Permalink
change name to lupapy
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Oct 15, 2024
1 parent d78705c commit 4d43127
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
matrix:
os:
- windows-2019
# - ubuntu-20.04
# - macos-latest
- ubuntu-20.04
- macos-13
- macos-latest
python-version:
- "2.7"
- "3.13"
Expand All @@ -31,9 +32,9 @@ jobs:
- "pypy-3.10"
lua-version:
- "bundle"
# - "lua5.3"
# - "lua5.2"
# - "luajit-5.1"
- "lua5.3"
- "lua5.2"
- "luajit-5.1"

exclude:
- os: windows-2019
Expand All @@ -49,6 +50,8 @@ jobs:
- os: windows-2019
lua-version: luajit-5.1

- os: macos-13
python-version: "2.7"
- os: macos-latest
python-version: "2.7"
- os: macos-latest
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:
run: |
MATRIX=$(
{
cibuildwheel --print-build-identifiers --platform windows \
cibuildwheel --print-build-identifiers --platform linux \
| jq -nRc '{"only": inputs, "os": "ubuntu-latest"}' \
&& cibuildwheel --print-build-identifiers --platform macos \
| jq -nRc '{"only": inputs, "os": "macos-latest"}' \
&& cibuildwheel --print-build-identifiers --platform windows \
| jq -nRc '{"only": inputs, "os": "windows-2019"}'
} | jq -sc
)
Expand Down Expand Up @@ -158,6 +162,7 @@ jobs:
name: Make Github release
needs: [ upload_release_assets ]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

permissions:
contents: write # to create GitHub release (softprops/action-gh-release)
Expand All @@ -184,6 +189,7 @@ jobs:
name: Upload release to PyPI
needs: [ upload_release_assets ]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
environment:
name: pypi
permissions:
Expand All @@ -201,7 +207,6 @@ jobs:
name: sdist
path: dist

- name: Publish package distributions to PyPI
- name: "Publish lupa to test PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
13 changes: 10 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyLupa
Lupapy
======
This is a fork of the original `Lupa project`_, due to re-packaging reasons.
All credits go to original author of Lupa: **Stefan Behnel**.
Expand All @@ -7,13 +7,20 @@ All source code is untouched as in original repository, all issue and PR code
related should be submit to `Lupa project`_.

With this fork it is possible to take advantage of LuaJIT 2.1 under Windows,
only one difference is package name:
only one difference is package name **lupapy** instead of **lupa**.

.. _`Lupa project`: https://github.com/scoder/lupa

#) Install lupapy::

$ pip install lupapy


#) Usage:

.. code:: python
import pylupa.luajit21 as lupa
import lupa.luajit21 as lupa
print(f"Using {lupa.LuaRuntime().lua_implementation} (compiled with {lupa.LUA_VERSION})")
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
except ImportError:
from distutils.core import setup, Extension

VERSION = '2.4'
VERSION = '2.2'

extra_setup_args = {}

Expand Down Expand Up @@ -497,7 +497,7 @@ def write_file(filename, content):
}

setup(
name="pylupa-test",
name="lupapy",
version=VERSION,
author="Stefan Behnel",
author_email="[email protected]",
Expand Down

0 comments on commit 4d43127

Please sign in to comment.