googleapis / python-spanner-sqlalchemy

Apache License 2.0
38 stars 28 forks source link

`version.py` missing from source on PyPI #337

Open xylar opened 10 months ago

xylar commented 10 months ago

I'm trying to build sqlalchemy-spanner on conda-forge from the source from PyPI. In our CI, I'm seeing:

Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/home/conda/feedstock_root/build_artifacts/sqlalchemy-spanner_1692018227156/work/setup.py", line 39, in <module>
      with open(VERSION_FILENAME) as f:
           ^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/home/conda/feedstock_root/build_artifacts/sqlalchemy-spanner_1692018227156/work/version.py'
  error: subprocess-exited-with-error

I'm seeing this for 1.2.0 but I checked the source for 1.6.2 on PyPI and version.py appears still to be missing.

A solution for us is to build from source from GitHub but this is less convenient. It would be nice to have version.py included with the source on PyPI as well.