File tree 19 files changed +177
-18
lines changed
azure-mgmt-cognitiveservices
azure-mgmt-notificationhubs
azure-mgmt-powerbiembedded
19 files changed +177
-18
lines changed Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/batch/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-batch' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Batch Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/graphrbac/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-graphrbac' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Graph RBAC Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/authorization/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-authorization' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Authorization Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/batch/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-batch' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Batch Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/cdn/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-cdn' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure CDN Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/cognitiveservices/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-cognitiveservices' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Cognitive Services Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/commerce/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-commerce' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure commerce Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/compute/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-compute' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Compute Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/logic/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-logic' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Logic Apps Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/network/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-network' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Network Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/notificationhubs/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-notificationhubs' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Notification Hubs Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/powerbiembedded/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-powerbiembedded' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure PowerBI Embedded Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/redis/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-redis' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Redis Cache Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
Original file line number Diff line number Diff line change 2
2
from .locks import ManagementLockClient
3
3
from .policy import PolicyClient
4
4
from .resources import ResourceManagementClient
5
- from .subscriptions import SubscriptionClient
5
+ from .subscriptions import SubscriptionClient
6
+
7
+ from .version import VERSION
8
+
9
+ __version__ = VERSION
10
+
Original file line number Diff line number Diff line change
1
+ VERSION = "0.30.0rc4"
Original file line number Diff line number Diff line change 16
16
#--------------------------------------------------------------------------
17
17
18
18
from setuptools import setup
19
+ import re
19
20
20
21
# azure v0.x is not compatible with this package
21
22
# azure v0.x used to have a __version__ attribute (newer versions don't)
32
33
except ImportError :
33
34
pass
34
35
36
+ # Version extraction inspired from 'requests'
37
+ with open ('azure/mgmt/resource/version.py' , 'r' ) as fd :
38
+ version = re .search (r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]' ,
39
+ fd .read (), re .MULTILINE ).group (1 )
40
+
41
+ if not version :
42
+ raise RuntimeError ('Cannot find version information' )
43
+
35
44
setup (
36
45
name = 'azure-mgmt-resource' ,
37
- version = '0.30.0rc4' ,
46
+ version = version ,
38
47
description = 'Microsoft Azure Resource Management Client Library for Python' ,
39
48
long_description = open ('README.rst' , 'r' ).read (),
40
49
license = 'Apache License 2.0' ,
You can’t perform that action at this time.
0 commit comments