2018-11-28 15:13:04 +01:00
|
|
|
#! /usr/bin/env python
|
2016-10-14 13:48:19 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2019-01-20 16:53:23 +01:00
|
|
|
# Copyright (c), 2016-2019, SISSA (International School for Advanced Studies).
|
2016-10-14 13:48:19 +02:00
|
|
|
# All rights reserved.
|
|
|
|
# This file is distributed under the terms of the MIT License.
|
|
|
|
# See the file 'LICENSE' in the root directory of the present
|
|
|
|
# distribution, or http://opensource.org/licenses/MIT.
|
|
|
|
#
|
|
|
|
# @author Davide Brunato <brunato@sissa.it>
|
|
|
|
#
|
2019-03-12 18:52:58 +01:00
|
|
|
import importlib
|
2019-01-20 18:08:07 +01:00
|
|
|
from setuptools import setup
|
2019-03-12 18:52:58 +01:00
|
|
|
from setuptools.command.develop import develop
|
|
|
|
from setuptools.command.install import install
|
2016-10-14 13:48:19 +02:00
|
|
|
|
|
|
|
with open("README.rst") as readme:
|
|
|
|
long_description = readme.read()
|
|
|
|
|
2019-03-12 18:52:58 +01:00
|
|
|
|
|
|
|
class DevelopCommand(develop):
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
develop.run(self)
|
|
|
|
print("Post-develop: create Unicode categories JSON file")
|
|
|
|
codepoints_module = importlib.import_module('xmlschema.codepoints')
|
|
|
|
codepoints_module.save_unicode_categories()
|
|
|
|
|
|
|
|
|
|
|
|
class InstallCommand(install):
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
install.run(self)
|
|
|
|
print("Post-install: create Unicode categories JSON file")
|
|
|
|
codepoints_module = importlib.import_module('xmlschema.codepoints')
|
|
|
|
codepoints_module.save_unicode_categories()
|
|
|
|
|
|
|
|
|
2016-10-25 16:43:46 +02:00
|
|
|
setup(
|
2016-10-14 13:48:19 +02:00
|
|
|
name='xmlschema',
|
2019-10-15 21:40:40 +02:00
|
|
|
version='1.0.16',
|
2019-11-14 17:01:40 +01:00
|
|
|
setup_requires=['elementpath~=1.3.0'],
|
2019-10-01 06:44:31 +02:00
|
|
|
install_requires=['elementpath~=1.3.0'],
|
2018-11-28 15:13:51 +01:00
|
|
|
packages=['xmlschema'],
|
2018-11-28 15:17:45 +01:00
|
|
|
include_package_data=True,
|
2019-03-12 18:52:58 +01:00
|
|
|
cmdclass={
|
|
|
|
'develop': DevelopCommand,
|
|
|
|
'install': InstallCommand
|
|
|
|
},
|
2016-10-14 13:48:19 +02:00
|
|
|
author='Davide Brunato',
|
|
|
|
author_email='brunato@sissa.it',
|
|
|
|
url='https://github.com/brunato/xmlschema',
|
|
|
|
license='MIT',
|
2017-03-30 13:53:50 +02:00
|
|
|
description='An XML Schema validator and decoder',
|
2016-10-14 13:48:19 +02:00
|
|
|
long_description=long_description,
|
|
|
|
classifiers=[
|
2017-02-17 22:20:50 +01:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2016-10-14 13:48:19 +02:00
|
|
|
'Intended Audience :: Developers',
|
2017-06-25 07:45:38 +02:00
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'Intended Audience :: Science/Research',
|
2016-10-14 13:48:19 +02:00
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-02-17 22:20:50 +01:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2018-05-03 06:38:42 +02:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2019-11-18 09:23:14 +01:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2016-10-14 13:48:19 +02:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Topic :: Software Development :: Libraries'
|
|
|
|
]
|
|
|
|
)
|