This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make utils pip installable using setup.py
- Added pip wheel metadata to gitignore - Created the setup.py file exposing only the utils_nlp directory - updated setup documentation Specifying that windows installation breaks - add steps to use pip to install repo - update pip install documentation to use ssh and avoid asking for name and password 2. Point to the right egg file - match version number to August from review comment in init.py - Add Manifest.in to source distribution - Update documentation warning users of windows installation issues
- Loading branch information
Emmanuel Awa
authored and
Emmanuel Awa
committed
Jul 24, 2019
1 parent
2f37f0d
commit 76360ec
Showing
5 changed files
with
118 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
graft utils_nlp | ||
|
||
global-exclude *.py[cod] __pycache__ *.so *.dylib | ||
|
||
exclude README.md | ||
exclude SETUP.md | ||
exclude CONTRIBUTING.md | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
__title__ = "Microsoft NLP" | ||
__version__ = "2019.08" | ||
__author__ = "NLPDev Team at Microsoft" | ||
__license__ = "MIT" | ||
__copyright__ = "Copyright 2018-present Microsoft Corporation" | ||
|
||
# Synonyms | ||
TITLE = __title__ | ||
VERSION = __version__ | ||
AUTHOR = __author__ | ||
LICENSE = __license__ | ||
COPYRIGHT = __copyright__ |
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,80 @@ | ||
#!/usr/bin/env python | ||
# -*- encoding: utf-8 -*- | ||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
|
||
import io | ||
|
||
import re | ||
from glob import glob | ||
from os.path import basename, dirname, join, splitext | ||
|
||
from setuptools import find_packages, setup | ||
|
||
VERSION = __import__("__init__").VERSION | ||
|
||
|
||
def read(*names, **kwargs): | ||
with io.open( | ||
join(dirname(__file__), *names), | ||
encoding=kwargs.get("encoding", "utf8"), | ||
) as fh: | ||
return fh.read() | ||
|
||
|
||
setup( | ||
name="utils_nlp", | ||
version=VERSION, | ||
license="MIT License", | ||
description="NLP Utility functions that are used for best practices in building state-of-the-art NLP methods and scenarios. Developed by Microsoft AI CAT", | ||
long_description="%s\n%s" | ||
% ( | ||
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub( | ||
"", read("README.md") | ||
), | ||
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CONTRIBUTING.md")), | ||
), | ||
author="AI CAT", | ||
author_email="teamsharat@microsoft.com", | ||
url="https://github.com/microsoft/nlp", | ||
packages=["utils_nlp"], | ||
include_package_data=True, | ||
zip_safe=True, | ||
classifiers=[ | ||
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: Unix", | ||
"Operating System :: POSIX", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Text Processing :: Linguistic", | ||
"Topic :: Utilities", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Financial and Insurance Industry", | ||
"Intended Audience :: Healthcare Industry", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: Telecommunications Industry", | ||
], | ||
project_urls={ | ||
"Documentation": "https://github.com/microsoft/nlp/", | ||
"Issue Tracker": "https://github.com/microsoft/nlp/issues", | ||
}, | ||
keywords=[ | ||
"Microsoft NLP", | ||
"Natural Language Processing", | ||
"Text Processing", | ||
"Word Embedding", | ||
], | ||
python_requires=">=3.6", | ||
install_requires=[], | ||
dependency_links=[], | ||
extras_require={}, | ||
setup_requires=[], | ||
) |