diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..3dc5baa50 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[build-system] +requires = ["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"} + +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 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):