-
Notifications
You must be signed in to change notification settings - Fork 1
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
22 changed files
with
113 additions
and
188,384 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: python | ||
dist: bionic | ||
sudo: true | ||
python: | ||
- '3.6' | ||
install: | ||
- pip install -r requirements-dev.txt | ||
- make install-dep-packages | ||
script: | ||
- make ci-test | ||
deploy: | ||
provider: releases | ||
skip_cleanup: true | ||
api_key: $GITHUB_TOKEN | ||
file_glob: true | ||
file: dist/* | ||
on: | ||
repo: dlt-rilmta/emmorphpy | ||
branch: master | ||
tags: true | ||
notifications: | ||
email: false |
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,2 @@ | ||
include emmorphpy/hfst-wrapper.props | ||
include emmorphpy/hu.hfstol |
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,43 @@ | ||
# Bash is needed for time | ||
SHELL := /bin/bash | ||
DIR := ${CURDIR} | ||
all: | ||
@echo "See Makefile for possible targets!" | ||
|
||
install-dep-packages: | ||
sudo -E apt-get update | ||
sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install `cat Aptfile` | ||
|
||
check-hfst-lookup: | ||
@command -v hfst-lookup >/dev/null 2>&1 || { echo >&2 'Command `hfst-lookup` could not be found!'; exit 1; } | ||
|
||
dist/*.whl dist/*.tar.gz: check-hfst-lookup | ||
@echo "Building package..." | ||
python3 setup.py sdist bdist_wheel | ||
|
||
build: dist/*.whl dist/*.tar.gz | ||
|
||
install-user: build | ||
@echo "Installing package to user..." | ||
pip3 install dist/*.whl | ||
|
||
test: | ||
@echo "Running tests..." | ||
time (cd /tmp && python3 -m emmorphpy --raw -i $(DIR)/tests/test_words.txt | \ | ||
diff -sy --suppress-common-lines - $(DIR)/tests/gold_output.txt 2>&1 | head -n100) | ||
|
||
install-user-test: install-user test | ||
@echo "The test was completed successfully!" | ||
|
||
ci-test: install-user-test | ||
|
||
uninstall: | ||
@echo "Uninstalling..." | ||
pip3 uninstall -y emmorphpy | ||
|
||
install-user-test-uninstall: install-user-test uninstall | ||
|
||
clean: | ||
rm -rf dist/ build/ emmorphpy.egg-info/ | ||
|
||
clean-build: clean build |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
# Own requirements | ||
-r requirements.txt | ||
|
||
# Packaging | ||
setuptools | ||
twine | ||
wheel |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
#!/usr/bin/env pyhton3 | ||
# -*- coding: utf-8, vim: expandtab:ts=4 -*- | ||
|
||
import setuptools | ||
from emmorphpy import __version__ | ||
|
||
with open('README.md') as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name='emmorphpy', | ||
version=__version__, | ||
author='dlazesz', # Will warn about missing e-mail | ||
description='A wrapper, a lemmatizer and REST API implemented in Python for emMorph (Humor)' | ||
' Hungarian morphological analyzer', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/dlt-rilmta/emmorphpy', | ||
# license='GNU Lesser General Public License v3 (LGPLv3)', # Never really used in favour of classifiers | ||
# platforms='any', # Never really used in favour of classifiers | ||
packages=setuptools.find_packages(exclude=['tests']), | ||
classifiers=[ | ||
'Programming Language :: Python :: 3', | ||
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)', | ||
'Operating System :: POSIX :: Linux', | ||
], | ||
python_requires='>=3.6', | ||
install_requires=['jprops', # TODO: List dependencies at only one file requirements.txt vs. setup.py | ||
'xtsv>=1.0,<2.0', | ||
], | ||
include_package_data=True, | ||
entry_points={ | ||
'console_scripts': [ | ||
'emmorphpy=emmorphpy.__main__:main', | ||
] | ||
}, | ||
) |
Oops, something went wrong.