mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Added Py 3.8 support to appveyor build
VS 14 is the one to use: https://wiki.python.org/moin/WindowsCompilers Note that appveyor doesn't have Py 3.8 yet though.
This commit is contained in:
		
							parent
							
								
									4e13acdc88
								
							
						
					
					
						commit
						ade98c1359
					
				| 
						 | 
					@ -22,6 +22,11 @@ environment:
 | 
				
			||||||
      - {PY_VER: "34", PY_ARCH: "32"}
 | 
					      - {PY_VER: "34", PY_ARCH: "32"}
 | 
				
			||||||
      - {PY_VER: "34", PY_ARCH: "64"}
 | 
					      - {PY_VER: "34", PY_ARCH: "64"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # not supported by appveyor as of 2019-10-19
 | 
				
			||||||
 | 
					      # https://www.appveyor.com/docs/windows-images-software/#python
 | 
				
			||||||
 | 
					      # - {PY_VER: "38", PY_ARCH: "32"}
 | 
				
			||||||
 | 
					      # - {PY_VER: "38", PY_ARCH: "64"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    OPENSSL_VERSION: "1_1_1b"
 | 
					    OPENSSL_VERSION: "1_1_1b"
 | 
				
			||||||
    POSTGRES_VERSION: "11_2"
 | 
					    POSTGRES_VERSION: "11_2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -698,7 +698,7 @@ class Options:
 | 
				
			||||||
    def py_ver(self):
 | 
					    def py_ver(self):
 | 
				
			||||||
        """The Python version to build as 2 digits string."""
 | 
					        """The Python version to build as 2 digits string."""
 | 
				
			||||||
        rv = os.environ['PY_VER']
 | 
					        rv = os.environ['PY_VER']
 | 
				
			||||||
        assert rv in ('27', '34', '35', '36', '37'), rv
 | 
					        assert rv in ('27', '34', '35', '36', '37', '38'), rv
 | 
				
			||||||
        return rv
 | 
					        return rv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
| 
						 | 
					@ -773,9 +773,10 @@ class Options:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def vs_ver(self):
 | 
					    def vs_ver(self):
 | 
				
			||||||
 | 
					        # https://wiki.python.org/moin/WindowsCompilers
 | 
				
			||||||
        # Py 2.7 = VS Ver. 9.0 (VS 2008)
 | 
					        # Py 2.7 = VS Ver. 9.0 (VS 2008)
 | 
				
			||||||
        # Py 3.3, 3.4 = VS Ver. 10.0 (VS 2010)
 | 
					        # Py 3.3, 3.4 = VS Ver. 10.0 (VS 2010)
 | 
				
			||||||
        # Py 3.5, 3.6, 3.7 = VS Ver. 14.0 (VS 2015)
 | 
					        # Py 3.5--3.8 = VS Ver. 14.0 (VS 2015)
 | 
				
			||||||
        vsvers = {
 | 
					        vsvers = {
 | 
				
			||||||
            '27': '9.0',
 | 
					            '27': '9.0',
 | 
				
			||||||
            '33': '10.0',
 | 
					            '33': '10.0',
 | 
				
			||||||
| 
						 | 
					@ -783,6 +784,7 @@ class Options:
 | 
				
			||||||
            '35': '14.0',
 | 
					            '35': '14.0',
 | 
				
			||||||
            '36': '14.0',
 | 
					            '36': '14.0',
 | 
				
			||||||
            '37': '14.0',
 | 
					            '37': '14.0',
 | 
				
			||||||
 | 
					            '38': '14.0',
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return vsvers[self.py_ver]
 | 
					        return vsvers[self.py_ver]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user