-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
19 changed files
with
1,834 additions
and
270 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -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 |
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 +1 @@ | ||
include LICENSE *.rst us/*.pkl | ||
include LICENSE *.rst |
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,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" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.