ckanext-googleanalytics_v2..../setup.py

47 lines
1.4 KiB
Python
Raw Normal View History

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-09-22 13:34:14 +02:00
version = "2.0.6"
2021-02-10 05:16:38 +01:00
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
2021-08-13 11:34:09 +02:00
# Get the long description from the relevant file
with open(os.path.join(HERE, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
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",
2021-08-13 11:34:09 +02:00
long_description=long_description,
long_description_content_type="text/markdown",
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
initdb = ckanext.googleanalytics.commands:InitDB
2011-02-10 14:32:19 +01:00
""",
)