Release v0.3.0

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2022-10-27 15:05:52 +03:00 committed by Stanislav Bogatyrev
parent 606f993290
commit 688bbdaac3
4 changed files with 36 additions and 9 deletions

View file

@ -1,6 +1,15 @@
# Changelog # Changelog
Changelog for NeoFS LOCODE database Changelog for NeoFS LOCODE database
## 0.3.0 - 2022-10-28
### Changed
- Added Makefile to simplify DB build (#9)
- Added .deb packages support (#11)
### Updated
- UN/LOCODE to `2022-1` version
## 0.2.1 - 2021-11-02 ## 0.2.1 - 2021-11-02
### Changed ### Changed

View file

@ -11,10 +11,10 @@
# Overview # Overview
This repository contains instructions to generate UN/LOCODE database for NeoFS This repository contains instructions to generate UN/LOCODE database for NeoFS
and raw representation of it. NeoFS uses UN/LOCODE in storage node attributes and raw representation of it. NeoFS uses UN/LOCODE in storage node attributes
and storage policies. Inner ring nodes converts UN/LOCODE into human-readable and storage policies. Inner ring nodes converts UN/LOCODE into human-readable
set of attributes such as continent, country name, etc. You can find out set of attributes such as continent, country name, etc. You can find out
more in [NeoFS Specification](https://github.com/nspcc-dev/neofs-spec). more in [NeoFS Specification](https://github.com/nspcc-dev/neofs-spec).
@ -23,7 +23,7 @@ more in [NeoFS Specification](https://github.com/nspcc-dev/neofs-spec).
## Prerequisites ## Prerequisites
- Latest [neofs-cli](https://github.com/nspcc-dev/neofs-node) - Latest [neofs-cli](https://github.com/nspcc-dev/neofs-node)
- [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download) - [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
database in CSV format database in CSV format
- [OpenFlight Airports](https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat) - [OpenFlight Airports](https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat)
database database
@ -63,12 +63,12 @@ Flags:
--in strings List of paths to UN/LOCODE tables (csv) --in strings List of paths to UN/LOCODE tables (csv)
--out string Target path for generated database --out string Target path for generated database
--subdiv string Path to UN/LOCODE subdivision database (csv) --subdiv string Path to UN/LOCODE subdivision database (csv)
$ ./neofs-cli util locode generate \ $ ./neofs-cli util locode generate \
--airports airports.dat \ --airports airports.dat \
--continents continents.geojson \ --continents continents.geojson \
--countries countries.dat \ --countries countries.dat \
--in 2020-2\ UNLOCODE\ CodeListPart1.csv,2020-2\ UNLOCODE\ CodeListPart2.csv,2020-2\ UNLOCODE\ CodeListPart3.csv \ --in 2022-1\ UNLOCODE\ CodeListPart1.csv,2022-1\ UNLOCODE\ CodeListPart2.csv,2022-1\ UNLOCODE\CodeListPart3.csv \
--subdiv 2020-2\ SubdivisionCodes.csv \ --subdiv 2020-2\ SubdivisionCodes.csv \
--out locode_db --out locode_db
``` ```
@ -82,7 +82,25 @@ Country: Russia
Location: Saint Petersburg (ex Leningrad) Location: Saint Petersburg (ex Leningrad)
Continent: Europe Continent: Europe
Subdivision: [SPE] Sankt-Peterburg Subdivision: [SPE] Sankt-Peterburg
Coordinates: 59.53, 30.15 Coordinates: 59.88, 30.25
```
# Building Debian package
The most simple way is to run a make target
```shell
$ make debpackage
```
When packages are built, you can clean up the leftover with
```shell
$ dh clean
```
or
```shell
$ make debclean
``` ```

View file

@ -1 +1 @@
v0.2.1 v0.3.0

2
debian/changelog vendored
View file

@ -1,4 +1,4 @@
neofs-locode-db (0.2.1) stable; urgency=medium neofs-locode-db (0.3.0) stable; urgency=medium
* Initial change. * Initial change.