Skip to content

Commit 4c94ddf

Browse files
committed
Create installation script for module.
1 parent 636d504 commit 4c94ddf

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Google Analytics for Mxit
1+
# mxit_ga - Google Analytics for Mxit
22

33
Python module to perform Google Analytics tracking for Mxit web applications.
44

55
Only tracking of page view events is currently supported.
66

7+
## Installation
8+
9+
Clone the Git repository for the module. After the repository has been cloned it can be installed from the command line:
10+
11+
python setup.py install
12+
713
## Usage
814

915
### General

setup.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import os
2+
from setuptools import setup
3+
4+
# Utility function to read the README file.
5+
# Used for the long_description. It's nice, because now 1) we have a top level
6+
# README file and 2) it's easier to type in the README file than to put a raw
7+
# string in below ...
8+
# http://packages.python.org/an_example_pypi_project/setuptools.html#setting-up-setup-py
9+
def read(fname):
10+
return open(os.path.join(os.path.dirname(__file__), fname)).read()
11+
12+
setup(
13+
name = "mxit_ga",
14+
version = "0.1.0",
15+
author = "Konrad Blum",
16+
author_email = "[email protected]",
17+
description = "Python module to perform Google Analytics tracking for Mxit web applications.",
18+
license = "TODO",
19+
keywords = "google analytics mxit",
20+
url = "https://github.com/kblum/mxit-ga-py",
21+
packages = ["mxit_ga",],
22+
long_description = read("README.md"),
23+
classifiers = [
24+
"Development Status :: 4 - Beta",
25+
"Programming Language :: Python",
26+
"Topic :: Software Development :: Libraries :: Python Modules",
27+
]
28+
)

0 commit comments

Comments
 (0)