Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda forge package #602

Open
hadim opened this issue Feb 27, 2021 · 1 comment
Open

conda forge package #602

hadim opened this issue Feb 27, 2021 · 1 comment
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@hadim
Copy link

hadim commented Feb 27, 2021

I am creating a conda forge package but the pip source archive does not container version.py so the installation raises an error:

        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/home/conda/staged-recipes/build_artifacts/django-google-spanner_1614467775542/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/home/conda/staged-recipes/build_artifacts/django-google-spanner_1614467775542/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/home/conda/staged-recipes/build_artifacts/django-google-spanner_1614467775542/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/setuptools/build_meta.py", line 266, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/home/conda/staged-recipes/build_artifacts/django-google-spanner_1614467775542/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/setuptools/build_meta.py", line 158, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 26, in <module>
        with open(VERSION_FILENAME) as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'version.py'
    Preparing wheel metadata: finished with status 'error'

see the recipe conda-forge/staged-recipes#14122

Could you add version.py to the pypi source archive?

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Feb 27, 2021
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Feb 28, 2021
@meredithslota
Copy link

https://github.com/googleapis/python-spanner-django/blob/main/version.py is present in the repo — I checked the latest release and it's available in the .zip and .tar.gz files (https://github.com/googleapis/python-spanner-django/releases/tag/v3.0.1), and confirmed that it's missing from the source files on PyPi (https://pypi.org/project/django-google-spanner/#files). We appear to be stripping it out on the way to PyPi.

@meredithslota meredithslota added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants