conda-forge / google-api-core-feedstock

A conda-smithy repository for google-api-core.
BSD 3-Clause "New" or "Revised" License
0 stars 19 forks source link

Dep issue due to `extra` #83

Closed hadim closed 2 years ago

hadim commented 2 years ago

Here is the error using the latest package:

        while requirements:
            # process dependencies breadth-first
            req = requirements.pop(0)
            if req in processed:
                # Ignore cyclic or redundant dependencies
                continue

            if not req_extras.markers_pass(req, extras):
                continue

            dist = best.get(req.key)
            if dist is None:
                # Find the best distribution and add it to the map
                dist = self.by_key.get(req.key)
                if dist is None or (dist not in req and replace_conflicting):
                    ws = self
                    if env is None:
                        if dist is None:
                            env = Environment(self.entries)
                        else:
                            # Use an empty environment and workingset to avoid
                            # any further conflicts with the conflicting
                            # distribution
                            env = Environment([])
                            ws = WorkingSet([])
                    dist = best[req.key] = env.best_match(
                        req, ws, installer,
                        replace_conflicting=replace_conflicting
                    )
                    if dist is None:
                        requirers = required_by.get(req, None)
>                       raise DistributionNotFound(req, requirers)
E                       pkg_resources.DistributionNotFound: The 'grpcio-status<2.0dev,>=1.33.2; extra == "grpc"' distribution was not found and is required by google-api-core

I started a new package for grpc-status at https://github.com/conda-forge/staged-recipes/pull/16894

It should probably be included in google-api-core-grpc no?

ping @conda-forge/google-api-core

tswast commented 2 years ago

Yes, you are correct. I see grpcio-status is in the extras here: https://github.com/googleapis/python-api-core/blob/34ebdcc251d4f3d7d496e8e0b78847645a06650b/setup.py#L39

tswast commented 2 years ago

Closed by #87