From 043c81adf5c7f6b3fdd7ba6a1510928a0eb4c00b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 15 Feb 2018 10:01:46 -0600 Subject: [PATCH] Replace `execfile()` usage per python 3 --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f4f5d06..c013306 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -22,13 +21,14 @@ # ################################################################################ +from __future__ import unicode_literals, absolute_import import os.path from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) -execfile(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')) +exec(open(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')).read()) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()