mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	Add testing and document support for Python 3.7
Python 3.7 was released on June 27, 2018. https://docs.python.org/3/whatsnew/3.7.html
This commit is contained in:
		
							parent
							
								
									6becf0ef55
								
							
						
					
					
						commit
						61e644049f
					
				| 
						 | 
				
			
			@ -21,6 +21,9 @@ environment:
 | 
			
		|||
      - {PYVER: "35", PYTHON_ARCH: "64"}
 | 
			
		||||
      - {PYVER: "36", PYTHON_ARCH: "32"}
 | 
			
		||||
      - {PYVER: "36", PYTHON_ARCH: "64"}
 | 
			
		||||
      - {PYVER: "37", PYTHON_ARCH: "32"}
 | 
			
		||||
      - {PYVER: "37", PYTHON_ARCH: "64"}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    OPENSSL_VERSION: "1_0_2n"
 | 
			
		||||
    POSTGRES_VERSION: "10_1"
 | 
			
		||||
| 
						 | 
				
			
			@ -64,6 +67,7 @@ init:
 | 
			
		|||
    - IF "%PYVER%"=="34" SET VS_VER=10.0
 | 
			
		||||
    - IF "%PYVER%"=="35" SET VS_VER=14.0
 | 
			
		||||
    - IF "%PYVER%"=="36" SET VS_VER=14.0
 | 
			
		||||
    - IF "%PYVER%"=="37" SET VS_VER=14.0
 | 
			
		||||
 | 
			
		||||
    - IF "%VS_VER%"=="10.0" IF "%PYTHON_ARCH%"=="64" SET DISTUTILS_USE_SDK=1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								.travis.yml
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -1,15 +1,17 @@
 | 
			
		|||
# Travis CI configuration file for psycopg2
 | 
			
		||||
 | 
			
		||||
dist: trusty
 | 
			
		||||
dist: xenial
 | 
			
		||||
sudo: required
 | 
			
		||||
language: python
 | 
			
		||||
 | 
			
		||||
python:
 | 
			
		||||
  - 2.7
 | 
			
		||||
  - 3.7-dev
 | 
			
		||||
  - 3.6
 | 
			
		||||
  - 3.5
 | 
			
		||||
  - 3.4
 | 
			
		||||
matrix:
 | 
			
		||||
  include:
 | 
			
		||||
    - python: 2.7
 | 
			
		||||
    - python: 3.7
 | 
			
		||||
    - python: 3.6
 | 
			
		||||
    - python: 3.5
 | 
			
		||||
    - python: 3.4
 | 
			
		||||
      dist: trusty
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
  - pip install -U pip setuptools wheel
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,7 +33,7 @@ The current `!psycopg2` implementation supports:
 | 
			
		|||
    NOTE: keep consistent with setup.py and the /features/ page.
 | 
			
		||||
 | 
			
		||||
- Python version 2.7
 | 
			
		||||
- Python 3 versions from 3.4 to 3.6
 | 
			
		||||
- Python 3 versions from 3.4 to 3.7
 | 
			
		||||
- PostgreSQL server versions from 7.4 to 10
 | 
			
		||||
- PostgreSQL client library version from 9.1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ create () {
 | 
			
		|||
    export PGBIN="$PGDIR/bin"
 | 
			
		||||
 | 
			
		||||
    # install postgres versions not available on the image
 | 
			
		||||
    if (( "$VERNUM" < 902 || "$VERNUM" > 906 )); then
 | 
			
		||||
    if [[ ! -d "${PGDIR}" ]]; then
 | 
			
		||||
        wget -O - http://initd.org/psycopg/upload/postgresql/postgresql-${PACKAGE}.tar.bz2 \
 | 
			
		||||
            | sudo tar xjf - -C /usr/lib/postgresql
 | 
			
		||||
    fi
 | 
			
		||||
| 
						 | 
				
			
			@ -109,7 +109,6 @@ if [[ -z "$DONT_TEST_PRESENT" ]]; then
 | 
			
		|||
    create 9.6
 | 
			
		||||
    create 9.5
 | 
			
		||||
    create 9.4
 | 
			
		||||
    create 9.3
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Unsupported postgres versions that we still support
 | 
			
		||||
| 
						 | 
				
			
			@ -124,6 +123,7 @@ if [[ -n "$TEST_PAST" ]]; then
 | 
			
		|||
    create 9.0
 | 
			
		||||
    create 9.1
 | 
			
		||||
    create 9.2
 | 
			
		||||
    create 9.3
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Postgres built from master
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -67,6 +67,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 :: Implementation :: CPython
 | 
			
		||||
Programming Language :: C
 | 
			
		||||
Programming Language :: SQL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user