Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from ymyzk/enhancement/38
Browse files Browse the repository at this point in the history
Clean up setup.py
  • Loading branch information
ymyzk committed Sep 24, 2016
2 parents fa1ee0f + 071cd8b commit 5abaa5a
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
#!/usr/bin/env python
import os
from codecs import open
from os import path
import sys

try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import setup


__version__ = '0.6.1'
here = path.abspath(path.dirname(__file__))

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()

os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

requires = [
'requests>=2.7.0',
Expand All @@ -29,6 +25,7 @@
'test': []
}

# TODO: Replace with environment markers in the future
if sys.version_info < (3, 3):
extras_require['test'].append('mock>=1.2.0')

Expand All @@ -52,12 +49,12 @@

setup(
name='django-channels',
version=__version__,
version='0.6.1',
packages=['channels', 'channels.backends'],
include_package_data=True,
license='MIT',
description='A Django library for sending notifications',
long_description=README,
long_description=long_description,
url='https://github.com/ymyzk/django-channels',
author='Yusuke Miyazaki',
author_email='miyazaki.dev@gmail.com',
Expand Down

0 comments on commit 5abaa5a

Please sign in to comment.