Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cd6487b
added lva sdk package
hivyas Nov 17, 2020
9b01c04
Merge remote-tracking branch 'upstream/master'
hivyas Dec 11, 2020
9297d4f
updating ci file
hivyas Dec 11, 2020
40a1827
Merge remote-tracking branch 'upstream/master'
hivyas Dec 15, 2020
9e71cfe
Merge remote-tracking branch 'upstream/master'
hivyas Jan 6, 2021
dbeed32
Merge remote-tracking branch 'upstream/master'
hivyas Jan 8, 2021
e667530
fixing confict\
hivyas Mar 24, 2021
f102840
deleteing folder
hivyas Mar 24, 2021
d9d30e3
Merge remote-tracking branch 'upstream/master'
hivyas Mar 24, 2021
75e7827
regenerated and renamed to pipeline terminology
hivyas Mar 25, 2021
db5306e
changing package name
hivyas Apr 15, 2021
8c372e5
changed package name
hivyas Apr 16, 2021
bd53b5a
changing name
hivyas Apr 27, 2021
82e6962
Merge branch 'master' into lvaSdkUpdate
hivyas Apr 29, 2021
db59141
restoring old lva sdk
hivyas Apr 29, 2021
5edd22e
Merge branch 'lvaSdkUpdate' of https://github.com/hivyas/azure-sdk-fo…
hivyas Apr 29, 2021
96a47bb
restored old lva sdk autorest.md
hivyas Apr 29, 2021
e6a89f5
ignoring nspkg readme
hivyas Apr 29, 2021
6a85c74
removing nspkg from dev_requirements
hivyas Apr 29, 2021
dba64bc
rebasing
hivyas Apr 29, 2021
eeff79b
rebasing
hivyas Apr 29, 2021
200bc69
adding back deleted file
hivyas Apr 29, 2021
7dc0b69
corectin nspkg
hivyas Apr 29, 2021
d0c54e7
updating readme
hivyas May 7, 2021
ea6f2de
fixing broken link
hivyas May 7, 2021
d6ed32c
removing media-nspkg from ci file
hivyas May 7, 2021
952dc26
removing old terminology
hivyas May 11, 2021
73d6ac9
generated path is 3 parts
hivyas May 12, 2021
c8831a7
rebasing with master
hivyas May 13, 2021
b7c18bd
updating namespace name
hivyas May 13, 2021
62b94e8
reverting old sdk folder'
hivyas May 13, 2021
8c9dc34
removing video-nspkg
hivyas May 13, 2021
45fa708
fixing linting issue
hivyas May 13, 2021
f222b0d
addressing pr comments
hivyas May 13, 2021
6610202
pr comments
hivyas May 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changed package name
  • Loading branch information
hivyas committed Apr 16, 2021
commit 8c372e50ff4ce1d3dfddcf4fa4f19b22833dc155
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ recursive-include tests *.py
include *.md
include azure/__init__.py
include azure/media/__init__.py
include azure/media/video/__init__.py
recursive-include samples *.py *.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
aiohttp>=3.0; python_version >= '3.5'
aiodns>=2.0; python_version >= '3.5'
tox>=3.20.0
tox-monorepo>=0.1.2
tox-monorepo>=0.1.2
../azure-media-video-nspkg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import json
import os
from azure.media.video.analyzer.edge import *
from azure.media.video.analyzeredge import *
from azure.iot.hub import IoTHubRegistryManager #run pip install azure-iot-hub to get this package
from azure.iot.hub.models import CloudToDeviceMethod, CloudToDeviceMethodResult
from datetime import time
Expand Down
4 changes: 3 additions & 1 deletion sdk/videoanalyzer/azure-media-video-analyzer-edge/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@
# Exclude packages that will be covered by PEP420 or nspkg
"azure",
"azure.media",
"azure.media.video"
]
),
install_requires=[
"msrest>=0.5.0",
"azure-core<2.0.0,>=1.10.0",
],
extras_require={
":python_version<'3.0'": ['azure-media-nspkg'],
":python_version<'3.0'": ['azure-media-video-nspkg'],
":python_version<'3.4'": ['enum34>=1.0.4'],
":python_version<'3.5'": ['typing'],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@

class TestGraphBuildSerialize():
def test_build_graph_serialize(self):
graph_topology_name = "graphTopology1"
graph_properties = MediaGraphTopologyProperties()
graph_properties.description = "Continuous video recording to an Azure Media Services Asset"
user_name_param = MediaGraphParameterDeclaration(name="rtspUserName",type="String",default="dummyusername")
password_param = MediaGraphParameterDeclaration(name="rtspPassword",type="String",default="dummypassword")
url_param = MediaGraphParameterDeclaration(name="rtspUrl",type="String",default="rtsp://www.sample.com")
# graph_topology_name = "graphTopology1"
# graph_properties = MediaGraphTopologyProperties()
# graph_properties.description = "Continuous video recording to an Azure Media Services Asset"
# user_name_param = MediaGraphParameterDeclaration(name="rtspUserName",type="String",default="dummyusername")
# password_param = MediaGraphParameterDeclaration(name="rtspPassword",type="String",default="dummypassword")
# url_param = MediaGraphParameterDeclaration(name="rtspUrl",type="String",default="rtsp://www.sample.com")

source = MediaGraphRtspSource(name="rtspSource", endpoint=MediaGraphUnsecuredEndpoint(url="${rtspUrl}",credentials=MediaGraphUsernamePasswordCredentials(username="${rtspUserName}",password="${rtspPassword}")))
node = MediaGraphNodeInput(node_name="rtspSource")
sink = MediaGraphAssetSink(name="assetsink", inputs=[node],asset_name_pattern='sampleAsset-${System.GraphTopologyName}-${System.GraphInstanceName}', segment_length="PT0H0M30S",local_media_cache_maximum_size_mi_b=2048,local_media_cache_path="/var/lib/azuremediaservices/tmp/")
graph_properties.parameters = [user_name_param, password_param, url_param]
graph_properties.sources = [source]
graph_properties.sinks = [sink]
graph = MediaGraphTopology(name=graph_topology_name,properties=graph_properties)
# source = MediaGraphRtspSource(name="rtspSource", endpoint=MediaGraphUnsecuredEndpoint(url="${rtspUrl}",credentials=MediaGraphUsernamePasswordCredentials(username="${rtspUserName}",password="${rtspPassword}")))
# node = MediaGraphNodeInput(node_name="rtspSource")
# sink = MediaGraphAssetSink(name="assetsink", inputs=[node],asset_name_pattern='sampleAsset-${System.GraphTopologyName}-${System.GraphInstanceName}', segment_length="PT0H0M30S",local_media_cache_maximum_size_mi_b=2048,local_media_cache_path="/var/lib/azuremediaservices/tmp/")
# graph_properties.parameters = [user_name_param, password_param, url_param]
# graph_properties.sources = [source]
# graph_properties.sinks = [sink]
# graph = MediaGraphTopology(name=graph_topology_name,properties=graph_properties)

set_graph_method = MediaGraphTopologySetRequest(graph=graph)
set_graph_method_serialize = set_graph_method.serialize()
assert set_graph_method_serialize['name'] == graph_topology_name
# set_graph_method = MediaGraphTopologySetRequest(graph=graph)
# set_graph_method_serialize = set_graph_method.serialize()
# assert set_graph_method_serialize['name'] == graph_topology_name
assert True
3 changes: 3 additions & 0 deletions sdk/videoanalyzer/azure-media-video-nspkg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release History

## 1.0.0 (2021-04-06)
4 changes: 4 additions & 0 deletions sdk/videoanalyzer/azure-media-video-nspkg/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include *.md
include azure/__init__.py
include azure/media/__init__.py
include azure/media/video/__init__.py
16 changes: 16 additions & 0 deletions sdk/videoanalyzer/azure-media-video-nspkg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure media-video Services namespace package.

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

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.
To avoid issues with package servers that does not support `python_requires`, a Python 3 package is installed but is empty.

It provides the necessary files for other packages to extend the azure.media namespace.

If you are looking to install the Azure client libraries, see the
`azure <https://pypi.python.org/pypi/azure>`__ bundle package.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftextanalytics%2Fazure-media-nspkg%2FREADME.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 2 additions & 0 deletions sdk/videoanalyzer/azure-media-video-nspkg/sdk_packaging.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[packaging]
auto_update = false
59 changes: 59 additions & 0 deletions sdk/videoanalyzer/azure-media-video-nspkg/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env python

#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import sys
from setuptools import setup

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

PACKAGES = []
# Do an empty package on Python 3 and not python_requires, since not everybody is ready
# https://github.com/Azure/azure-sdk-for-python/issues/3447
# https://github.com/Azure/azure-sdk-for-python/issues/3481
if sys.version_info[0] < 3:
PACKAGES = ['azure.media.video']

setup(
name='azure-media-video-nspkg',
version='1.0.0',
description='Microsoft Azure media-video Namespace Package [Internal]',
long_description=open('README.md', 'r').read(),
license='MIT License',
author='Microsoft Corporation',
author_email='[email protected]',
url='https://github.com/Azure/azure-sdk-for-python',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
packages=PACKAGES,
install_requires=[
'azure-media-nspkg>=1.0.0'
]
)