diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..9c29b8fd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" +packages = ["gfpgan"] + +[project] +name = "gfpgan" +version = "1.3.8" +authors = [ + { name="Xintao Wang", email="xintao.wang@outlook.com" }, +] +description = "GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] +license = {text = "Apache-2.0"} + +dependencies = [ + "basicsr", "facexlib", "lmdb", "numpy", "opencv-python", "pyyaml", + "scipy", "tb-nightly", "torch", "torchvision", "tqdm", "yapf", "cython" +] + +[project.urls] +Homepage = "github.com/Disty0/GFPGAN" +Issues = "https://github.com/TencentARC/GFPGAN/issues" \ No newline at end of file diff --git a/setup.py b/setup.py index 474e9188..4fa8c255 100644 --- a/setup.py +++ b/setup.py @@ -68,8 +68,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 get_requirements(filename='requirements.txt'):