Skip to content

Commit

Permalink
Update version to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio9701 committed Jul 18, 2024
1 parent a8c360b commit e4cb3f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ jobs:
export PATH=/home/runner/.local/bin/:$PATH
VERSION=$( echo $GITHUB_REF | /bin/sed 's#.*/v##' )
PLACEHOLDER='__version__'
SETUP_PLACEHOLDER='__version__ = "dev"'
SETUP_FILE='setup.py'
DOCS_PLACEHOLDER='__version__'
DOCS_CONF_FILE='docs/source/conf.py'
grep "$PLACEHOLDER" "$SETUP_FILE"
/bin/sed -i "s/$PLACEHOLDER/${VERSION}/" "$SETUP_FILE"
/bin/sed -i "s/$SETUP_PLACEHOLDER/__version__ = \"${VERSION}\"/g" "$SETUP_FILE"
grep "$PLACEHOLDER" "$DOCS_CONF_FILE"
/bin/sed -i "s/$PLACEHOLDER/${VERSION}/" "$DOCS_CONF_FILE"
/bin/sed -i "s/$DOCS_PLACEHOLDER/${VERSION}/" "$DOCS_CONF_FILE"
shell: bash
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ UrbanPy lets you download and visualize city boundaries extremely easy:
```python
import urbanpy as up

boundaries = up.download.nominatim_osm('Lima, Peru', expected_position=2)
boundaries = up.download.nominatim_osm('Lima, Peru', expected_position=2, email="[email protected]")
boundaries.plot()
```

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
with open("requirements.txt", "r") as f:
install_requires = f.read().split("\n")[:-1]

# Set a development version for source installs
__version__ = "dev"

setuptools.setup(
name="urbanpy",
version="__version__", # This will be replaced with the commit tag
version=__version__, # This will be replaced with the commit tag
author="Andres Regal, Claudio Ortega & Antonio Vazquez Brust",
author_email="[email protected]",
description="A library to download, process and visualize high resolution urban data.",
Expand Down

0 comments on commit e4cb3f2

Please sign in to comment.