-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separated attach. Need to include new test location for repo auto tests
- Loading branch information
1 parent
5a53e49
commit 4804f5a
Showing
8 changed files
with
111 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Changelog | ||
|
||
## 1.0.0b1 (Unreleased) | ||
|
||
- Separate from distro | ||
([#286](https://github.com/microsoft/ApplicationInsights-Python/pull/286)) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...telemetry-autoinstrumentation/azure/monitor/opentelemetry/autoinstrumentation/_version.py
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License in the project root for | ||
# license information. | ||
# -------------------------------------------------------------------------- | ||
|
||
VERSION = "1.0.0b1" |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#!/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 os | ||
import re | ||
|
||
from setuptools import find_packages, setup | ||
|
||
# Change the PACKAGE_NAME only to change folder and different name | ||
PACKAGE_NAME = "azure-monitor-opentelemetry-autoinstrumentation" | ||
PACKAGE_PPRINT_NAME = "Azure Monitor Opentelemetry Distro for Auto-Instrumentation" | ||
|
||
# a-b-c => a/b/c | ||
package_folder_path = PACKAGE_NAME.replace("-", "/") | ||
|
||
|
||
# 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 | ||
|
||
# Version extraction inspired from 'requests' | ||
with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: | ||
version = re.search( | ||
r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE | ||
).group(1) | ||
|
||
if not version: | ||
raise RuntimeError("Cannot find version information") | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=version, | ||
description="Microsoft {} Client Library for Python".format( | ||
PACKAGE_PPRINT_NAME | ||
), | ||
long_description=open("README.md", "r").read(), | ||
long_description_content_type="text/markdown", | ||
license="MIT License", | ||
author="Microsoft Corporation", | ||
author_email="[email protected]", | ||
url="https://github.com/microsoft/ApplicationInsights-Python/tree/main/azure-monitor-opentelemetry", | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
zip_safe=False, | ||
packages=find_packages( | ||
exclude=[ | ||
"tests", | ||
"samples", | ||
# Exclude packages that will be covered by PEP420 or nspkg | ||
"azure", | ||
"azure.monitor", | ||
"azure.monitor.opentelemetry", | ||
] | ||
), | ||
include_package_data=True, | ||
package_data={ | ||
"pytyped": ["py.typed"], | ||
}, | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
"azure-monitor-opentelemetry>=1.0.0b12", | ||
], | ||
entry_points={ | ||
"opentelemetry_distro": [ | ||
"azure_monitor_opentelemetry_distro = azure.monitor.opentelemetry.autoinstrumentation._distro:AzureMonitorDistro" | ||
], | ||
"opentelemetry_configurator": [ | ||
"azure_monitor_opentelemetry_configurator = azure.monitor.opentelemetry.autoinstrumentation._configurator:AzureMonitorConfigurator" | ||
], | ||
}, | ||
) |
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