forked from OpenVoiceOS/ovos-lingua-franca
-
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.
- renames package to ovos-lingua-franca - uninstall lingua_franca on pip install
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 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 |
---|---|---|
@@ -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): | ||
|
@@ -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=[ | ||
|