File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ You've seen this before and you'll see it again.
5555
5656``` bash
5757# The easy way
58- sudo pip install piazza-api
58+ pip install piazza-api
5959```
6060
6161``` bash
6262# The developer way
6363git clone https://github.com/hfaran/piazza-api
6464cd piazza-api
65- sudo python setup.py install
65+ python setup.py develop
6666```
6767
6868## Contribute
Original file line number Diff line number Diff line change 11from piazza_api .piazza import Piazza
22
3- __version__ = "0.5.0 "
3+ __version__ = "0.5.1 "
Original file line number Diff line number Diff line change 22
33import codecs
44import os
5- from setuptools import setup , find_packages
6-
7- import piazza_api
5+ import re
6+ from setuptools import setup
87
98
109def read (filename ):
@@ -13,13 +12,17 @@ def read(filename):
1312 return codecs .open (os .path .join (here , filename ), 'r' ).read ()
1413
1514
15+ # https://github.com/kennethreitz/requests/blob/master/setup.py#L32
16+ with open ('piazza_api/__init__.py' , 'r' ) as fd :
17+ version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
18+ fd .read (), re .MULTILINE ).group (1 )
1619install_requires = read ("requirements.txt" ).split ()
1720long_description = read ('README.md' )
1821
1922
2023setup (
2124 name = 'piazza-api' ,
22- version = piazza_api . __version__ ,
25+ version = version ,
2326 url = 'http://github.com/hfaran/piazza-api/' ,
2427 license = 'MIT License' ,
2528 author = 'Hamza Faran' ,
You can’t perform that action at this time.
0 commit comments