Skip to content

Commit

Permalink
feat/replace lingua_franca
Browse files Browse the repository at this point in the history
- renames package to ovos-lingua-franca
- uninstall lingua_franca on pip install
  • Loading branch information
JarbasAl committed Jan 18, 2022
1 parent eb6d677 commit 64e09cb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
13 changes: 5 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.md) [![CLA](https://img.shields.io/badge/CLA%3F-Required-blue.svg)](https://mycroft.ai/cla) [![Team](https://img.shields.io/badge/Team-Languages-violetblue.svg)](https://github.com/MycroftAI/contributors/blob/master/team/Languages.md) ![Status](https://img.shields.io/badge/-Alpha-orange.svg)
# OpenVoiceOS Lingua Franca

[![Build Status](https://travis-ci.org/MycroftAI/lingua-franca.svg?branch=master)](https://travis-ci.org/MycroftAI/lingua-franca) [![Coverage Status](https://coveralls.io/repos/github/MycroftAI/lingua-franca/badge.svg?branch=master)](https://coveralls.io/github/MycroftAI/lingua-franca?branch=master)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
[![Join chat](https://img.shields.io/badge/Mattermost-join_chat-brightgreen.svg)](https://chat.mycroft.ai/community/channels/languages)

# Lingua Franca

Mycroft's multilingual text parsing and formatting library
OpenVoiceOS's multilingual text parsing and formatting library

Lingua Franca (_noun_)<br>
> a framework that is adopted as the common language between speakers with different native tongues</dr>
This project has been forked from mycroft-core, it replaces it!

:warning: `pip install ovos-lingua-franca` will also `pip uninstall lingua-franca -y` :warning:

- [Lingua Franca](#lingua-franca)
- [Formatting](#formatting)
Expand Down
25 changes: 19 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import os
from distutils.command.install import install

import pip
from setuptools import setup


class CustomInstall(install):
"""Custom handler for the 'install' command."""

def run(self):
# uninstall lingua_franca
# the whole purpose of this package is to replace it
pip.main(["uninstall", "lingua_franca", "-y"])
super().run()


def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
Expand All @@ -26,17 +38,18 @@ def required(requirements_file):
long_description = fh.read()

setup(
name='lingua_franca',
version='0.4.2',
name='ovos-lingua-franca',
version='0.4.3a1',
packages=['lingua_franca', 'lingua_franca.lang'],
url='https://github.com/MycroftAI/lingua-franca',
cmdclass={'install': CustomInstall},
url='https://github.com/OpenVoiceOS/lingua_plus',
license='Apache2.0',
package_data={'': extra_files},
include_package_data=True,
install_requires=required('requirements.txt'),
author='Mycroft AI',
author_email='[email protected]',
description='Mycroft\'s multilingual text parsing and formatting library',
author='Mycroft AI / OVOS',
author_email='[email protected]',
description='OpenVoiceOS\'s multilingual text parsing and formatting library',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
Expand Down

0 comments on commit 64e09cb

Please sign in to comment.