2021-02-10 05:16:38 +01:00
|
|
|
import os
|
2011-02-10 14:32:19 +01:00
|
|
|
from setuptools import setup, find_packages
|
2021-02-10 05:16:38 +01:00
|
|
|
HERE = os.path.dirname(__file__)
|
2011-02-10 14:32:19 +01:00
|
|
|
|
2021-02-10 05:16:38 +01:00
|
|
|
version = "2.0.3"
|
|
|
|
|
|
|
|
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()
|
2011-02-10 14:32:19 +01:00
|
|
|
|
|
|
|
setup(
|
2019-11-22 15:59:22 +01:00
|
|
|
name="ckanext-googleanalytics",
|
|
|
|
version=version,
|
|
|
|
description="Add GA tracking and reporting to CKAN instance",
|
|
|
|
long_description="""\
|
2011-02-10 14:32:19 +01:00
|
|
|
""",
|
2019-11-22 15:59:22 +01:00
|
|
|
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=[],
|
2021-02-10 05:16:38 +01:00
|
|
|
extras_require=extras_require,
|
2019-11-22 15:59:22 +01:00
|
|
|
entry_points="""
|
2011-02-10 14:32:19 +01:00
|
|
|
[ckan.plugins]
|
|
|
|
# Add plugins here, eg
|
2011-04-04 12:50:18 +02:00
|
|
|
googleanalytics=ckanext.googleanalytics.plugin:GoogleAnalyticsPlugin
|
2011-04-04 18:44:39 +02:00
|
|
|
|
|
|
|
[paste.paster_command]
|
|
|
|
loadanalytics = ckanext.googleanalytics.commands:LoadAnalytics
|
2011-04-07 11:24:22 +02:00
|
|
|
initdb = ckanext.googleanalytics.commands:InitDB
|
2011-02-10 14:32:19 +01:00
|
|
|
""",
|
|
|
|
)
|