mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
d473f4abc9
* 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
15 lines
551 B
Python
Executable File
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))
|