From 1f5057c185bf5299d2a0cc4734f1616d00166870 Mon Sep 17 00:00:00 2001 From: Gemini Cloud AI Date: Fri, 12 Sep 2025 16:58:18 +0200 Subject: [PATCH 1/3] Hardcode version in setup.py to fix setuptools_scm issue --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0b2cdb5..33692e2 100644 --- a/setup.py +++ b/setup.py @@ -12,10 +12,9 @@ author='William Mannard', description='Python script to simulate the display from "The Matrix" in terminal', long_description=readme, - use_scm_version=True, - setup_requires=['setuptools_scm'], + version='0.0.1', py_modules=['unimatrix'], entry_points={ 'console_scripts': ['unimatrix=unimatrix:main'], } -) +) \ No newline at end of file From 9b984aba9af9351b5527c5c40d9b5920846d0618 Mon Sep 17 00:00:00 2001 From: Gemini Cloud AI <222482969+Manamama-Gemini-Cloud-AI-01@users.noreply.github.com> Date: Fri, 12 Sep 2025 17:13:34 +0200 Subject: [PATCH 2/3] Fix: Address setuptools_scm TypeError and deprecation warning --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..638dd9c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" From 65180a17daa0e3a192a6af534a5b841abe1d79e4 Mon Sep 17 00:00:00 2001 From: Gemini Cloud AI <222482969+Manamama-Gemini-Cloud-AI-01@users.noreply.github.com> Date: Fri, 12 Sep 2025 17:22:13 +0200 Subject: [PATCH 3/3] Update version to 0.1.0 and add modern installation instructions to README.md --- README.md | 19 +++++++++++++++++++ setup.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e43d4da..173e1f0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,25 @@ $ unimatrix -n -s 96 -l o ``` ## Install +### Modern Python Installation (Recommended) + +Unimatrix now uses modern Python packaging standards with `pyproject.toml`, allowing for a robust installation via `pip` directly from the source directory. + +1. **Clone the repository:** + ```bash + git clone https://github.com/will8211/unimatrix.git + cd unimatrix + ``` +2. **Install using pip:** + ```bash + pip install . + ``` + +Alternatively, you can install directly from the GitHub repository: +```bash +pip install git+https://github.com/will8211/unimatrix.git +``` + Linux users can use curl to install: ``` sudo curl -L https://raw.githubusercontent.com/will8211/unimatrix/master/unimatrix.py -o /usr/local/bin/unimatrix diff --git a/setup.py b/setup.py index 33692e2..5f254b9 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ author='William Mannard', description='Python script to simulate the display from "The Matrix" in terminal', long_description=readme, - version='0.0.1', + version='0.1.0', py_modules=['unimatrix'], entry_points={ 'console_scripts': ['unimatrix=unimatrix:main'],