Skip to content

Commit

Permalink
Preparing new release
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Jun 23, 2022
1 parent 23c6e13 commit 3b823a4
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 15 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- TODO

## [v0.9.1] - 2022-06-22

> Note: this version may require you to install additional dependencies. Varies
by cli tool you plan to install. Can do all then with
`pip install libhxl pyyaml defusedxml langcodes python-liquid`

### Added
- Improved documentation

### Fixed
- Changed references from `hxl.io` to `hxl.input` to work with lastest libhxl
version
- Fixed issue with unpublished RC version of `hxltmcli` being released as
`hxltmdexml`

## [v0.8.10] - 2020-11-26

### Added
Expand Down Expand Up @@ -282,4 +297,4 @@ bdfed76 2021-07-04 hxltm-cli-xliff (#19), hxltm-cli-tmx (#20): improved ontologi
aefd32b 2021-07-03 hxltm-cli-xliff (#19), hxltm-cli-tmx (#20): ontologia/cor.hxltm.yml draft (Emerson Rocha)
b70dafc 2021-07-01 hxltm-cli-xliff (#19), hxltm-cli-tmx (#20): improved documentation (Emerson Rocha)
93dbcf8 2021-06-29 hdp-toolchain v0.8.8.0 started (added hxltmcli v0.8.1) (Emerson Rocha)
```
```
10 changes: 5 additions & 5 deletions bin/hxltmcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
# Do not import hxl, to avoid circular imports
import hxl.converters
import hxl.filters
import hxl.io
import hxl.input
import hxl.datatypes

# @see https://github.com/rspeer/langcodes
Expand Down Expand Up @@ -254,7 +254,7 @@
from liquid.context import Context as LiquidContext
# from liquid.token import TOKEN_EXPRESSION as LIQUID_TOKEN_EXPRESSION

__VERSION__ = "v0.9.0-rc1"
__VERSION__ = "v0.9.1"

# _[eng-Latn]
# Note: If you are doing a fork and making it public, please customize
Expand Down Expand Up @@ -1059,7 +1059,7 @@ def execute_cli(self, pyargs,
# Save the HXL TM locally. It will be used by either in_csv
# or in_csv + in_xliff
# [eng-Latn]_
hxl.io.write_hxl(output.output, source,
hxl.input.write_hxl(output.output, source,
show_tags=not pyargs.strip_tags)

hxlated_input = pyargs.outfile
Expand Down Expand Up @@ -7880,7 +7880,7 @@ def make_source(self, args, stdin=STDIN):

# construct the input object
input = self.make_input(args, stdin)
return hxl.io.data(input)
return hxl.input.data(input)

def make_input(self, args, stdin=sys.stdin, url_or_filename=None):
"""Create an input object"""
Expand All @@ -7898,7 +7898,7 @@ def make_input(self, args, stdin=sys.stdin, url_or_filename=None):

http_headers = self.make_headers(args)

return hxl.io.make_input(
return hxl.input.make_input(
url_or_filename or stdin,
sheet_index=sheet_index,
selector=selector,
Expand Down
4 changes: 2 additions & 2 deletions bin/hxltmdexml.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@
# # Do not import hxl, to avoid circular imports
# import hxl.converters
# import hxl.filters
# import hxl.io
# import hxl.input

# @see https://github.com/rspeer/langcodes
# pip3 install langcodes
# import langcodes

__VERSION__ = "v0.9.0-rc1"
__VERSION__ = "v0.9.1"

# _[eng-Latn]
# Note: If you are doing a fork and making it public, please customize
Expand Down
2 changes: 1 addition & 1 deletion ontologia/cor.hxltm.215.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @DESCRIPTIONEM HXL Trānslātiōnem Memoriam (HXLTM) cor cōnfigūrātiōnem.
# Auxilium de HXLTM: https://hxltm.etica.ai/

__ontologia_cor_versionem__: v0.9.0+EticaAI+voluntārium-commūne
__ontologia_cor_versionem__: v0.9.1+EticaAI+voluntārium-commūne

### Trivia:
# - "HXL"
Expand Down
8 changes: 6 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# if forks do eventually exist.
# The 'hxltm', as 2021-11-13, is actually not used on Python pip.
name = hxltm-eticaai
version = 0.9.0-rc1
version = 0.9.1
author = Emerson Rocha
author_email = [email protected]
description = Multilingual Terminology in Humanitarian Language Exchange (HXLTM) - reference implementation.
Expand All @@ -28,14 +28,16 @@ python_requires = >=3.7

[options.packages.find]
where = src
# Runtime dependencies (varies by binary)
# pip install libhxl pyyaml langcodes python-liquid

[options.package_data]
hxltm.bin = *.yml

[options.entry_points]
console_scripts =
hxltmdexml = hxltm.bin.hxltmdexml:exec_from_console_scripts
hxltmcli = hxltm.bin.hxltmdexml:exec_from_console_scripts
hxltmcli = hxltm.bin.hxltmcli:exec_from_console_scripts

#### pypi ______________________________________________________________________
### Upload, register step ------------------------------------------------------
Expand All @@ -57,6 +59,8 @@ console_scripts =
# >> View at: https://pypi.org/project/hdp-toolchain/0.8.7/

### Upload, each new version ---------------------------------------------------
# Note: remember to replace the version number also by string replace, as
# since some files beyond setup.cfg also have the reference
# rm dist/*
# python3 -m build
# python3 -m twine upload --repository pypi dist/*
2 changes: 1 addition & 1 deletion testum/disciplinam-manuale-anglicum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ hxltmdexml resultatum/hxltm-exemplum-linguam.por-Latn--spa-Latn.xlf \
rursum/XLIFF/hxltm-exemplum-linguam.por-Latn--spa-Latn.tm.hxl.csv \
--fontem-linguam por-Latn@pt --objectivum-linguam spa-Latn@es

# TODO: this command is generating invalid CSV since early v0.9.0-rc1
# TODO: this command is generating invalid CSV since early v0.9.1
cat resultatum/hxltm-exemplum-linguam.por-Latn--spa-Latn.xlf | hxltmdexml --fontem-linguam por-Latn@pt --objectivum-linguam spa-Latn@es > rursum/XLIFF/hxltm-exemplum-linguam.por-Latn--spa-Latn.tm.hxl.csv --fontem-linguam por-Latn@pt --objectivum-linguam spa-Latn@es


Expand Down
2 changes: 1 addition & 1 deletion testum/hxltmcli--help_eng-Latn.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ usage: hxltmcli [-h] [--sheet [number]] [--selector [path]]
[--venandum-insectum-est] [--versionem]
[infile] [outfile]

_[eng-Latn] hxltmcli v0.9.0-rc1 is an example of implementation of the
_[eng-Latn] hxltmcli v0.9.1 is an example of implementation of the
Multilingual Terminology in Humanitarian Language Exchange (HXLTM).
For XML processing, use hxltmdexml.
[eng-Latn]_"
Expand Down
2 changes: 1 addition & 1 deletion testum/hxltmdexml--help_eng-Latn.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage: hxltmdexml [-h] [--agendum-linguam [agendum_linguam]]
[infile] [outfile]

_[eng-Latn]
hxltmdexml v0.9.0-rc1 is an example of implementation of the
hxltmdexml v0.9.1 is an example of implementation of the
Multilingual Terminology in Humanitarian Language Exchange (HXLTM)
focused on convert XML files to the pivot format HXLTM.
[eng-Latn]_"
Expand Down
2 changes: 1 addition & 1 deletion testum/resultatum/hxltm-exemplum-linguam.tbx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<fileDesc>
<titleStmt>
<title></title>
<note>Lorem ipsum dolor semet</note>
<note></note>
</titleStmt>
<sourceDesc>
<p></p>
Expand Down

0 comments on commit 3b823a4

Please sign in to comment.