-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
107 additions
and
9 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
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 |
---|---|---|
|
@@ -52,4 +52,5 @@ __pycache__ | |
.idea | ||
|
||
### temp | ||
# tox.ini | ||
# tox.ini | ||
Dockerfile |
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
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
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 |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
# if forks do eventually exist. | ||
# The 'hxltm', as 2021-11-13, is actually not used on Python pip. | ||
name = hxltm-eticaai | ||
version = 0.8.9-rc.1 | ||
version = 0.8.9-rc.2 | ||
author = Emerson Rocha | ||
author_email = [email protected] | ||
description = HXLTM | ||
long_description = file: README.md | ||
long_description = file: README.md, CHANGELOG.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/EticaAI/hxltm | ||
project_urls = | ||
|
@@ -76,4 +76,29 @@ console_scripts = | |
# # urnprovider-local = hxlm.core.bin.urnprovider_local:exec_from_console_scripts | ||
# # hxl2tab = hxlm.core.bin.hxl2tab:exec_from_console_scripts | ||
# # hxlquickimport = hxlm.core.bin.hxlquickimport:exec_from_console_scripts | ||
# # hxlquickmeta = hxlm.core.bin.hxlquickmeta:exec_from_console_scripts | ||
# # hxlquickmeta = hxlm.core.bin.hxlquickmeta:exec_from_console_scripts | ||
|
||
|
||
#### pypi ______________________________________________________________________ | ||
### Upload, register step ------------------------------------------------------ | ||
|
||
## @see https://packaging.python.org/tutorials/packaging-projects/ | ||
# python3 -m pip install --upgrade build | ||
# python3 -m build | ||
## Note: create token a save on $HOME/.pypirc | ||
## the instructions will be from | ||
# - https://test.pypi.org/manage/account/token/ | ||
# - https://pypi.org/manage/account/token/ | ||
|
||
## Test server | ||
# python3 -m twine upload --repository testpypi dist/* | ||
# >> https://test.pypi.org/project/hdp-toolchain/0.8.7/ | ||
|
||
## Production server | ||
# python3 -m twine upload --repository pypi dist/* | ||
# >> View at: https://pypi.org/project/hdp-toolchain/0.8.7/ | ||
|
||
### Upload, each new version --------------------------------------------------- | ||
# rm dist/* | ||
# python3 -m build | ||
# python3 -m twine upload --repository pypi dist/* |
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,60 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# testum/de-python/testinfra/test_disciplinam_manuale.py is a port of | ||
# testum/disciplinam-manuale-anglicum.sh | ||
|
||
# To output even more verbose results | ||
# ./testum/de-python/testinfra/test_disciplinam_manuale.py | ||
# | ||
# To test directly | ||
# pytest -vv ./testum/de-python/testinfra/test_disciplinam_manuale.py | ||
|
||
# NOTE: this file require testinfra, https://testinfra.readthedocs.io/en/latest/ | ||
# pip3 install pytest-testinfra | ||
|
||
# TODO: https://testinfra.readthedocs.io/en/latest/examples.html | ||
# Implement things via parameters | ||
|
||
|
||
# @see https://github.com/amoffat/sh | ||
# @see https://amoffat.github.io/sh/ | ||
# @see https://blog.esciencecenter.nl/testing-shell-commands-from-python-2a2ec87ebf71 | ||
# @see https://github.com/NLeSC/python-template/blob/master/tests/test_project.py | ||
|
||
import os | ||
import sys | ||
import pytest | ||
|
||
# import pytest.testinfra | ||
|
||
# TODO: fix this on tox | ||
def test_disciplinam_manuale_hxltmcli_hxltm_csv(host): | ||
# host.run('cd testum/') | ||
# cmd = host.run("hxltmcli hxltm-exemplum-linguam.tm.hxl.csv") | ||
# cmd = host.run("cd testum/; ls -l") | ||
# cmd = host.run("cd testum/; ls") | ||
cmd = host.run("hxltmcli --help") | ||
# cmd = host.run("pwd") | ||
# cmd = host.run("hxltmcli testum/hxltm-exemplum-linguam.tm.hxl.csv") | ||
# cmd2 = host.run("cat testum/hxltm-exemplum-linguam.tm.hxl.csv | hxltmcli") | ||
# cmd = host.run("pwd") | ||
|
||
assert cmd.succeeded | ||
# assert cmd2.succeeded | ||
|
||
# assert print(cmd) | ||
|
||
# TODO: HXLTM-ASA | ||
|
||
|
||
# def test_disciplinam_manuale_hxltmcli_csv_3(host): | ||
# # host.run('cd testum/') | ||
# # cmd = host.run("hxltmcli hxltm-exemplum-linguam.tm.hxl.csv") | ||
# # cmd = host.run("cd testum/; ls -l") | ||
# cmd = host.run( | ||
# "cd testum/; hxltmcli hxltm-exemplum-linguam.tm.hxl.csv --objectivum-CSV-3") | ||
# # cmd = host.run( | ||
# # "cd testum/; hxltmcli hxltm-exemplum-linguam.tm.hxl.csv --objectivum-CSV-3 --fontem-linguam por-Latn@pt --objectivum-linguam spa-Latn@es") | ||
# # cmd = host.run("pwd") | ||
|
||
# assert cmd.succeeded |
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