Skip to content

Commit

Permalink
WIP: depends on PR 475
Browse files Browse the repository at this point in the history
wip

wip
  • Loading branch information
owais committed May 27, 2021
1 parent cff9fde commit cee630e
Show file tree
Hide file tree
Showing 35 changed files with 45 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import os
import distutils.cmd
import json
import os
from configparser import ConfigParser

import setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


_instruments = tuple()
_instruments = ("wsgiref ~= 0.1.2",)
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ def _is_installed(req):
return False
return True

try:
pkg_resources.get_distribution(req)
except pkg_resources.DistributionNotFound:
return False
except pkg_resources.VersionConflict as exc:
logger.warning(
"instrumentation for package %s is available but version %s is installed. Skipping."
% (exc.req, exc.dist.as_requirement())
)
return False
return True

def _find_installed_libraries():
libs = default_instrumentations[:]
Expand Down
2 changes: 1 addition & 1 deletion templates/instrumentation_setup.py.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class JSONMetadataCommand(distutils.cmd.Command):


setuptools.setup(
cmdclass={'meta': JSONMetadataCommand},
cmdclass={'meta': JSONMetadataCommand},
version=PACKAGE_INFO["__version__"],
extras_require=extras_require
)

0 comments on commit cee630e

Please sign in to comment.