-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New disivisions and new country (#21)
* typo * reorganize tests * united states minor outlying islands are seen as a country * treat Saint Barthélémy as its own department * add alternative fr name for antigua and barbuda * german subdivision * iso format return * brazilian subdivisions * reorganize test_subdivisions and keep a 100% coverage * add a CHANGELOG ! * update readme and ci Co-authored-by: Roxane <[email protected]>
- Loading branch information
1 parent
71672aa
commit 8e68eca
Showing
23 changed files
with
1,709 additions
and
1,112 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 |
---|---|---|
|
@@ -10,8 +10,7 @@ install: | |
- pip install codecov | ||
|
||
script: | ||
- make styles_check | ||
- pytest | ||
- make test | ||
|
||
after_success: | ||
- codecov |
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,65 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
|
||
## Unreleased | ||
|
||
### Changed | ||
- test organisation : single file split into multiple files in folders | ||
- US Minor Outlying Islands (UM) is considered as a country and not a US state | ||
- Saint Barthélémy (FR-977) is considered a French departement on its own and not Guadeloupe | ||
|
||
### Added | ||
- Changelog ! | ||
- Detection for AG written "Antigue et Barbude" in French | ||
- Detection of any Brazilian state code from the post code, state name or if the state code is present. | ||
- Detection of any German land code from the state name, state capital or if the state code is present. | ||
- `address_to_country_and_subdivision_codes` can return iso format | ||
|
||
|
||
## [4.4.1] - 2021-09-23 | ||
|
||
### Changed | ||
- minor refacto in special_countries and tests | ||
|
||
## [4.4.0] - 2021-09-22 | ||
|
||
### Fixed | ||
- Make sure we never mistake Guinea (GN) and Papua New Guinea (PG) | ||
|
||
## [4.3.0] - 2021-08-09 | ||
|
||
### Fixed | ||
- Make sure we never mistake Jersey (JE) and New Jersey (US-NJ) | ||
|
||
|
||
## [4.2.0] - 2021-07-20 | ||
|
||
### Fixed | ||
- Make sure we never mistake Sudan (SD) and South Sudan (SS) | ||
|
||
|
||
## [4.1.0] - 2021-01-17 | ||
|
||
### Added | ||
- Detection of country names in Spanish | ||
|
||
## [4.0.0] - 2021-01-11 | ||
|
||
### Added | ||
- Detection of any American state code from the post code, state name or if the state code is present. | ||
- Detection of any Canadian province or territory code from the post code, state name or if the state code is present. | ||
- Wrapper functions to allow finding the subdivision code (department for France, state for US, ...) and/or the country code from a text input. | ||
- Update README (show the new functions usage in an extensive fashion - more details on how to run the tests and prepare your local dev env - more details for the dev when adding a new language or subdivisions to a new country) | ||
|
||
### Changed | ||
- Refactorization of the current code (mainly for France departments and regions) to make the functions more uniform. | ||
- Move data from a single file to multiple files in a specific folder. | ||
- Update CI (test the README, style check) | ||
|
||
### Fixed | ||
- Make base functions as language or country-agnostic as possible | ||
|
||
### Removed | ||
- Anything related to python 2 |
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,4 +1,4 @@ | ||
tests: | ||
test: | ||
make styles_check | ||
pytest -s | ||
python -m doctest README.md | ||
|
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.