forked from witten/novel-stats
Fix arguments error.
This commit is contained in:
parent
457fd858e7
commit
9bc6d20a74
|
@ -31,7 +31,8 @@ def count_words(line):
|
||||||
return count
|
return count
|
||||||
|
|
||||||
|
|
||||||
def main(arguments):
|
def main():
|
||||||
|
arguments = sys.argv[1:]
|
||||||
filename = arguments[0]
|
filename = arguments[0]
|
||||||
chapter_number = None
|
chapter_number = None
|
||||||
chapter_word_count = 0
|
chapter_word_count = 0
|
||||||
|
@ -70,4 +71,4 @@ def main(arguments):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv[1:])
|
main()
|
|
@ -0,0 +1,30 @@
|
||||||
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
|
VERSION = '0.1.0'
|
||||||
|
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='novel-stats',
|
||||||
|
version=VERSION,
|
||||||
|
description='Produce word count statistics for a novel written in Markdown format.',
|
||||||
|
author='Dan Helfman',
|
||||||
|
author_email='witten@torsion.org',
|
||||||
|
url='https://projects.torsion.org/witten/novel-stats',
|
||||||
|
classifiers=[
|
||||||
|
'Development Status :: 4 - Beta',
|
||||||
|
'Environment :: Console',
|
||||||
|
'Intended Audience :: Other Audience',
|
||||||
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
||||||
|
'Programming Language :: Python',
|
||||||
|
'Topic :: Office/Business',
|
||||||
|
'Topic :: Text Processing :: Markup',
|
||||||
|
],
|
||||||
|
packages=find_packages(exclude=['tests*']),
|
||||||
|
entry_points={
|
||||||
|
'console_scripts': [
|
||||||
|
'novel-stats = novel_stats.novel_stats:main',
|
||||||
|
]
|
||||||
|
},
|
||||||
|
install_requires=(),
|
||||||
|
include_package_data=True,
|
||||||
|
)
|
Loading…
Reference in New Issue