Skip to content

Commit

Permalink
fix: Unable to test on python versions < 3.6; don't claim support
Browse files Browse the repository at this point in the history
  • Loading branch information
erjel committed Nov 10, 2024
1 parent 4f354cc commit 8189b93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ It converts a set of input images into a new, much larger set of slightly altere

## Installation

The library supports python 2.7 and 3.4+.
The library supports python 3.6+.

### Installation: Anaconda

Expand Down
13 changes: 4 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,17 @@
"scikit-image>=0.14.2,<0.17",
"opencv-python-headless<4",
"opencv-python<4",
"imageio<=2.6.1; python_version<'3.5'",
"imageio; python_version>='3.5'",
"imageio",
"Shapely",
"imagecorruptions; python_version>='3.5'", # requires scikit-image 15+ which requires python>=3.5
"imagecorruptions",
]

ALT_INSTALL_REQUIRES = {
"opencv-python-headless": ["opencv-python", "opencv-contrib-python", "opencv-contrib-python-headless"],
}

DEV_REQUIRES = [
"pytest-subtests; python_version >= '3.4'",
"mock; python_version < '3.3'", # unittest.mock does not exist in older versions
"unittest2; python_version < '3.4'", # in 3.4, self.subTest was added
"pytest-subtests",
"xdoctest >= 0.7.2",
]

Expand Down Expand Up @@ -72,6 +69,7 @@ def get_install_requirements(main_requires, alternative_requires):
author_email="[email protected]",
url="https://github.com/aleju/imgaug",
download_url="https://github.com/aleju/imgaug/archive/0.4.0.tar.gz",
python_requires='>3.5',
install_requires=INSTALL_REQUIRES,
extras_require={
'dev': DEV_REQUIRES,
Expand All @@ -96,10 +94,7 @@ def get_install_requirements(main_requires, alternative_requires):
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Expand Down

0 comments on commit 8189b93

Please sign in to comment.