Skip to content

Commit 4733504

Browse files
committed
Merge pull request #29 from hfaran/develop
develop -> master for 0.5.1
2 parents 6a18f3a + 552a451 commit 4733504

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
6363
git clone https://github.com/hfaran/piazza-api
6464
cd piazza-api
65-
sudo python setup.py install
65+
python setup.py develop
6666
```
6767

6868
## Contribute

piazza_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from piazza_api.piazza import Piazza
22

3-
__version__ = "0.5.0"
3+
__version__ = "0.5.1"

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
import codecs
44
import os
5-
from setuptools import setup, find_packages
6-
7-
import piazza_api
5+
import re
6+
from setuptools import setup
87

98

109
def 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)
1619
install_requires = read("requirements.txt").split()
1720
long_description = read('README.md')
1821

1922

2023
setup(
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',

0 commit comments

Comments
 (0)