diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db5e402..cf97325 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ minimum_pre_commit_version: 3.1.1 # Force all unspecified python hooks to run python3 default_language_version: - python: python3 + python: python3 # A list of repository mappings. repos: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5c0ceaf..d6b14d1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,10 @@ on the UTC date of the release. `Contributions `__ always welcomed! +20230323 +================== +* Added ZUTF/TFU, Chengdu/Tianfu Airport, Tianfu, Sichuan, China + 20230303 ================== diff --git a/README.rst b/README.rst index fc02a60..21c02dc 100644 --- a/README.rst +++ b/README.rst @@ -2,9 +2,9 @@ airportsdata ============ -.. |ICAO| replace:: 28,130 +.. |ICAO| replace:: 28,131 -.. |IATA| replace:: 6,478 +.. |IATA| replace:: 6,479 .. |LID| replace:: 12,566 diff --git a/RELEASE.rst b/RELEASE.rst index 50895ee..eb7ec37 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,26 +1 @@ -* Better documented our use of pseudo-ICAO Identifiers. -* Reworded the IATA Multi Airport Cities page. -* Removed IATA code QUS from DNGU, Gusau Airport, Gusau, Zamfara, Nigeria (code not in IATA database). -* Implemented suggestions made upstream by `Nicolas Bridoux - `__ in issue `#80 `__: - - * Added: - - - AYLO/LWI, Lowai Airstrip, Lowai, Morobe Province, Papua New Guinea - - LTCW/YKO, Yüksekova Selahaddin Eyyubi Airport, Yüksekova, Hakkari, Turkey - - MPRH/RIH, Río Hato Airport, Río Hato, Coclé, Panama - - UWSG/GSV, Gagarin Airport, Saratov, Saratov, Russia - - ZSSM/SQJ, Sanming Shaxian Airport, Sanming, Fujian, China - * Added IATA code and updated ICAO one: - - - VEDH/DBR, Darbhanga Airport, Bihar, India (was VE89) - - VOTK/TCR, Tuticorin Southwest Airport, Tamil-Nadu, India (was VO80) - * Added IATA code: - - - 5MS1/RFK, Rollang Field, Rolling Fork, Mississippi, USA - - KTHM/THM, Thompson Falls Airport, Thompson Falls, Montana, USA - - MMSM/NLU, Santa Lucia Air Force Base, Reyes Acozac, Mexico - - SKSA/RVE, Los Colonizadores Airport, Saravena, Arauca, Colombia - - SKVG/VGZ, Villagarzon Airport, Villagarzon, Putumayo, Colombia - - YBGD/OCM, Boolgeeda Airport, Western Australia, Australia -* Added ``tox-ini-fmt`` to ``pre-commit`` to apply a consistent format to tox.ini files. +* Added ZUTF/TFU, Chengdu/Tianfu Airport, Tianfu, Sichuan, China diff --git a/airportsdata/__init__.py b/airportsdata/__init__.py index 99fcac7..c46e508 100644 --- a/airportsdata/__init__.py +++ b/airportsdata/__init__.py @@ -12,7 +12,7 @@ __project_name__ = __package__ # Release numbering follows the release date -__version__ = '20230303' +__version__ = '20230323' __min_python_version__ = (3, 8) __author__ = 'Mike Borsetti ' __copyright__ = 'Copyright 2020- Mike Borsetti' diff --git a/airportsdata/airports.csv b/airportsdata/airports.csv index 8f32ae9..de7cc56 100644 --- a/airportsdata/airports.csv +++ b/airportsdata/airports.csv @@ -28084,6 +28084,7 @@ "ZUNZ","LZY","Nyingchi Airport","Nyingchi","Tibet","CN",9675,29.3033008575,94.3352966309,"Asia/Shanghai","" "ZUQJ","JIQ","Qianjiang Wulingshan Airport","Chongqing","Chongqing","CN",1365,29.514559,108.83371499999998,"Asia/Shanghai","" "ZUTC","TCZ","Tengchong Tuofeng Airport","Tengchong","Yunnan","CN",6250,24.9380555556,98.4858333333,"Asia/Shanghai","" +"ZUTF","TFU","Chengdu/Tianfu Airport","Tianfu","Sichuan","CN",1453,30.29,104.443333,"Asia/Shanghai","" "ZUTR","TEN","Tongren Fenghuang Airport","","Hunan","CN",0,27.883333,109.308889,"Asia/Shanghai","" "ZUUU","CTU","Chengdu Shuangliu International Airport","Chengdu","Sichuan","CN",1625,30.5785007477,103.9469985962,"Asia/Shanghai","" "ZUWX","WXN","Wanxian Airport","Wanxian","Chongqing","CN",0,30.8017,108.433,"Asia/Shanghai","" diff --git a/tests/test_airportsdata.py b/tests/test_airportsdata.py index 33ab183..29ab99f 100644 --- a/tests/test_airportsdata.py +++ b/tests/test_airportsdata.py @@ -19,7 +19,7 @@ airports_icao = airportsdata.load('ICAO') -iso_3166_1 = [ +iso_3166_1 = { 'AF', 'AX', 'AL', @@ -269,11 +269,11 @@ 'YE', 'ZM', 'ZW', -] # As of 2020-11-06 +} # As of 2020-11-06 # There is no ISO 3166-1 country code for the Republic of Kosovo, however 'XK' is a self assigned code that is used by # many international organisations per https://en.wikipedia.org/wiki/ISO_3166-2:RS#Note -iso_3166_1.append('XK') -tz_deprecated = [ +iso_3166_1.add('XK') +tz_deprecated = { 'Africa/Asmera', 'Africa/Timbuktu', 'America/Argentina/ComodRivadavia', @@ -443,7 +443,7 @@ 'W-SU', 'WET', 'Zulu', -] # from https://www.php.net/timezones.others 2020-11-08; UTC kept in the list as it's non-geographical +} # from https://www.php.net/timezones.others 2020-11-08; UTC kept in the list as it's non-geographical def test_loading() -> None: