Skip to content

Commit

Permalink
Release v0.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
  • Loading branch information
Stanislav Bogatyrev authored and realloc committed Oct 28, 2022
1 parent 606f993 commit 688bbda
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Changelog
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

### Changed
Expand Down
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

# 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 storage policies. Inner ring nodes converts UN/LOCODE into human-readable
set of attributes such as continent, country name, etc. You can find out
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
more in [NeoFS Specification](https://github.com/nspcc-dev/neofs-spec).


Expand All @@ -23,7 +23,7 @@ more in [NeoFS Specification](https://github.com/nspcc-dev/neofs-spec).
## Prerequisites

- 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
- [OpenFlight Airports](https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat)
database
Expand Down Expand Up @@ -63,12 +63,12 @@ Flags:
--in strings List of paths to UN/LOCODE tables (csv)
--out string Target path for generated database
--subdiv string Path to UN/LOCODE subdivision database (csv)
$ ./neofs-cli util locode generate \
--airports airports.dat \
--continents continents.geojson \
--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 \
--out locode_db
```
Expand All @@ -82,7 +82,25 @@ Country: Russia
Location: Saint Petersburg (ex Leningrad)
Continent: Europe
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
```


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.1
v0.3.0
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
neofs-locode-db (0.2.1) stable; urgency=medium
neofs-locode-db (0.3.0) stable; urgency=medium

* Initial change.

Expand Down

0 comments on commit 688bbda

Please sign in to comment.