forked from christian-oudard/htmltreediff
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (44 loc) · 1.44 KB
/
setup.py
File metadata and controls
53 lines (44 loc) · 1.44 KB
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
#! /usr/bin/env python
# coding: utf-8
import codecs
import os
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
long_description = codecs.open("README.rst", "r", "utf-8").read()
def strip_comments(line):
return line.split('#', 1)[0].strip()
def get_requirements(path):
for line in open(os.path.join(os.getcwd(), path)).readlines():
line = strip_comments(line)
if line:
yield line
setup(
name="html-tree-diff",
version="0.3.0",
description="Structure-aware diff for html and xml documents",
author="Christian Oudard",
author_email="christian.oudard@gmail.com",
url="http://github.com/PolicyStat/htmltreediff/",
platforms=["any"],
license="BSD",
packages=find_packages(),
scripts=[],
zip_safe=False,
install_requires=list(get_requirements('requirements/default.txt')),
tests_require=list(get_requirements('requirements/testing.txt')),
cmdclass={},
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: Markup :: XML",
],
long_description=long_description,
)