-
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.
- Loading branch information
Showing
6 changed files
with
19 additions
and
20 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,2 @@ | ||
include *.md | ||
include LICENSE |
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 |
---|---|---|
|
@@ -3,21 +3,19 @@ | |
|
||
# Licensed under the General Public License (version 3) | ||
# http://opensource.org/licenses/LGPL-3.0 | ||
# Copyright (c) 2015-7, Neil Freeman <[email protected]> | ||
# Copyright (c) 2015-9, Neil Freeman <[email protected]> | ||
|
||
.PHONY: install upload clean deploy test | ||
install: README.rst | ||
python setup.py install | ||
.PHONY: install build upload clean deploy test | ||
|
||
README.rst: README.md | ||
- pandoc $< -o $@ | ||
@touch $@ | ||
- python setup.py check --restructuredtext --strict | ||
install: ; python setup.py install | ||
|
||
test: ; python setup.py test | ||
|
||
deploy: README.rst | clean | ||
python3 setup.py sdist bdist_wheel | ||
deploy: build | ||
twine upload dist/* | ||
|
||
build: | clean | ||
python3 setup.py bdist_wheel --universal | ||
python3 setup.py sdist | ||
|
||
clean:; rm -rf dist build |
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 |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
|
||
# Licensed under the General Public License (version 3) | ||
# http://opensource.org/licenses/LGPL-3.0 | ||
# Copyright (c) 2015-7, Neil Freeman <[email protected]> | ||
# Copyright (c) 2015-9, Neil Freeman <[email protected]> | ||
|
||
from .censusgeocode import CensusGeocode, benchmarks, vintages | ||
|
||
__version__ = '0.4.3' | ||
__version__ = '0.4.3.post1' | ||
|
||
cg = CensusGeocode() | ||
|
||
|
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[metadata] | ||
license_files = LICENSE.txt |
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 |
---|---|---|
|
@@ -13,19 +13,15 @@ | |
with open('censusgeocode/__init__.py') as i: | ||
version = next(r for r in i.readlines() if '__version__' in r).split('=')[1].strip('"\' \n') | ||
|
||
try: | ||
readme = open('README.rst').read() | ||
except IOError: | ||
try: | ||
readme = open('README.md').read() | ||
except IOError: | ||
readme = '' | ||
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]', | ||
|