import os

from setuptools import setup, find_packages

# For development and local builds use this version number, but for real builds replace it
# with the tag found in the environment
package_version = "4.0.0.dev0"
if 'BITBUCKET_TAG' in os.environ:
    package_version = os.environ['BITBUCKET_TAG'].lstrip('v')
elif 'BUILD_SOURCEBRANCH' in os.environ:
    full_tag_prefix = 'refs/tags/v'
    package_version = os.environ['BUILD_SOURCEBRANCH'][len(full_tag_prefix):]

setup(
    name="assemblyline_v4_p2compat",
    version=package_version,
    description="Assemblyline 4 python2 service compatibility layer",
    long_description="This package provides common functionalities for python2 only services.",
    url="https://bitbucket.org/cse-assemblyline/assemblyline_v4_p2compat/",
    author="CCCS Assemblyline development team",
    author_email="<EMAIL>",
    license="MIT",
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7'
    ],
    keywords="assemblyline malware gc canada cse-cst cse cst cyber cccs",
    packages=find_packages(exclude=['test/*']),
    install_requires=[
        'PyYAML',
        'netifaces',
        'easydict',
        'chardet'
    ],
    package_data={
        '': []
    }
)

import os

from setuptools import setup, find_packages

# For development and local builds use this version number, but for real builds replace it
# with the tag found in the environment
package_version = "4.0.0.dev0"
if 'BITBUCKET_TAG' in os.environ:
    package_version = os.environ['BITBUCKET_TAG'].lstrip('v')
elif 'BUILD_SOURCEBRANCH' in os.environ:
    full_tag_prefix = 'refs/tags/v'
    package_version = os.environ['BUILD_SOURCEBRANCH'][len(full_tag_prefix):]

setup(
    name="assemblyline_v4_p2compat",
    version=package_version,
    description="Assemblyline 4 python2 service compatibility layer",
    long_description="This package provides common functionalities for python2 only services.",
    url="https://bitbucket.org/cse-assemblyline/assemblyline_v4_p2compat/",
    author="CCCS Assemblyline development team",
    author_email="<EMAIL>",
    license="MIT",
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7'
    ],
    keywords="assemblyline malware gc canada cse-cst cse cst cyber cccs",
    packages=find_packages(exclude=['test/*']),
    install_requires=[
        'PyYAML',
        'netifaces',
        'easydict',
        'chardet'
    ],
    package_data={
        '': []
    }
)

# For development and local builds use this version number, but for real builds replace it # with the tag found in the environment