Skip to content

Commit

Permalink
fix python version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgatis committed Apr 20, 2022
1 parent 92e768c commit 8bc1627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions rembg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import sys

if not (sys.version_info.major == 3 and sys.version_info.minor == 9):
print("Python 3.9.* is required", file=sys.stderr)
sys.exit(1)

from . import _version

__version__ = _version.get_versions()["version"]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
author_email="danielgatis@gmail.com",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
],
keywords="remove, background, u2net",
packages=["rembg"],
python_requires=">=3.8, <4",
python_requires="~=3.9.0",
install_requires=requireds,
entry_points={
"console_scripts": [
Expand Down

0 comments on commit 8bc1627

Please sign in to comment.