Skip to content

Commit

Permalink
Merge pull request #5 from edmondatto/master
Browse files Browse the repository at this point in the history
Merge the README.md and README.rst
  • Loading branch information
DavidLemayian authored Oct 5, 2017
2 parents f71c5d0 + 7c52576 commit dac2221
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 173 deletions.
45 changes: 40 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[![PyPI version](https://badge.fury.io/py/ckanext-social.svg)](https://badge.fury.io/py/ckanext-social)
[![GitHub issues](https://img.shields.io/github/issues/codeforafricalabs/ckanext-social.svg?style=flat-square)](https://github.com/codeforafricalabs/ckanext-social/issues)
[![GitHub forks](https://img.shields.io/github/forks/codeforafricalabs/ckanext-social.svg?style=flat-square)](https://github.com/codeforafricalabs/ckanext-social/network)
[![GitHub stars](https://img.shields.io/github/stars/codeforafricalabs/ckanext-social.svg?style=flat-square)](https://github.com/codeforafricalabs/ckanext-social/stargazers)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/codeforafricalabs/ckanext-social/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/url/https/github.com/codeforafricalabs/ckanext-social/.svg?style=social&style=flat-square)](https://twitter.com/intent/tweet?text=Wow:&url=%5Bobject%20Object%5D)
# CKAN social

_An extension to improve social sharing in CKAN._
Expand All @@ -13,23 +19,52 @@ With the extension installed and activated:
<!-- Include with / without photo -->


# Installation
## Requirements
This extension has been tested with versions of CKAN from 2.6.3 onwards
and works well on these versions.


## Installation

Installing this extension in your CKAN instance is as easy as installing any other CKAN extension.

Activate your virtual environment
Activate your CKAN virtual environment, for example

`. /usr/local/lib/ckan/default/bin/activate`


## Install the extension
#### Option 1: Install the extension using `python setup.py`

```commandline
$ git clone https://github.com/CodeForAfricaLabs/ckanext-social.git
$ cd ckanext-social
$ python setup.py develop
$ python setup.py install
```

Modify your configuration file (generally in /etc/ckan/default/production.ini) and add social in the ckan.plugins property.
Modify your configuration file (generally in `/etc/ckan/default/production.ini`) and add `social` in the `ckan.plugins` property.

`ckan.plugins = social <OTHER_PLUGINS>`

#### Option 2: Install the extension using `pip install ckanext-social`
1. Install the ckanext-social Python package into your virtual environment:

pip install ckanext-social

2. Add ``social`` to the ``ckan.plugins`` setting in your CKAN
config file (by default the config file is located at
``/etc/ckan/default/production.ini``).

3. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
```commandline
sudo service apache2 reload
```

### Development Installation
To install ckanext-social for development, activate your CKAN virtualenv and
run the following commands
```commandline
git clone https://github.com/edmondatto/ckanext-social.git
cd ckanext-social
python setup.py develop
pip install -r dev-requirements.txt
```
166 changes: 0 additions & 166 deletions README.rst

This file was deleted.

6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path

from setuptools import (find_packages, # Always prefer setuptools over distutils
setup)

here = path.abspath(path.dirname(__file__))

# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
Expand Down

0 comments on commit dac2221

Please sign in to comment.