Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Scm url reqspec 236 #241

Merged
merged 2 commits into from
May 14, 2019
Merged

Scm url reqspec 236 #241

merged 2 commits into from
May 14, 2019

Conversation

alikins
Copy link
Contributor

@alikins alikins commented May 9, 2019

SUMMARY

Fix some issues with using scm url with collections from the cli.

  • Change the scm archive building code to not include a top dir
  • Fix the way RequirementSpec would get it's spec_string populated
  • Add 'scm' back to RequirementSpec, since we need to know the scm type to
    later build the right url for archive since the git+https://github.com/alikins/whatever
    style isnt understood by git, git-archive, or the scm_archive module

Fixes part of the issue reported in #236 for now.

Long term, may just remove scm_url support entirely, or at least not support it except for
semver version tags.

Related: #236

ISSUE TYPE
  • Feature Pull Request
  • Bugfix Pull Request
MAZER VERSION
name = mazer
version = 0.4.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 5.0.5-200.fc29.x86_64, #1 SMP Wed Mar 27 20:58:04 UTC 2019, x86_64
executable_location = /home/adrian/venvs/mazer_0.4.0_py36/bin/mazer
python_version = 3.6.8 (default, Jan 27 2019, 09:00:23) [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)]
python_executable = /home/adrian/venvs/mazer_0.4.0_py36/bin/python
ADDITIONAL INFORMATION

alikins added 2 commits May 9, 2019 14:16
Collections artifacts don't have a top dir, so --prefix $name
doesn't work with collections installed from a git scm url

Ditto for 'hg', but use `--prefix .` to avoid a top dir.
Previously it was 'req_spec_string' to distinquish
from RepositorySpec, but RepoSpec and ReqSpec are
separated now, so just use 'spec_string' for both
as that is what the repo spec parsing code does.

Add 'scm' attribute back to RequirementSpec.

Fixes part of ansible#236

Fixes "AttributeError: 'RequirementSpec' object has no attribute 'scm'"
error on 'mazer install git+https://github.com/alikins/whatever'

(collection install still fails, but for a different reason)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant