-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from HLasse/Update_setup
Updated setup
- Loading branch information
Showing
3 changed files
with
91 additions
and
51 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
spacy>=3.1.0 | ||
numpy>=1.15.0 | ||
pandas>=1.0.0 | ||
pyphen>=0.11.0 | ||
ftfy>=6.0.3 | ||
spacy>=3.1.0<3.3.0 | ||
numpy>=1.20.0,<1.23.0 | ||
pandas>=1.0.0,<1.5.0 | ||
pyphen>=0.11.0,<0.12.0 | ||
ftfy>=6.0.3,<6.1.0 | ||
https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl | ||
en_core_web_sm==3.2.0 |
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,81 @@ | ||
[metadata] | ||
name = textdescriptives | ||
version = attr: textdescriptives.about.__version__ | ||
description = A library for calculating a variety of features from text using spaCy | ||
author = Lasse Hansen | ||
author_email = [email protected] | ||
url = https://github.com/HLasse/textdescriptives | ||
license = Apache License 2.0 | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
Topic :: Scientific/Engineering | ||
Topic :: Scientific/Engineering :: Artificial Intelligence | ||
License :: OSI Approved :: MIT License | ||
Operating System :: POSIX :: Linux | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
keywords = | ||
NLP | ||
[options] | ||
packages = find: | ||
include_package_data = true | ||
python_requires = >=3.7 | ||
zip_safe = false | ||
install_requires = | ||
spacy>=3.1.0<3.3.0 | ||
numpy>=1.20.0,<1.23.0 | ||
pandas>=1.0.0,<1.5.0 | ||
pyphen>=0.11.0,<0.12.0 | ||
ftfy>=6.0.3,<6.1.0 | ||
setup_requires = | ||
setuptools | ||
|
||
[bdist_wheel] | ||
universal = true | ||
|
||
[sdist] | ||
formats = gztar | ||
|
||
[flake8] | ||
ignore = E203, E266, E501, E731, W503 | ||
max-line-length = 88 | ||
select = B,C,E,F,W,T4,B9 | ||
exclude = | ||
.env, | ||
.git, | ||
__pycache__, | ||
|
||
[mypy] | ||
ignore_missing_imports = True | ||
no_implicit_optional = True | ||
|
||
[coverage:run] | ||
|
||
[coverage:report] | ||
omit = | ||
**/tests/* | ||
**/_vendorized/* | ||
**/about.py | ||
exclude_lines = | ||
pragma: no cover | ||
# Don't complain about missing debug-only code: | ||
def __unicode__ | ||
def __repr__ | ||
if self\.debug | ||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
show_missing = True | ||
|
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,50 +1,9 @@ | ||
import setuptools | ||
from setuptools import setup | ||
|
||
with open("textdescriptives/about.py") as f: | ||
v = f.read() | ||
for l in v.split("\n"): | ||
if l.startswith("__version__"): | ||
__version__ = l.split('"')[-2] | ||
|
||
with open("README.md", encoding="utf-8") as f: | ||
long_description = f.read() | ||
def setup_package(): | ||
setup() | ||
|
||
with open("requirements.txt", encoding="utf-8") as f: | ||
requirements = f.read().split("\n") | ||
|
||
setuptools.setup( | ||
name="textdescriptives", | ||
version=__version__, | ||
description="A library for calculating a variety of features from text using spaCy", | ||
license="Apache License 2.0", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Lasse Hansen", | ||
author_email="[email protected]", | ||
url="https://github.com/HLasse/textdescriptives", | ||
packages=setuptools.find_packages(), | ||
install_requires=[ | ||
"spacy>=3.0.3", | ||
"numpy>=1.20.0", | ||
"pandas>=1.0.0", | ||
"pyphen>=0.11.0", | ||
], | ||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
"Development Status :: 4 - Beta", | ||
# Indicate who your project is intended for | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Text Processing", | ||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
keywords="NLP", | ||
) | ||
if __name__ == "__main__": | ||
setup_package() |
9bf044a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report