From 2b6a12c28e0c81bfb13b7e984144f0b0f5461484 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Mon, 9 Jun 2025 22:02:09 +0300 Subject: [PATCH 1/3] Fix Python 3.13 --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index bc228e473..aa30a2508 100644 --- a/setup.py +++ b/setup.py @@ -75,8 +75,7 @@ def write_version_py(): def get_version(): with open(version_file, 'r') as f: - exec(compile(f.read(), version_file, 'exec')) - return locals()['__version__'] + return f.read().split("'")[1] def make_cuda_ext(name, module, sources, sources_cuda=None): From 1b26b226bcbace972c3f661d62dd5edbc1e0138f Mon Sep 17 00:00:00 2001 From: Disty0 Date: Wed, 10 Sep 2025 18:56:28 +0300 Subject: [PATCH 2/3] Add pyproject.toml --- pyproject.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..31ae3194c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = [ + "addict", "future", "lmdb", "numpy", "opencv-python", "Pillow", + "pyyaml", "requests", "scikit-image", "scipy", "tb-nightly", + "torch", "torchvision", "tqdm", "yapf", "cython", "setuptools" +] +build-backend = "setuptools.build_meta" +packages = ["basicsr"] + +[project] +name = "basicsr" +version = "1.4.2" +authors = [ + { name="Xintao Wang", email="xintao.wang@outlook.com" }, +] +description = "Open Source Image and Video Super-Resolution Toolbox" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] +license = {text = "Apache-2.0"} + +[project.urls] +Homepage = "github.com/Disty0/BasicSR" +Issues = "https://github.com/XPixelGroup/BasicSR/issues" \ No newline at end of file From 23c1fb6f5c559ef5ce7ad657f2fa56e41b121754 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Thu, 11 Sep 2025 21:08:59 +0300 Subject: [PATCH 3/3] fix dependencies --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 31ae3194c..3dc5baa50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,5 @@ [build-system] -requires = [ - "addict", "future", "lmdb", "numpy", "opencv-python", "Pillow", - "pyyaml", "requests", "scikit-image", "scipy", "tb-nightly", - "torch", "torchvision", "tqdm", "yapf", "cython", "setuptools" -] +requires = ["setuptools"] build-backend = "setuptools.build_meta" packages = ["basicsr"] @@ -22,6 +18,12 @@ classifiers = [ ] license = {text = "Apache-2.0"} +dependencies = [ + "addict", "future", "lmdb", "numpy", "opencv-python", "Pillow", + "pyyaml", "requests", "scikit-image", "scipy", "tb-nightly", + "torch", "torchvision", "tqdm", "yapf", "cython" +] + [project.urls] Homepage = "github.com/Disty0/BasicSR" Issues = "https://github.com/XPixelGroup/BasicSR/issues" \ No newline at end of file