Last active
February 23, 2023 18:42
-
-
Save erikogan/791e05cf9b78dd8fa0e1cdee499bc854 to your computer and use it in GitHub Desktop.
Reproduction case for issues related to poetry exporting a git dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is automatically @generated by Poetry and should not be changed by hand. | |
[[package]] | |
name = "attrs" | |
version = "22.2.0" | |
description = "Classes Without Boilerplate" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.6" | |
files = [ | |
{file = "attrs-22.2.0-py3-none-any.whl", hash = "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836"}, | |
{file = "attrs-22.2.0.tar.gz", hash = "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99"}, | |
] | |
[package.extras] | |
cov = ["attrs[tests]", "coverage-enable-subprocess", "coverage[toml] (>=5.3)"] | |
dev = ["attrs[docs,tests]"] | |
docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope.interface"] | |
tests = ["attrs[tests-no-zope]", "zope.interface"] | |
tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990)", "mypy (>=0.971,<0.990)", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-mypy-plugins", "pytest-xdist[psutil]", "pytest-xdist[psutil]"] | |
[[package]] | |
name = "colorama" | |
version = "0.4.6" | |
description = "Cross-platform colored terminal text." | |
category = "main" | |
optional = false | |
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" | |
files = [ | |
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, | |
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, | |
] | |
[[package]] | |
name = "exceptiongroup" | |
version = "1.1.0" | |
description = "Backport of PEP 654 (exception groups)" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "exceptiongroup-1.1.0-py3-none-any.whl", hash = "sha256:327cbda3da756e2de031a3107b81ab7b3770a602c4d16ca618298c526f4bec1e"}, | |
{file = "exceptiongroup-1.1.0.tar.gz", hash = "sha256:bcb67d800a4497e1b404c2dd44fca47d3b7a5e5433dbab67f96c1a685cdfdf23"}, | |
] | |
[package.extras] | |
test = ["pytest (>=6)"] | |
[[package]] | |
name = "importlib-metadata" | |
version = "6.0.0" | |
description = "Read metadata from Python packages" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "importlib_metadata-6.0.0-py3-none-any.whl", hash = "sha256:7efb448ec9a5e313a57655d35aa54cd3e01b7e1fbcf72dce1bf06119420f5bad"}, | |
{file = "importlib_metadata-6.0.0.tar.gz", hash = "sha256:e354bedeb60efa6affdcc8ae121b73544a7aa74156d047311948f6d711cd378d"}, | |
] | |
[package.dependencies] | |
typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} | |
zipp = ">=0.5" | |
[package.extras] | |
docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] | |
perf = ["ipython"] | |
testing = ["flake8 (<5)", "flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)"] | |
[[package]] | |
name = "iniconfig" | |
version = "2.0.0" | |
description = "brain-dead simple config-ini parsing" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, | |
{file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, | |
] | |
[[package]] | |
name = "packaging" | |
version = "23.0" | |
description = "Core utilities for Python packages" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "packaging-23.0-py3-none-any.whl", hash = "sha256:714ac14496c3e68c99c29b00845f7a2b85f3bb6f1078fd9f72fd20f0570002b2"}, | |
{file = "packaging-23.0.tar.gz", hash = "sha256:b6ad297f8907de0fa2fe1ccbd26fdaf387f5f47c7275fedf8cce89f99446cf97"}, | |
] | |
[[package]] | |
name = "pluggy" | |
version = "1.0.0" | |
description = "plugin and hook calling mechanisms for python" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.6" | |
files = [ | |
{file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, | |
{file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, | |
] | |
[package.dependencies] | |
importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} | |
[package.extras] | |
dev = ["pre-commit", "tox"] | |
testing = ["pytest", "pytest-benchmark"] | |
[[package]] | |
name = "prevent-submodule-regression" | |
version = "0.1.2" | |
description = "Pre-commit hook to prevent accidental submodule regressions" | |
category = "main" | |
optional = false | |
python-versions = "^3.7" | |
files = [] | |
develop = false | |
[package.dependencies] | |
colorama = "^0.4.3" | |
[package.source] | |
type = "git" | |
url = "ssh://[email protected]/erikogan/prevent-submodule-regression.git" | |
reference = "HEAD" | |
resolved_reference = "67510aa2d0d24394647d07727cc93f01d34dc3ef" | |
[[package]] | |
name = "pytest" | |
version = "7.2.1" | |
description = "pytest: simple powerful testing with Python" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "pytest-7.2.1-py3-none-any.whl", hash = "sha256:c7c6ca206e93355074ae32f7403e8ea12163b1163c976fee7d4d84027c162be5"}, | |
{file = "pytest-7.2.1.tar.gz", hash = "sha256:d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42"}, | |
] | |
[package.dependencies] | |
attrs = ">=19.2.0" | |
colorama = {version = "*", markers = "sys_platform == \"win32\""} | |
exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} | |
importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} | |
iniconfig = "*" | |
packaging = "*" | |
pluggy = ">=0.12,<2.0" | |
tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} | |
[package.extras] | |
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] | |
[[package]] | |
name = "tomli" | |
version = "2.0.1" | |
description = "A lil' TOML parser" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, | |
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, | |
] | |
[[package]] | |
name = "typing-extensions" | |
version = "4.5.0" | |
description = "Backported and Experimental Type Hints for Python 3.7+" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"}, | |
{file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"}, | |
] | |
[[package]] | |
name = "zipp" | |
version = "3.14.0" | |
description = "Backport of pathlib-compatible object wrapper for zip files" | |
category = "dev" | |
optional = false | |
python-versions = ">=3.7" | |
files = [ | |
{file = "zipp-3.14.0-py3-none-any.whl", hash = "sha256:188834565033387710d046e3fe96acfc9b5e86cbca7f39ff69cf21a4128198b7"}, | |
{file = "zipp-3.14.0.tar.gz", hash = "sha256:9e5421e176ef5ab4c0ad896624e87a7b2f07aca746c9b2aa305952800cb8eecb"}, | |
] | |
[package.extras] | |
docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] | |
testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] | |
[metadata] | |
lock-version = "2.0" | |
python-versions = "^3.7" | |
content-hash = "13f5a0ae343892c401f4209ac3f23d9f283516efe9d683d793765c565fe8902b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built with poetry init, adding the a git dependency with a URL | |
[tool.poetry] | |
name = "poetry-git-export" | |
version = "0.1.0" | |
description = "Reproduction case for issues exporting modules from git repos" | |
authors = ["Erik Ogan <[email protected]>"] | |
readme = "README.md" | |
packages = [{include = "poetry_git_export"}] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
# I chose this repository solely to demonstrate the issue, normally I’d install it from PyPi | |
prevent-submodule-regression = {git = "ssh://[email protected]/erikogan/prevent-submodule-regression.git"} | |
[tool.poetry.group.dev.dependencies] | |
pytest = "^7.2.1" | |
[build-system] | |
requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur no-rev/pyproject.toml ./pyproject.toml | |
--- no-rev/pyproject.toml 2023-02-23 10:38:34 | |
+++ ./pyproject.toml 2023-02-23 10:39:23 | |
@@ -9,7 +9,8 @@ | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
# I chose this repository solely to demonstrate the issue, normally I’d install it from PyPi | |
-prevent-submodule-regression = {git = "ssh://[email protected]/erikogan/prevent-submodule-regression.git"} | |
+# Add a rev | |
+prevent-submodule-regression = {git = "ssh://[email protected]/erikogan/prevent-submodule-regression.git", rev = "main"} | |
[tool.poetry.group.dev.dependencies] | |
pytest = "^7.2.1" | |
diff -ur no-rev/poetry.lock ./poetry.lock | |
--- no-rev/poetry.lock 2023-02-23 10:38:34 | |
+++ ./poetry.lock 2023-02-23 10:39:30 | |
@@ -126,7 +126,7 @@ | |
[package.source] | |
type = "git" | |
url = "ssh://[email protected]/erikogan/prevent-submodule-regression.git" | |
-reference = "HEAD" | |
+reference = "main" | |
resolved_reference = "67510aa2d0d24394647d07727cc93f01d34dc3ef" | |
[[package]] | |
@@ -197,4 +197,4 @@ | |
[metadata] | |
lock-version = "2.0" | |
python-versions = "^3.7" | |
-content-hash = "13f5a0ae343892c401f4209ac3f23d9f283516efe9d683d793765c565fe8902b" | |
+content-hash = "cf2c9ebbda610fbb816ea0b8b67ed10adc6ef4cf50387b6b440067c7b8f2be6b" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment