This repository was archived by the owner on Nov 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
67 lines (54 loc) · 1.82 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
66
# -*- coding: utf-8 -*-
"""
:mod:`setup.py`
===============
.. moduleauthor:: hbldh <[email protected]>
Created on 2015-11-05
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import sys
import re
from codecs import open
from setuptools import setup, find_packages
basedir = os.path.dirname(os.path.abspath(__file__))
if sys.argv[-1] == 'publish':
os.system('python setup.py register')
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
def read(f):
return open(f, encoding='utf-8').read()
with open('xmlr/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
setup(
name='xmlr',
version=version,
author='Henrik Blidh',
author_email='[email protected]',
url='https://github.com/hbldh/xmlr',
description='XML parsing package for very large files',
long_description=read('README.rst') + '\n\n' + read('HISTORY.rst'),
license='MIT',
keywords=['XML', 'parsing', 'json', 'conversion'],
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Text Processing :: Markup :: XML'
],
packages=find_packages(exclude=['tests', 'docs']),
test_suite="tests",
dependency_links=[],
entry_points={},
)