Compare commits
	
		
			7 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 5930bb67a6 | ||
|   | 4c360f43fd | ||
|   | 6387f5ddc9 | ||
|   | 23a0308d40 | ||
|   | a7d563d566 | ||
|   | f2d91bd4d2 | ||
|   | 8c628c69fb | 
| @@ -1 +1 @@ | |||||||
| __version__ = "19.12.4" | __version__ = "19.12.5" | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								setup.py
									
									
									
									
									
								
							| @@ -5,6 +5,7 @@ import codecs | |||||||
| import os | import os | ||||||
| import re | import re | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| from distutils.util import strtobool | from distutils.util import strtobool | ||||||
|  |  | ||||||
| from setuptools import setup | from setuptools import setup | ||||||
| @@ -24,6 +25,7 @@ class PyTest(TestCommand): | |||||||
|  |  | ||||||
|     def run_tests(self): |     def run_tests(self): | ||||||
|         import shlex |         import shlex | ||||||
|  |  | ||||||
|         import pytest |         import pytest | ||||||
|  |  | ||||||
|         errno = pytest.main(shlex.split(self.pytest_args)) |         errno = pytest.main(shlex.split(self.pytest_args)) | ||||||
| @@ -38,7 +40,9 @@ def open_local(paths, mode="r", encoding="utf8"): | |||||||
|  |  | ||||||
| with open_local(["sanic", "__version__.py"], encoding="latin1") as fp: | with open_local(["sanic", "__version__.py"], encoding="latin1") as fp: | ||||||
|     try: |     try: | ||||||
|         version = re.findall(r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M)[0] |         version = re.findall( | ||||||
|  |             r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M | ||||||
|  |         )[0] | ||||||
|     except IndexError: |     except IndexError: | ||||||
|         raise RuntimeError("Unable to determine version.") |         raise RuntimeError("Unable to determine version.") | ||||||
|  |  | ||||||
| @@ -68,9 +72,11 @@ setup_kwargs = { | |||||||
|     ], |     ], | ||||||
| } | } | ||||||
|  |  | ||||||
| env_dependency = '; sys_platform != "win32" ' 'and implementation_name == "cpython"' | env_dependency = ( | ||||||
|  |     '; sys_platform != "win32" ' 'and implementation_name == "cpython"' | ||||||
|  | ) | ||||||
| ujson = "ujson>=1.35" + env_dependency | ujson = "ujson>=1.35" + env_dependency | ||||||
| uvloop = "uvloop>=0.5.3" + env_dependency | uvloop = "uvloop>=0.5.3,<0.15.0" + env_dependency | ||||||
|  |  | ||||||
| requirements = [ | requirements = [ | ||||||
|     "httptools>=0.0.10", |     "httptools>=0.0.10", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user