-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (59 loc) · 2.46 KB
/
setup.py
File metadata and controls
68 lines (59 loc) · 2.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2017 Doug Henderson <[email protected]>
# Copyright (C) 2004 Philippe Normand <[email protected]>
#
# This file is part of EaseXML3 (http://easexml.base-art.net)
#
# Under PSF License (see COPYING)
from __future__ import print_function
import sys
try:
from distutils.core import setup
from distutils.command.sdist import sdist
except ImportError:
print("python-dev package is missing.")
sys.exit()
# patch distutils if it can't cope with the "classifiers" keyword
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
class MySdist(sdist):
def prune_file_list (self):
" exclude .svn versioning infos "
sdist.prune_file_list(self)
self.filelist.exclude_pattern(r'/(\.svn)/.*', is_regex=1)
setup( name = "EaseXML3",
version = "0.3.0",
description = "An XML wrapper to Python Objects",
long_description = """\
EaseXML3 is an object-xml mapper. It allows to translate XML to Python
objects and vice-versa. Your developer life is made easier :
- design some classes with special attributes
- manipulate the objects in the Python way
- input/output from/to XML data
- input/output from/to Python dictionaries
""",
keywords = [ 'xml', 'easy', 'data-binding', 'mapping', 'dtd', 'schema' ],
url = "http://www.example.com",
download_url = "http://www.example.com/download/",
classifiers = [ "Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Topic :: Text Processing :: Markup :: XML",
"Topic :: Software Development :: Libraries :: Python Modules",
],
license = "PSF",
author = "Doug Henderson",
author_email = "[email protected]",
maintainer = "Doug Henderson",
maintainer_email = "[email protected]",
packages = [ 'EaseXML3', 'EaseXML3.Validation' ],
cmdclass = {'sdist': MySdist}
)