from setuptools import find_packages, setup def to_rst(path): try: from pypandoc import convert return convert(path, "rst") except ImportError: print("pypandoc module not found, can not convert Markdown to RST") return open(path, "r").read() def to_array(path): with open(path, "r") as file: return [r for r in file.read().split("\n") if r] setup( name="aircox", version="0.9", license="GPLv3", author="bkfox", description="Aircox is a radio programs manager including tools and cms", long_description=to_rst("README.md"), url="https://github.com/bkfox/aircox", packages=find_packages(), include_package_data=True, install_requires=to_array("requirements.txt"), classifiers=[ "Framework :: Django", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", ], )