-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
65 lines (53 loc) · 2.1 KB
/
setup.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(name='mf2util',
version='0.5.2',
description='Python Microformats2 utilities, a companion to mf2py',
long_description="""
Microformats2 Utilities
=======================
Microformats2 provides an extremely flexible way to mark up HTML
documents, so that human-centric data is machine-discoverable. This
utility can be used to interpret a microformatted post or event, for
display as a `comment <http://indiewebcamp.com/comments-presentation>`__
or `reply-context <http://indiewebcamp.com/reply-context>`__.
The library itself has no dependencies, but it won't do you much good
without an mf2 parser. I use and recommend
`mf2py <https://github.com/tommorris/mf2py>`__.
Full `documentation is on GitHub
<https://github.com/kylewm/mf2util/blob/master/README.md>`__.
Compatibility: Python 2.6, 2.7, 3.3+
License: `Simplified BSD <http://opensource.org/licenses/BSD-2-Clause>`__
""",
author='Kyle Mahan',
author_email='[email protected]',
url='http://indiewebcamp.com/mf2util',
py_modules=['mf2util'],
tests_require=['pytest', 'mf2py'],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: HTML'
]
)