Merge pull request #460 from javabrett/consolidate-version-string

Consolidate httpbin version string into a single location (VERSION)
This commit is contained in:
2018-07-04 11:07:08 -04:00
committed by GitHub
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
include README.md LICENSE AUTHORS test_httpbin.py
include httpbin/VERSION README.md LICENSE AUTHORS test_httpbin.py
recursive-include httpbin/templates *
recursive-include httpbin/static *
+1
View File
@@ -0,0 +1 @@
0.9.0
+4 -1
View File
@@ -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',
@@ -79,7 +82,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
+4 -1
View File
@@ -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,