File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ include LICENSE.txt
77include MANIFEST.in
88include HISTORY.rst
99include requirements.txt
10- include azure_bdist_wheel .py
10+ include azure/__init__ .py
1111
1212prune docs/_build
Original file line number Diff line number Diff line change 1- __import__ ('pkg_resources' ).declare_namespace (__name__ )
1+ from pkgutil import extend_path
2+ __path__ = extend_path (__path__ , __name__ )
Original file line number Diff line number Diff line change 1- __import__ ('pkg_resources' ).declare_namespace (__name__ )
1+ from pkgutil import extend_path
2+ __path__ = extend_path (__path__ , __name__ )
Original file line number Diff line number Diff line change 55from io import open
66import re
77try :
8- from azure_bdist_wheel import cmdclass
8+ import azure
9+ try :
10+ ver = azure .__version__
11+ raise Exception (
12+ 'This package is incompatible with azure=={}. ' .format (ver ) +
13+ 'Uninstall it with "pip uninstall azure".'
14+ )
15+ except AttributeError :
16+ pass
917except ImportError :
10- from distutils import log as logger
11- logger .warn ("Wheel is not available, disabling bdist_wheel hook" )
12- cmdclass = {}
18+ pass
1319
1420with open ('README.rst' , encoding = 'utf-8' ) as f :
1521 readme = f .read ()
4450 'Programming Language :: Python :: 3.6' ,
4551 'License :: OSI Approved :: MIT License' ,
4652 ],
47- packages = find_packages (exclude = ['tests' ]),
53+ packages = find_packages (exclude = ['tests' ,
54+ # Exclude packages that will be covered by PEP420 or nspkg
55+ 'azure' ,
56+ 'azure.datalake.store' ,
57+ ]),
4858 install_requires = [
4959 'cffi' ,
5060 'adal>=0.4.2' ,
5363 extras_require = {
5464 ":python_version<'3.4'" : ['pathlib2' ],
5565 ":python_version<='2.7'" : ['futures' ],
66+ ":python_version<'3.0'" : ['azure-mgmt-nspkg' ],
5667 },
5768 long_description = readme + '\n \n ' + history ,
5869 zip_safe = False ,
59- cmdclass = cmdclass
6070)
You can’t perform that action at this time.
0 commit comments