44import codecs
55import sys
66import os
7-
87HERE = os .path .abspath (os .path .dirname (__file__ ))
8+ from setuptools import setup
9+ try :
10+ from pypandoc import convert
11+ read_md = lambda f : convert (f , 'rst' )
12+ except ImportError :
13+ print ("warning: pypandoc module not found, could not convert Markdown to RST" )
14+ read_md = lambda f : open (f , 'r' ).read ()
15+
916
1017
1118def read (* parts ):
@@ -15,9 +22,6 @@ def read(*parts):
1522 return codecs .open (os .path .join (HERE , * parts ), 'r' ).read ()
1623
1724
18- # LONG_DESCRIPTION = read('README.md')
19-
20-
2125class Tox (TestCommand ):
2226 def finalize_options (self ):
2327 TestCommand .finalize_options (self )
@@ -49,13 +53,13 @@ def run_tests(self):
4953
5054setup (
5155 name = 'http_request_randomizer' ,
52- version = '0 .0.5 ' ,
56+ version = '1 .0.1 ' ,
5357 url = 'http://pgaref.com/blog/python-proxy' ,
5458 license = 'MIT' ,
5559 author = 'Panagiotis Garefalakis' ,
5660 author_email = 'pangaref@gmail.com' ,
5761 description = 'A package using public proxies to randomise http requests.' ,
58- # long_description=LONG_DESCRIPTION ,
62+ long_description = read_md ( 'README.md' ) ,
5963 packages = find_packages (exclude = ['tests' ]),
6064 include_package_data = True ,
6165 platforms = 'any' ,
0 commit comments