Files
pydantic/tests/check_tag.py
T
Samuel Colvin d473f4abc9 cython (#548)
* user cython for fields.py, parse.py and validators.py, fix #547

* fix coverage

* no cython on windows

* speedup error_wrappers, more cython

* conditional validators

* more tweaks to validators.py

* add compiled check

* fix mypy and tweak

* benchmark with cython

* simplify anystr_strip_whitespace

* build binaries on travis

* fix travis manylinux builds

* correct test stages

* cibuildwheel to dist

* fix manylinux build

* don't upgrade pip on wheel build

* try a fix for cibuildwheel

* speedup deploy stage

* revert file rearrangement, cythonize main.py

* tweak main.py

* update docs and history

* fix deploy stage of travis

* Cythonize more files (#553)

* Cythonize more files

* Tests pass

* Fixed ordering

* Some code cleanup

* Every last file cythonized

* cython coverage

* upgrade cython and tweak build setup

* different build stages
2019-05-30 12:04:15 +01:00

15 lines
551 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
from importlib.machinery import SourceFileLoader
VERSION = SourceFileLoader('version', 'pydantic/version.py').load_module().VERSION
git_tag = os.getenv('TRAVIS_TAG')
if git_tag:
if git_tag.lower().lstrip('v') != str(VERSION).lower():
print('"TRAVIS_TAG" environment variable does not match package version: "%s" vs. "%s"' % (git_tag, VERSION))
sys.exit(1)
else:
print('"TRAVIS_TAG" environment variable matches package version: "%s" vs. "%s"' % (git_tag, VERSION))