from setuptools import setup import re # define __version__ and __minor_version__ from djrill/_version.py, # but without importing from djrill (which would break setup) with open("djrill/_version.py") as f: code = compile(f.read(), "djrill/_version.py", 'exec') exec(code) def long_description_from_readme(rst): # Patch up some rest substitution variables (references only - not definitions): rst = re.sub(r'(?, Chris Jones ", author_email="kenneth@brack3t.com", url="https://github.com/brack3t/Djrill/", license=license_text, packages=["djrill"], zip_safe=False, install_requires=["requests", "django"], include_package_data=True, test_suite="runtests.runtests", tests_require=["mock"], classifiers=[ "Programming Language :: Python", "License :: OSI Approved :: BSD License", "Topic :: Software Development :: Libraries :: Python Modules", "Framework :: Django", "Environment :: Web Environment", ], long_description=long_description, )