-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' for updating to release v1.0.11
- Loading branch information
Showing
78 changed files
with
4,680 additions
and
1,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ build/ | |
development/ | ||
test_cases/ | ||
!xmlschema/tests/test_cases/ | ||
!xmlschema/unicode_categories.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,43 @@ | |
# | ||
# @author Davide Brunato <[email protected]> | ||
# | ||
import importlib | ||
from setuptools import setup | ||
from setuptools.command.develop import develop | ||
from setuptools.command.install import install | ||
|
||
with open("README.rst") as readme: | ||
long_description = readme.read() | ||
|
||
|
||
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() | ||
|
||
|
||
setup( | ||
name='xmlschema', | ||
version='1.0.10', | ||
install_requires=['elementpath~=1.1.5'], | ||
version='1.0.11', | ||
install_requires=['elementpath~=1.1.7'], | ||
packages=['xmlschema'], | ||
include_package_data=True, | ||
cmdclass={ | ||
'develop': DevelopCommand, | ||
'install': InstallCommand | ||
}, | ||
author='Davide Brunato', | ||
author_email='[email protected]', | ||
url='https://github.com/brunato/xmlschema', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,13 @@ | |
from .documents import validate, to_dict, to_json, from_json | ||
|
||
from .validators import ( | ||
XMLSchemaValidatorError, XMLSchemaParseError, XMLSchemaNotBuiltError, XMLSchemaValidationError, | ||
XMLSchemaDecodeError, XMLSchemaEncodeError, XMLSchemaChildrenValidationError, XMLSchemaIncludeWarning, | ||
XMLSchemaImportWarning, XsdGlobals, XMLSchemaBase, XMLSchema, XMLSchema10 | ||
XMLSchemaValidatorError, XMLSchemaParseError, XMLSchemaNotBuiltError, XMLSchemaModelError, | ||
XMLSchemaModelDepthError, XMLSchemaValidationError, XMLSchemaDecodeError, XMLSchemaEncodeError, | ||
XMLSchemaChildrenValidationError, XMLSchemaIncludeWarning, XMLSchemaImportWarning, XsdGlobals, | ||
XMLSchemaBase, XMLSchema, XMLSchema10 | ||
) | ||
|
||
__version__ = '1.0.10' | ||
__version__ = '1.0.11' | ||
__author__ = "Davide Brunato" | ||
__contact__ = "[email protected]" | ||
__copyright__ = "Copyright 2016-2019, SISSA" | ||
|
@@ -40,6 +41,7 @@ def XMLSchema_v1_0(*args, **kwargs): | |
"and will be removed in 1.1 version", DeprecationWarning, stacklevel=2) | ||
return XMLSchema10(*args, **kwargs) | ||
|
||
|
||
def etree_get_namespaces(*args, **kwargs): | ||
import warnings | ||
warnings.warn("etree_get_namespaces() function name has been replaced by fetch_namespaces() " | ||
|
Oops, something went wrong.