Skip to content

Commit

Permalink
Merge pull request #25 from HLasse/Update_setup
Browse files Browse the repository at this point in the history
Updated setup
  • Loading branch information
HLasse authored Apr 5, 2022
2 parents e9979ab + 3ad0267 commit 9bf044a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 51 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
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
81 changes: 81 additions & 0 deletions setup.cfg
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

51 changes: 5 additions & 46 deletions setup.py
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()

1 comment on commit 9bf044a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
textdescriptives
   init.py40100% 
   about.py30100% 
   dataframe_extract.py86693%71, 128–132
   load_components.py120100% 
textdescriptives/components
   init.py40100% 
   dependency_distance.py320100% 
   descriptive_stats.py51198%112
   pos_stats.py25292%13, 44
   readability.py720100% 
   utils.py160100% 
textdescriptives/tests
   init.py00100% 
   books.py120100% 
   test_dependency_distance.py490100% 
   test_descriptive_stats.py600100% 
   test_extractor.py40392%21–26
   test_load_components.py150100% 
   test_pos_stats.py230100% 
   test_readability.py72297%41–42
TOTAL5761498% 

Please sign in to comment.