Skip to content

Commit

Permalink
Fix pypi version number in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathrakshit committed Sep 19, 2020
1 parent 9697aaf commit 6fe3b1f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release notes

<!-- do not remove -->
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Release notes

<!-- do not remove -->

## 0.1.8

### New Features

- Add ISO country code ([#10](https://github.com/somnathrakshit/geograpy3/issues/10))
- returned country information should include the two [letter ISO
code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
country

- if country is given disambiguate country ([#7](https://github.com/somnathrakshit/geograpy3/issues/7))
- see e.g. https://stackoverflow.com/questions/62152428/extracting-
country-information-from-description-using-
geograpy?noredirect=1#comment112899776_62152428 Zaragoza, Spain
should e.g. only return the country Spain since it's in the
context of Zaragoza

### Bugs Squashed

- [BUG]AttributeError: 'NoneType' object has no attribute 'name' on "Pristina, Kosovo" ([#9](https://github.com/somnathrakshit/geograpy3/issues/9))
- **Describe the bug** ```
geograpy.get_geoPlace_context(text="Pristina, Kosovo") ``` leads
to python error. **To Reproduce** Steps to reproduce the
behavior: ```python def testIssue(self): '''
test Issue ''' locality="Pristina, Kosovo"
gp=geograpy.get_geoPlace_context(text=locality) if
self.debug: print(" %s" % gp.countries)
print(" %s" % gp.regions) print(" %s" % gp.cities)
``` File
"/Users/wf/Documents/pyworkspace/geograpy3/geograpy/places.py",
line 189, in set_cities country_name = country.name
AttributeError: 'NoneType' object has no attribute 'name'
**Expected behavior** Python should not choke on this although
the political result may be disputed.
4 changes: 4 additions & 0 deletions settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[DEFAULT]
lib_name = geograpy3
user = somnathrakshit
version = 0.1.9
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
long_description = open('../../README.md').read()

setup(name='geograpy3',
version='0.1.7',
version='0.1.9',
description='Extract countries, regions and cities from a URL or text',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 6fe3b1f

Please sign in to comment.