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
54 lines (45 loc) · 1.61 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (45 loc) · 1.61 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
54
#! /usr/bin/env python
import codecs
import os
from setuptools import setup, find_packages
long_description = codecs.open("README.md", "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.4.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')),
python_requires=">=3.8",
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",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: Markup :: XML",
],
long_description=long_description,
)