Skip to content

Commit

Permalink
python-us v2.0 (#47)
Browse files Browse the repository at this point in the history
* add support for Python 3.7 and 3.8
* remove support for Python 3.4 and 3.5
* remove pickled objects and database in favor of pure Python code
* upgrade jellyfish to 0.7.2 to fix metaphone bug
* fixes for IN, KY, ND, and NM timezones (closes #46, closes #48)
* set AZ timezone to America/Phoenix (closes #31)
* obsolete entries are no longer included in STATES_AND_TERRITORIES (closes #39)
* DC is no longer included in STATES, STATES_AND_TERRITORIES, STATES_CONTIGUOUS, or STATES_CONTINENTAL
  • Loading branch information
jcarbaugh authored Apr 19, 2020
1 parent 15165f4 commit 6d21643
Show file tree
Hide file tree
Showing 19 changed files with 1,834 additions and 270 deletions.
10 changes: 0 additions & 10 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
- name: Install dependencies
run: |
pipenv install --dev --python `which python3`
- name: Linting and formatting
run: |
# stop the build if there are Python syntax errors or undefined names
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# check formatting
pipenv run black --check us
- name: Test with pytest
run: |
pipenv run pytest
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include LICENSE *.rst us/*.pkl
include LICENSE *.rst
14 changes: 14 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "==19.10b0"
pytest = "*"
pytz = "*"
requests = "<3.0"
flake8 = "*"

[packages]
jellyfish = "==0.7.2"
264 changes: 264 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. image:: https://circleci.com/gh/unitedstates/python-us/tree/master.svg?style=shield
:target: https://circleci.com/gh/unitedstates/python-us/tree/master
.. image:: https://github.com/unitedstates/python-us/workflows/Tests/badge.svg
:target: https://github.com/unitedstates/python-us/actions

US: The Greatest Package in the World
=====================================
Expand All @@ -18,8 +18,6 @@ A package for easily working with US and state metadata.
* URLs to shapefiles for state, census, congressional districts,
counties, and census tracts

Congratulations, DC. As far as this package is concerned, you've got statehood.


Installation
------------
Expand Down Expand Up @@ -215,6 +213,19 @@ modified to accommodate your change.
Changelog
---------

2.0.0
~~~~~

* add support for Python 3.7 and 3.8
* remove support for Python 3.4 and 3.5
* remove pickled objects and database in favor of pure Python code
* upgrade jellyfish to 0.7.2 to fix metaphone bug
* fixes for IN, KY, ND, and NM timezones
* set AZ timezone to America/Phoenix
* obsolete entries are no longer included in STATES_AND_TERRITORIES
* DC is no longer included in STATES, STATES_AND_TERRITORIES, STATES_CONTIGUOUS, or STATES_CONTINENTAL


1.0.0
~~~~~

Expand Down
Loading

0 comments on commit 6d21643

Please sign in to comment.