import os from setuptools import setup, find_packages HERE = os.path.dirname(__file__) version = "2.0.7" extras_require = {} _extras_groups = [ ('requirements', 'requirements.txt'), ] for group, filepath in _extras_groups: with open(os.path.join(HERE, filepath), 'r') as f: extras_require[group] = f.readlines() # Get the long description from the relevant file with open(os.path.join(HERE, 'README.md')) as f: long_description = f.read() setup( name="ckanext-googleanalytics", version=version, description="Add GA tracking and reporting to CKAN instance", long_description=long_description, long_description_content_type="text/markdown", classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords="", author="Seb Bacon", author_email="seb.bacon@gmail.com", url="", license="", packages=find_packages(exclude=["ez_setup", "examples", "tests"]), namespace_packages=["ckanext", "ckanext.googleanalytics"], include_package_data=True, zip_safe=False, install_requires=[], extras_require=extras_require, entry_points=""" [ckan.plugins] # Add plugins here, eg googleanalytics=ckanext.googleanalytics.plugin:GoogleAnalyticsPlugin [paste.paster_command] loadanalytics = ckanext.googleanalytics.commands:LoadAnalytics initdb = ckanext.googleanalytics.commands:InitDB """, )