1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
# Load in our dependencies
import os
from setuptools import setup, find_packages
# Load in VERSION from standalone file to avoid loading library
with open(os.path.join(os.path.dirname(__file__), 'restructuredtext_lint', 'VERSION'), 'r') as version_file:
VERSION = version_file.read().strip()
# Declare our library
setup(
name='restructuredtext_lint',
version=VERSION,
description='reStructuredText linter',
long_description=open('README.rst').read(),
keywords=[
'restructuredtext',
'restructured text',
'rest',
'rst',
'lint'
],
author='Todd Wolfson',
author_email='todd@twolfson.com',
url='https://github.com/twolfson/restructuredtext-lint',
download_url='https://github.com/twolfson/restructuredtext-lint/archive/master.zip',
entry_points={
'console_scripts': [
'restructuredtext-lint = restructuredtext_lint.cli:main',
'rst-lint = restructuredtext_lint.cli:main'
]
},
packages=find_packages(),
license='UNLICENSE',
# DEV: Include files like `VERSION` in our package
include_package_data=True,
# DEV: Mark our package as not zip safe so we can load `VERSION` on install
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: Public Domain',
'Operating System :: OS Independent',
'Topic :: Text Processing :: Markup'
]
)
|