Skip to content

Commit e4cb3f2

Browse files
committed
Update version to 0.2.2
1 parent a8c360b commit e4cb3f2

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/main.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ jobs:
8686
export PATH=/home/runner/.local/bin/:$PATH
8787
8888
VERSION=$( echo $GITHUB_REF | /bin/sed 's#.*/v##' )
89-
PLACEHOLDER='__version__'
89+
SETUP_PLACEHOLDER='__version__ = "dev"'
9090
SETUP_FILE='setup.py'
91+
DOCS_PLACEHOLDER='__version__'
9192
DOCS_CONF_FILE='docs/source/conf.py'
92-
93+
9394
grep "$PLACEHOLDER" "$SETUP_FILE"
94-
/bin/sed -i "s/$PLACEHOLDER/${VERSION}/" "$SETUP_FILE"
95+
/bin/sed -i "s/$SETUP_PLACEHOLDER/__version__ = \"${VERSION}\"/g" "$SETUP_FILE"
9596
9697
grep "$PLACEHOLDER" "$DOCS_CONF_FILE"
97-
/bin/sed -i "s/$PLACEHOLDER/${VERSION}/" "$DOCS_CONF_FILE"
98+
/bin/sed -i "s/$DOCS_PLACEHOLDER/${VERSION}/" "$DOCS_CONF_FILE"
9899
shell: bash
99100
- name: Install dependencies
100101
run: |

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ UrbanPy lets you download and visualize city boundaries extremely easy:
7171
```python
7272
import urbanpy as up
7373

74-
boundaries = up.download.nominatim_osm('Lima, Peru', expected_position=2)
74+
boundaries = up.download.nominatim_osm('Lima, Peru', expected_position=2, email="your@email.com")
7575
boundaries.plot()
7676
```
7777

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
with open("requirements.txt", "r") as f:
77
install_requires = f.read().split("\n")[:-1]
88

9+
# Set a development version for source installs
10+
__version__ = "dev"
11+
912
setuptools.setup(
1013
name="urbanpy",
11-
version="__version__", # This will be replaced with the commit tag
14+
version=__version__, # This will be replaced with the commit tag
1215
author="Andres Regal, Claudio Ortega & Antonio Vazquez Brust",
1316
author_email="a.regalludowieg@up.edu.pe",
1417
description="A library to download, process and visualize high resolution urban data.",

0 commit comments

Comments
 (0)