<filename>setup.py
import setuptools
import re
import os
import ast

# parse version from locust/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), "nima_cast", "__init__.py")
with open(_init_file, 'rb') as f:
    version = str(ast.literal_eval(_version_re.search(
        f.read().decode('utf-8')).group(1)))

setuptools.setup(
    name="nima_cast",
    version=version,
    url="https://github.com/nimamahmoudi/nima_cast",
    author="<NAME>",
    author_email="<EMAIL>",
    description="This is a project that could connect to a minio server and sream the conents on a chromecast device.",
    long_description=open('README.rst').read(),
    packages=setuptools.find_packages(),
    install_requires=['minio', 'PyChromecast>=3.2.2'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    entry_points={
        'console_scripts': [
            'nima_cast = nima_cast.nima_cast_cmd:main',
        ]
    },

)


<filename>setup.py
import setuptools
import re
import os
import ast

# parse version from locust/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
_init_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), "nima_cast", "__init__.py")
with open(_init_file, 'rb') as f:
    version = str(ast.literal_eval(_version_re.search(
        f.read().decode('utf-8')).group(1)))

setuptools.setup(
    name="nima_cast",
    version=version,
    url="https://github.com/nimamahmoudi/nima_cast",
    author="<NAME>",
    author_email="<EMAIL>",
    description="This is a project that could connect to a minio server and sream the conents on a chromecast device.",
    long_description=open('README.rst').read(),
    packages=setuptools.find_packages(),
    install_requires=['minio', 'PyChromecast>=3.2.2'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    entry_points={
        'console_scripts': [
            'nima_cast = nima_cast.nima_cast_cmd:main',
        ]
    },

)


# parse version from locust/__init__.py