mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Drop support for Python 3.2
This commit is contained in:
		
							parent
							
								
									dbe9f85c7d
								
							
						
					
					
						commit
						85cf6d3140
					
				| 
						 | 
					@ -12,7 +12,6 @@ python:
 | 
				
			||||||
  - 3.5
 | 
					  - 3.5
 | 
				
			||||||
  - 2.7
 | 
					  - 2.7
 | 
				
			||||||
  - "2.7_with_system_site_packages" # For PyQt4
 | 
					  - "2.7_with_system_site_packages" # For PyQt4
 | 
				
			||||||
  - 3.2
 | 
					 | 
				
			||||||
  - 3.3
 | 
					  - 3.3
 | 
				
			||||||
  - 3.4
 | 
					  - 3.4
 | 
				
			||||||
  - nightly
 | 
					  - nightly
 | 
				
			||||||
| 
						 | 
					@ -26,9 +25,7 @@ install:
 | 
				
			||||||
    # Pyroma tests sometimes hang on PyPy; skip
 | 
					    # Pyroma tests sometimes hang on PyPy; skip
 | 
				
			||||||
  - if [ $TRAVIS_PYTHON_VERSION != "pypy" ]; then travis_retry pip install pyroma; fi
 | 
					  - if [ $TRAVIS_PYTHON_VERSION != "pypy" ]; then travis_retry pip install pyroma; fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Coverage 4.0 doesn't support Python 3.2
 | 
					  - "travis_retry pip install coverage"
 | 
				
			||||||
  - if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
 | 
					 | 
				
			||||||
  - if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # docs only on python 2.7
 | 
					  # docs only on python 2.7
 | 
				
			||||||
  - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then travis_retry pip install -r requirements.txt ; fi
 | 
					  - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then travis_retry pip install -r requirements.txt ; fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,7 @@ Notes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. note:: Pillow >= 2.0.0 < 3.5.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4, 3.5
 | 
					.. note:: Pillow >= 2.0.0 < 3.5.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4, 3.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. note:: Pillow >= 3.5.0 supports Python versions 2.7, 3.2, 3.3, 3.4, 3.5
 | 
					.. note:: Pillow >= 3.5.0 supports Python versions 2.7, 3.3, 3.4, 3.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Basic Installation
 | 
					Basic Installation
 | 
				
			||||||
------------------
 | 
					------------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
					@ -74,20 +74,7 @@ def _find_include_file(self, include):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _find_library_file(self, library):
 | 
					def _find_library_file(self, library):
 | 
				
			||||||
    # Fix for 3.2.x <3.2.4, 3.3.0, shared lib extension is the python shared
 | 
					    ret = self.compiler.find_library_file(self.compiler.library_dirs, library)
 | 
				
			||||||
    # lib extension, not the system shared lib extension: e.g. .cpython-33.so
 | 
					 | 
				
			||||||
    # vs .so. See Python bug http://bugs.python.org/16754
 | 
					 | 
				
			||||||
    if 'cpython' in self.compiler.shared_lib_extension:
 | 
					 | 
				
			||||||
        _dbg('stripping cpython from shared library extension %s',
 | 
					 | 
				
			||||||
             self.compiler.shared_lib_extension)
 | 
					 | 
				
			||||||
        existing = self.compiler.shared_lib_extension
 | 
					 | 
				
			||||||
        self.compiler.shared_lib_extension = "." + existing.split('.')[-1]
 | 
					 | 
				
			||||||
        ret = self.compiler.find_library_file(self.compiler.library_dirs,
 | 
					 | 
				
			||||||
                                              library)
 | 
					 | 
				
			||||||
        self.compiler.shared_lib_extension = existing
 | 
					 | 
				
			||||||
    else:
 | 
					 | 
				
			||||||
        ret = self.compiler.find_library_file(self.compiler.library_dirs,
 | 
					 | 
				
			||||||
                                              library)
 | 
					 | 
				
			||||||
    if ret:
 | 
					    if ret:
 | 
				
			||||||
        _dbg('Found library %s at %s', (library, ret))
 | 
					        _dbg('Found library %s at %s', (library, ret))
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
| 
						 | 
					@ -772,7 +759,6 @@ try:
 | 
				
			||||||
              "Programming Language :: Python :: 2",
 | 
					              "Programming Language :: Python :: 2",
 | 
				
			||||||
              "Programming Language :: Python :: 2.7",
 | 
					              "Programming Language :: Python :: 2.7",
 | 
				
			||||||
              "Programming Language :: Python :: 3",
 | 
					              "Programming Language :: Python :: 3",
 | 
				
			||||||
              "Programming Language :: Python :: 3.2",
 | 
					 | 
				
			||||||
              "Programming Language :: Python :: 3.3",
 | 
					              "Programming Language :: Python :: 3.3",
 | 
				
			||||||
              "Programming Language :: Python :: 3.4",
 | 
					              "Programming Language :: Python :: 3.4",
 | 
				
			||||||
              "Programming Language :: Python :: 3.5",
 | 
					              "Programming Language :: Python :: 3.5",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tox.ini
									
									
									
									
									
								
							| 
						 | 
					@ -4,7 +4,7 @@
 | 
				
			||||||
# and then run "tox" from this directory.
 | 
					# and then run "tox" from this directory.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tox]
 | 
					[tox]
 | 
				
			||||||
envlist = py27, py32, py33, py34, py35
 | 
					envlist = py27, py33, py34, py35
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv]
 | 
					[testenv]
 | 
				
			||||||
commands =
 | 
					commands =
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,7 @@ The build routines expect Python to be installed at C:\PythonXX for
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Download Python 3.4, install it, and add it to the path. This is the
 | 
					Download Python 3.4, install it, and add it to the path. This is the
 | 
				
			||||||
Python that we will use to bootstrap the build process. (The download
 | 
					Python that we will use to bootstrap the build process. (The download
 | 
				
			||||||
routines are using 3.2+ features, and installing 3.4 gives us pip and
 | 
					routines are using 3 features, and installing 3.4 gives us pip and
 | 
				
			||||||
virtualenv as well, reducing the number of packages that we need to
 | 
					virtualenv as well, reducing the number of packages that we need to
 | 
				
			||||||
install.)
 | 
					install.)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@ from fetch import fetch
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    for version in ['2.7.10', '3.2.5', '3.3.5', '3.4.3']:
 | 
					    for version in ['2.7.10', '3.3.5', '3.4.3']:
 | 
				
			||||||
        for platform in ['', '.amd64']:
 | 
					        for platform in ['', '.amd64']:
 | 
				
			||||||
            for extension in ['', '.asc']:
 | 
					            for extension in ['', '.asc']:
 | 
				
			||||||
                fetch('https://www.python.org/ftp/python/%s/python-%s%s.msi%s'
 | 
					                fetch('https://www.python.org/ftp/python/%s/python-%s%s.msi%s'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user