-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from akx/py36
Python 3.6 compatibility
- Loading branch information
Showing
4 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
from setuptools import setup, find_packages | ||
from setuptools.command.test import test as TestCommand | ||
import sys | ||
|
||
from setuptools import find_packages, setup | ||
from setuptools.command.test import test as TestCommand | ||
|
||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
@@ -25,15 +26,10 @@ def run_tests(self): | |
errno = pytest.main(self.test_args) | ||
sys.exit(errno) | ||
|
||
install_requires = ['six'] | ||
try: | ||
import enum | ||
except ImportError: | ||
install_requires.append('enum34') | ||
|
||
setup( | ||
name='django-enumfields', | ||
version='0.8.2', | ||
version='0.8.3', | ||
author='HZDG', | ||
author_email='[email protected]', | ||
description='Real Python Enums for Django.', | ||
|
@@ -55,12 +51,16 @@ def run_tests(self): | |
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
'Topic :: Internet :: WWW/HTTP', | ||
], | ||
install_requires=install_requires, | ||
install_requires=['six'], | ||
tests_require=[ | ||
'pytest-django<3.0', | ||
'Django', | ||
], | ||
extras_require={ | ||
':python_version<"3.4"': ['enum34'], | ||
}, | ||
cmdclass={'test': PyTest}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters