Skip to content

Commit 824468c

Browse files
authored
ADL nskpkg 3.0.1 (#3631)
* ADL nskpkg 3.0.1 * missing sys * Improve manifest
1 parent acc1fb5 commit 824468c

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

azure-mgmt-datalake-nspkg/MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
4+
include azure/mgmt/datalake/__init__.py

azure-mgmt-datalake-nspkg/README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This is the Microsoft Azure Data Lake Management namespace package.
55

66
This package is not intended to be installed directly by the end user.
77

8-
Since version 3.0, this is Python 2 package only, Python 3.x SDKs will use `PEP420 <https://www.python.org/dev/peps/pep-0420/>` as namespace package strategy.
9-
This package will use `python_requires` to enforce Python 2 installation. This implies that you might see this package on Python 3 environment if you have pip < 9.0 or setuptools < 24.2.0.
8+
Since version 3.0, this is Python 2 package only, Python 3.x SDKs will use `PEP420 <https://www.python.org/dev/peps/pep-0420/>`__ as namespace package strategy.
9+
To avoid issues with package servers that does not support `python_requires`, a Python 3 package is installed but is empty.
1010

1111
It provides the necessary files for other packages to extend the azure.mgmt.datalake namespace.
1212

azure-mgmt-datalake-nspkg/setup.cfg

-2
This file was deleted.

azure-mgmt-datalake-nspkg/setup.py

+14-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Licensed under the MIT License. See License.txt in the project root for
66
# license information.
77
#--------------------------------------------------------------------------
8-
8+
import sys
99
from setuptools import setup
1010

1111
# azure v0.x is not compatible with this package
@@ -23,9 +23,16 @@
2323
except ImportError:
2424
pass
2525

26+
PACKAGES = []
27+
# Do an empty package on Python 3 and not python_requires, since not everybody is ready
28+
# https://github.com/Azure/azure-sdk-for-python/issues/3447
29+
# https://github.com/Azure/azure-sdk-for-python/issues/3481
30+
if sys.version_info[0] < 3:
31+
PACKAGES = ['azure.mgmt.datalake']
32+
2633
setup(
2734
name='azure-mgmt-datalake-nspkg',
28-
version='3.0.0',
35+
version='3.0.1',
2936
description='Microsoft Azure Data Lake Management Namespace Package [Internal]',
3037
long_description=open('README.rst', 'r').read(),
3138
license='MIT License',
@@ -37,13 +44,14 @@
3744
'Programming Language :: Python',
3845
'Programming Language :: Python :: 2',
3946
'Programming Language :: Python :: 2.7',
47+
'Programming Language :: Python :: 3.4',
48+
'Programming Language :: Python :: 3.5',
49+
'Programming Language :: Python :: 3.6',
50+
'Programming Language :: Python :: 3.7',
4051
'License :: OSI Approved :: MIT License',
4152
],
42-
python_requires='<3',
4353
zip_safe=False,
44-
packages=[
45-
'azure.mgmt.datalake',
46-
],
54+
packages=PACKAGES,
4755
install_requires=[
4856
'azure-mgmt-nspkg>=3.0.0',
4957
],

0 commit comments

Comments
 (0)