openforcefield / openff-models

Helper classes for Pydantic compatibility in the OpenFF stack
MIT License
3 stars 2 forks source link

`__version__` not set #11

Closed mattwthompson closed 1 year ago

mattwthompson commented 1 year ago

git checkout 0.0.0 && python -m pip install -e . && python -c "from openff.models import __version__; print(__version__)"                                        10:14:22  ☁  90588ac ☀
Previous HEAD position was 90588ac Initial commit after CMS Cookiecutter creation, version 1.6
HEAD is now at 97f7327 Merge pull request #10 from mattwthompson/dependabot/github_actions/actions/checkout-3
Obtaining file:///Users/mattthompson/software/openff-models
  Preparing metadata (setup.py) ... done
Installing collected packages: openff-models
  Running setup.py develop for openff-models
Successfully installed openff-models-0.0.0
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name '__version__' from 'openff.models' (/Users/mattthompson/software/openff-models/openff/models/__init__.py)
mattwthompson commented 1 year ago

This probably snuck by because conda can find it via setup:


git checkout 0.0.0 && python -m pip install -e . && conda list | grep models                                                                                     10:16:46  ☁  97f7327 ☀
HEAD is now at 97f7327 Merge pull request #10 from mattwthompson/dependabot/github_actions/actions/checkout-3
Obtaining file:///Users/mattthompson/software/openff-models
  Preparing metadata (setup.py) ... done
Installing collected packages: openff-models
  Running setup.py develop for openff-models
Successfully installed openff-models-0.0.0
# packages in environment at /Users/mattthompson/mambaforge/envs/openff-models-test:
openff-models             0.0.0                     dev_0    <develop>