-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from fitnr/v0.5.2
v0.5.2
- Loading branch information
Showing
15 changed files
with
177 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This file is part of censusgeocode. | ||
# https://github.com/fitnr/censusgeocode | ||
|
||
# Licensed under the General Public License (version 3) | ||
# http://opensource.org/licenses/LGPL-3.0 | ||
# Copyright (c) 2015-7, Neil Freeman <[email protected]> | ||
|
||
name: Test and deploy | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: 'pip' | ||
cache-dependency-path: setup.cfg | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install -U pip | ||
pip install '.[tests]' | ||
- run: make test | ||
|
||
deploy: | ||
needs: test | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
environment: production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
cache-dependency-path: setup.cfg | ||
|
||
- name: Install build requirements | ||
run: | | ||
python -m pip install -U pip | ||
pip install build | ||
- run: make build | ||
|
||
- name: Publish package | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,57 @@ | ||
0.5.1 | ||
0.5.2 | ||
----- | ||
* Accept either "zip" or "zipcode" as an argument in `CensusGeocode.address` (#24). | ||
* Add warning to `CensusGeocode.batch()` when trying send more than 10,000 records | ||
* Move packaging metadata to setup.cfg and pyproject.toml | ||
* Use github actions for automated tests | ||
|
||
0.5.1 | ||
----- | ||
* Fix empty default values (#23) | ||
|
||
0.5.0 | ||
----- | ||
|
||
* Removed hard-coded benchmarks and vintages, which were out of date. Refer to Census Geocoder documentation for a list of active benchmarks and vintages. | ||
|
||
0.4.4 | ||
----- | ||
|
||
* Handle misformatted batch responses from the Census | ||
* Add more options for command line tool | ||
* Codify support for Python 3.7, 3.8. Drop support for Python 3.4 | ||
|
||
0.4.3 | ||
----- | ||
|
||
* Fixed bug in parsing addressbatch results in some versions of Python (thanks @summonholmes) | ||
|
||
0.4.2 | ||
----- | ||
|
||
* Fix reversed coordinate order in batch addresses | ||
|
||
0.4.1 | ||
----- | ||
|
||
* Add static methods to module | ||
* Update vintages and benchmarks. | ||
|
||
0.4.0 | ||
----- | ||
|
||
* Add support for address batch functionality, including to command line tool | ||
|
||
0.3.0 | ||
----- | ||
|
||
* Better error reporting when API is down. | ||
* Use `requests[security]` to fix SSL 3 errors, bump required `requests` version. | ||
* Combine Py 2 and Py 3 codebases. | ||
* Add timeout parameter to `CensusGeocode.fetch` (thanks @mxr) | ||
|
||
0.2.3 | ||
----- | ||
|
||
* Always yield a `ValueError` when Census API is broken. | ||
* Internal refactor to simplify keyword arguments. | ||
|
||
0.2.2 | ||
----- | ||
|
||
* Improve deployment and fix readme | ||
|
||
0.2.1 | ||
----- | ||
|
||
* Add command line tool |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This file is part of censusgeocode. | ||
# https://github.com/fitnr/censusgeocode | ||
[build-system] | ||
requires = ["setuptools>=60.5.0", "wheel"] | ||
build-backend = 'setuptools.build_meta' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
# -*- coding: utf-8 -*- | ||
[metadata] | ||
license_files = LICENSE.txt | ||
name = censusgeocode | ||
version = attr: censusgeocode.__version__ | ||
description = Thin Python wrapper for the US Census Geocoder | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
keywords= census, geocode, api | ||
author = Neil Freeman | ||
author_email = [email protected] | ||
url = https://github.com/fitnr/censusgeocode | ||
license = GNU General Public License v3 (GPLv3) | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU General Public License v3 (GPLv3) | ||
Natural Language :: English | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Operating System :: OS Independent | ||
|
||
[options] | ||
package_dir = | ||
=src | ||
packages = find: | ||
install_requires = | ||
requests[security]>=2.27.0,<3 | ||
requests-toolbelt>=0.9.0,<1 | ||
python_requires = >= 3.6, <4 | ||
|
||
[options.extras_require] | ||
tests = vcrpy>=4.1.1,<5 | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
censusgeocode = censusgeocode.__main__:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,47 +10,4 @@ | |
|
||
from setuptools import setup | ||
|
||
with open('censusgeocode/__init__.py') as i: | ||
version = next(r for r in i.readlines() if '__version__' in r).split('=')[1].strip('"\' \n') | ||
|
||
with open('README.md') as f: | ||
readme = f.read() | ||
|
||
setup( | ||
name='censusgeocode', | ||
version=version, | ||
description='Thin Python wrapper for the US Census Geocoder', | ||
long_description=readme, | ||
long_description_content_type='text/markdown', | ||
keywords='census geocode api', | ||
author='Neil Freeman', | ||
author_email='[email protected]', | ||
url='https://github.com/fitnr/censusgeocode', | ||
license='GNU General Public License v3 (GPLv3)', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Operating System :: OS Independent', | ||
], | ||
install_requires=[ | ||
'requests[security]>=2.18,<3', | ||
'requests-toolbelt >=0.8.0, <1', | ||
'six' | ||
], | ||
tests_require=[ | ||
'vcrpy>=1.11.1, <1.12', | ||
], | ||
packages=['censusgeocode'], | ||
test_suite='tests', | ||
entry_points={ | ||
'console_scripts': [ | ||
'censusgeocode=censusgeocode.__main__:main', | ||
], | ||
}, | ||
) | ||
setup() |
Oops, something went wrong.