Skip to content

nested projects fail since version 4 #423

Description

@ashic

If I have a project structure like this:

project\.git
project\foo\setup.py
project\foo\requirementx.txt
...

in other words, putup foo is run inside the git folder so the python project is one folder down, then python setup.py --version fails with:

LookupError: setuptools-scm was unable to detect version for '/path/to/foo'.

If I copy all the contents of foo/ to the root, it works.

With pyscaffold 3, this used to work out of the box. Is there a way to get it working with v4?

In setup.py, I tried changing the setup call to:

setup(use_scm_version={"version_scheme": "no-guess-dev", "root": ".."})

This isn't working either.

Versions and main components

  • PyScaffold Version: 4
  • Python Version: 3.7
  • Operating system: Linux / Mac
  • How did you install PyScaffold: (conda/pip) pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions