How to use the s2protocol.build.game_version function in s2protocol

To help you get started, we’ve selected a few s2protocol examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Blizzard / s2protocol / setup.py View on Github external
#!/usr/bin/env python
import sys
from setuptools import setup
import s2protocol.build

install_requires = [
    'mpyq >= 0.2.2',
]

if float(sys.version[:3]) < 2.7:
    install_requires.append('argparse')


setup(
    name='s2protocol',
    version=s2protocol.build.game_version(),
    author='Blizzard Entertainment',
    author_email='s2github@blizzard.com',
    url='https://github.com/Blizzard/s2protocol',
    description='Python library to decode StarCraft II replay protocols',
    packages=[
        's2protocol',
        's2protocol.versions',
    ],
    scripts=['s2protocol/s2_cli.py'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: End Users/Desktop',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',