Skip to content

Commit a14f3ad

Browse files
committed
Show README.md on pypi.org and minor fixes
1 parent 5317d21 commit a14f3ad

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/*
2+
dist/*
3+
simpleanalytics.egg-info

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
# simpleanalytics for Django
1+
# Simple Analytics for Django
2+
23
Want privacy friendly analytics for Django? You're at the right place.
34

5+
> You need an account [on Simple Analytics](https://simpleanalytics.com) to see your stats collected by this plugin.
6+
47
# Installing it
8+
59
Install the plugin:
610

711
`pip install django-simpleanalytics`
812

913
# Using it
14+
1015
Add the package to the `INSTALLED_APPS`:
11-
```python
16+
```python
1217
INSTALLED_APPS = [
1318
...,
1419
simpleanalytics,
1520
]
1621
```
1722

1823
Next use the `templatetag` in your template:
19-
```
24+
25+
```
2026
<!DOCTYPE html>
2127
{% load staticfiles simpleanalytics_tags %}
2228
<html>
@@ -60,25 +66,25 @@ This app has four templatetags:
6066
- simpleanalytics_sync
6167
- simpleanalytics_async
6268
- simpleanalytics_noscript_block
63-
- simpleanalytics_noscript_img
69+
- simpleanalytics_noscript_img
6470

6571
`simpleanalytics_sync` converts to a plain `<script>` tag without the `async`
66-
keyword.
72+
keyword.
6773

6874
`simpleanalytics_async` converts to a plain `<script>` tag with the `async`
69-
keyword.
75+
keyword.
7076

71-
`simpleanalytics_noscript_block` converts to an `<noscript>` block which
72-
includes an `img` element which is used to load the image. Use this when you
73-
don't have and don't need a `<noscript>` block on your page at all.
77+
`simpleanalytics_noscript_block` converts to an `<noscript>` block which
78+
includes an `img` element which is used to load the image. Use this when you
79+
don't have and don't need a `<noscript>` block on your page at all.
7480

7581
`simpleanalytics_noscript_img` converts to an `<img>` tag which src points to
7682
the hello.img. Use this when you're using a `<noscript>` block and you want to
7783
add privacy friendly stats to your page.
7884

7985
# Compatibility
8086

81-
Tested on Django 2.2, but we think you should be able to run on any recent
87+
Tested on Django 2.2, but we think you should be able to run on any recent
8288
Django deployment. Please file an issue when it doesn't.
8389

8490

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"""
1313
from setuptools import setup
1414

15+
with open("README.md", "r") as fh:
16+
long_description = fh.read()
1517

1618
setup(
1719
name='simpleanalytics',
@@ -32,9 +34,12 @@
3234
"Framework :: Django :: 2.1",
3335
"Framework :: Django :: 2.2",
3436
],
35-
version='1.0.2',
36-
description='simpleanalytics templatetags for Django',
37+
version='1.0.3',
38+
description='Simple Analytics template tags for Django',
39+
long_description=long_description,
40+
long_description_content_type="text/markdown",
41+
url="https://github.com/simpleanalytics/django-plugin",
3742
packages=['simpleanalytics', 'simpleanalytics.templatetags', ],
38-
author='simpleanalytics.io',
43+
author='Simple Analytics',
3944
author_email='support@mail.simpleanalytics.io',
4045
)

simpleanalytics/templatetags/simpleanalytics_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
3-
(c) 2019 by simpleanalytics.io. All rights reserved
3+
(c) 2019 Simple Analytics. All rights reserved.
44
55
This program is distributed in the hope that it will be useful, but is provided AS IS with ABSOLUTELY NO WARRANTY;
66
The entire risk as to the quality and performance of the program is with you. Should the program prove defective,

0 commit comments

Comments
 (0)