mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 06:46:16 +00:00
Consolidated httpbin version string into a single location in file VERSION.
Also added the new VERSION file to the manifest. Signed-off-by: Brett Randall <javabrett@gmail.com>
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
include README.rst LICENSE AUTHORS requirements.txt test_httpbin.py
|
||||
include httpbin/VERSION README.rst LICENSE AUTHORS requirements.txt test_httpbin.py
|
||||
recursive-include httpbin/templates *
|
||||
recursive-include httpbin/static *
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0.9.0
|
||||
+4
-1
@@ -30,6 +30,9 @@ from .helpers import get_headers, status_code, get_dict, get_request_range, chec
|
||||
from .utils import weighted_choice
|
||||
from .structures import CaseInsensitiveDict
|
||||
|
||||
with open(os.path.join(os.path.realpath(os.path.dirname(__file__)), 'VERSION')) as version_file:
|
||||
version = version_file.read().strip()
|
||||
|
||||
ENV_COOKIES = (
|
||||
'_gauges_unique',
|
||||
'_gauges_unique_year',
|
||||
@@ -78,7 +81,7 @@ template = {
|
||||
"url": "https://kennethreitz.org",
|
||||
},
|
||||
# "termsOfService": "http://me.com/terms",
|
||||
"version": "0.9.0"
|
||||
"version": version
|
||||
},
|
||||
"host": "httpbin.org", # overrides localhost:5000
|
||||
"basePath": "/", # base bash for blueprint registration
|
||||
|
||||
@@ -5,9 +5,12 @@ import io
|
||||
# long_description = io.open(
|
||||
# os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read()
|
||||
|
||||
with open(os.path.join(os.path.realpath(os.path.dirname(__file__)), 'httpbin', 'VERSION')) as version_file:
|
||||
version = version_file.read().strip()
|
||||
|
||||
setup(
|
||||
name="httpbin",
|
||||
version="0.9.0",
|
||||
version=version,
|
||||
description="HTTP Request and Response Service",
|
||||
# long_description=long_description,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user