Skip to content

Commit

Permalink
Added setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsproisl committed Oct 20, 2020
1 parent 5a1682e commit 6462859
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 1. Upload to PyPI:
# (Note: Building 'bdist_wheel' requires package 'wheel')
# python3 setup.py sdist bdist_wheel
# twine upload dist/*
#
# 2. Check if everything looks all right: https://pypi.python.org/pypi/textcomplexity
#
# 3. Go to
# https://github.com/tsproisl/textcomplexity/releases/new
# and create a new release

from os import path
from setuptools import setup

version = {}
with open("textcomplexity/version.py") as fh:
exec(fh.read(), version)

here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as fh:
long_description = fh.read()

setup(
name='textcomplexity',
version=version["__version__"],
author='Thomas Proisl',
author_email='[email protected]',
packages=[
'textcomplexity',
'textcomplexity.utils',
],
scripts=[
'bin/txtcomplexity',
],
url="https://github.com/tsproisl/textcomplexity",
download_url='https://github.com/tsproisl/textcomplexity/archive/v%s.tar.gz' % version["__version__"],
license='GNU General Public License v3 or later (GPLv3+)',
description="Linguistic and stylistic complexity measures for text",
long_description=long_description,
install_requires=[
"networkx",
"nltk",
"nltk_tgrep",
"numpy",
"scipy",
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Linguistic',
],
)

0 comments on commit 6462859

Please sign in to comment.