Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential dependency conflicts between ghscard and typepy #1

Closed
NeolithEra opened this issue May 14, 2020 · 2 comments
Closed

Potential dependency conflicts between ghscard and typepy #1

NeolithEra opened this issue May 14, 2020 · 2 comments
Assignees
Labels

Comments

@NeolithEra
Copy link

NeolithEra commented May 14, 2020

Hi, as shown in the following full dependency graph of ghscard, ghscard requires typepy >=1.0.0,<2, ghscard requires DateTimeRange >=1.0.0,<2.0 (DateTimeRange 1.0.0 will be installed, i.e., the newest version satisfying the version constraint), and directed dependency DateTimeRange 1.0.0 transitively introduces typepy >=1.0.0,<2.

Obviously, there are multiple version constraints set for typepy in this project. However, according to pip's “first found wins” installation strategy, typepy 1.1.1 (i.e., the newest version satisfying constraint >=1.0.0,<2) is the actually installed version.

Although the first found package version typepy 1.1.1 just satisfies the later dependency constraint (typepy >=1.0.0,<2), such installed version is very close to the upper bound of the version constraint of typepy specified by DateTimeRange 1.0.0.

Once DateTimeRange upgrades,its newest version will be installed, as ghscard does not specify the upper bound of version constraint for DateTimeRange. Therefore, it will easily cause a dependency conflict (build failure), if the upgraded DateTimeRange version introduces a higher version of _ typepy_, violating its another version constraint >=1.0.0,<2.

According to the release history of DateTimeRange, it habitually upgrates _ typepy_ in its recent releases. For instance, DateTimeRange 0.6.0 upgrated typepy’s constraint from >=0.4.0,<1.0.0 to >=0.5.0,<1.0.0, DateTimeRange 0.6.1 upgrated typepy’s constraint from >=0.5.0,<1.0.0 to >=0.6.0,<1.0.0, and DateTimeRange 1.0.0 upgrated typepy’s constraint from >=0.6.0,<1.0.0 to >=1.0.0,<2.

As such, it is a warm warning of a potential dependency conflict issue for ghscard.

Dependency tree

ghscard - 0.5.0
| +- appconfigpy(install version:1.0.1 version range:>=1.0.1,<2)
| | +- pytest(install version:5.4.1 version range:*)
| | | +- atomicwrites(install version:1.3.0 version range:>=1.0)
| | | +- attrs(install version:19.3.0 version range:>=17.4.0)
| | | +- colorama(install version:0.4.3 version range:*)
| | | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | | +- more-itertools(install version:8.2.0 version range:>=4.0.0)
| | | +- packaging(install version:20.3 version range:*)
| | | +- pathlib2(install version:2.3.5 version range:>=2.2.0)
| | | | +- six(install version:1.14.0 version range:*)
| | | +- pluggy(install version:0.13.1 version range:>=0.12,<1.0)
| | | | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | | +- py(install version:1.8.1 version range:>=1.5.0)
| | | +- wcwidth(install version:0.1.9 version range:*)
| | +- sphinx-rtd-theme(install version:0.4.3 version range:*)
| | | +- sphinx(install version:3.0.1 version range:*)
| | | | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | | | +- babel(install version:2.8.0 version range:>=1.3)
| | | | +- docutils(install version:0.16 version range:>=0.12)
| | | | +- imagesize(install version:1.2.0 version range:*)
| | | | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | | +- packaging(install version:20.3 version range:*)
| | | | +- Pygments(install version:2.6.1 version range:>=2.0)
| | | | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | | +- setuptools(install version:46.1.3 version range:*)
| | | | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | | | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | | | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| +- click(install version:7.1.2 version range:>=6.2,<8)
| +- colorama(install version:0.4.3 version range:>=0.3.7,<1)
| +- datetimerange(install version:1.0.0 version range:>=1.0.0,<2)
| | +- pytest(install version:5.4.1 version range:*)
| | | +- atomicwrites(install version:1.3.0 version range:>=1.0)
| | | +- attrs(install version:19.3.0 version range:>=17.4.0)
| | | +- colorama(install version:0.4.3 version range:*)
| | | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | | +- more-itertools(install version:8.2.0 version range:>=4.0.0)
| | | +- packaging(install version:20.3 version range:*)
| | | +- pathlib2(install version:2.3.5 version range:>=2.2.0)
| | | | +- six(install version:1.14.0 version range:*)
| | | +- pluggy(install version:0.13.1 version range:>=0.12,<1.0)
| | | | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | | +- py(install version:1.8.1 version range:>=1.5.0)
| | | +- wcwidth(install version:0.1.9 version range:*)
| | +- python-dateutil(install version:2.8.1 version range:>=2.4.2,<3)
| | +- pytz(install version:2019.3 version range:*)
| | +- sphinx(install version:3.0.1 version range:*)
| | | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | | +- babel(install version:2.8.0 version range:>=1.3)
| | | | +- pytz(install version:2019.3 version range:>=2015.7)
| | | +- docutils(install version:0.16 version range:>=0.12)
| | | +- imagesize(install version:1.2.0 version range:*)
| | | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | | +- packaging(install version:20.3 version range:*)
| | | +- Pygments(install version:2.6.1 version range:>=2.0)
| | | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | | +- setuptools(install version:46.1.3 version range:*)
| | | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| | +- sphinx-rtd-theme(install version:0.4.3 version range:*)
| | | +- sphinx(install version:3.0.1 version range:*)
| | | | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | | | +- babel(install version:2.8.0 version range:>=1.3)
| | | | +- docutils(install version:0.16 version range:>=0.12)
| | | | +- imagesize(install version:1.2.0 version range:*)
| | | | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | | +- packaging(install version:20.3 version range:*)
| | | | +- Pygments(install version:2.6.1 version range:>=2.0)
| | | | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | | +- setuptools(install version:46.1.3 version range:*)
| | | | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | | | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | | | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| | +- typepy(install version:1.1.1 version range:>=1.0.0,<2)
| +- logbook(install version:1.5.3 version range:>=0.12.3,<2)
| +- msgfy(install version:0.1.0 version range:>=0.0.6,<1)
| +- path(install version:13.2.0 version range:<14,>=13.0.0)
| +- path.py(install version:12.4.0 version range:*)
| +- pathvalidate(install version:2.3.0 version range:>=2.2.2,<3)
| +- pygithub(install version:1.51 version range:>=1.43.7,<2)
| +- pytest(install version:5.4.1 version range:*)
| | +- atomicwrites(install version:1.3.0 version range:>=1.0)
| | +- attrs(install version:19.3.0 version range:>=17.4.0)
| | +- colorama(install version:0.4.3 version range:*)
| | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | +- more-itertools(install version:8.2.0 version range:>=4.0.0)
| | +- packaging(install version:20.3 version range:*)
| | +- pathlib2(install version:2.3.5 version range:>=2.2.0)
| | | +- six(install version:1.14.0 version range:*)
| | +- pluggy(install version:0.13.1 version range:>=0.12,<1.0)
| | | +- importlib-metadata(install version:1.6.0 version range:>=0.12)
| | +- py(install version:1.8.1 version range:>=1.5.0)
| | +- wcwidth(install version:0.1.9 version range:*)
| +- readmemaker(install version:1.0.1 version range:>=1.0.0)
| | +- path(install version:13.2.0 version range:>=13.0.0,<14)
| | +- sphinx-rtd-theme(install version:0.4.3 version range:*)
| | | +- sphinx(install version:3.0.1 version range:*)
| | | | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | | | +- babel(install version:2.8.0 version range:>=1.3)
| | | | +- docutils(install version:0.16 version range:>=0.12)
| | | | +- imagesize(install version:1.2.0 version range:*)
| | | | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | | +- packaging(install version:20.3 version range:*)
| | | | +- Pygments(install version:2.6.1 version range:>=2.0)
| | | | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | | +- setuptools(install version:46.1.3 version range:*)
| | | | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | | | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | | | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | | | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | | | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| +- retryrequests(install version:0.0.3 version range:<1,>=0.0.2)
| | +- requests(install version:2.23.0 version range:>=2.18.4,<3.0.0)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| +- sphinx(install version:3.0.1 version range:*)
| | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | +- babel(install version:2.8.0 version range:>=1.3)
| | | +- pytz(install version:2019.3 version range:>=2015.7)
| | +- docutils(install version:0.16 version range:>=0.12)
| | +- imagesize(install version:1.2.0 version range:*)
| | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- packaging(install version:20.3 version range:*)
| | +- Pygments(install version:2.6.1 version range:>=2.0)
| | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- setuptools(install version:46.1.3 version range:*)
| | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| +- sphinx-rtd-theme(install version:0.4.3 version range:*)
| | +- sphinx(install version:3.0.1 version range:*)
| | | +- alabaster(install version:0.7.12 version range:>=0.7,<0.8)
| | | +- babel(install version:2.8.0 version range:>=1.3)
| | | | +- pytz(install version:2019.3 version range:>=2015.7)
| | | +- docutils(install version:0.16 version range:>=0.12)
| | | +- imagesize(install version:1.2.0 version range:*)
| | | +- Jinja2(install version:2.11.2 version range:>=2.3)
| | | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | | +- packaging(install version:20.3 version range:*)
| | | +- Pygments(install version:2.6.1 version range:>=2.0)
| | | +- requests(install version:2.23.0 version range:>=2.5.0)
| | | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | | +- setuptools(install version:46.1.3 version range:*)
| | | +- snowballstemmer(install version:2.0.0 version range:>=1.1)
| | | +- sphinxcontrib-applehelp(install version:1.0.2 version range:*)
| | | +- sphinxcontrib-devhelp(install version:1.0.2 version range:*)
| | | +- sphinxcontrib-htmlhelp(install version:1.0.3 version range:*)
| | | +- sphinxcontrib-jsmath(install version:1.0.1 version range:*)
| | | +- sphinxcontrib-qthelp(install version:1.0.3 version range:*)
| | | +- sphinxcontrib-serializinghtml(install version:1.1.4 version range:*)
| +- typepy(install version:1.1.1 version range:>=1.0.0,<2)
| +- typing-extensions(install version:3.7.4.2 version range:>=3.7.4)

Thanks for your help.
Best,
Neolith

@NeolithEra
Copy link
Author

NeolithEra commented May 14, 2020

Suggested Solution

  1. Loosen the version range of typepy to be >=1.0.0.
  2. Remove your direct dependency typepy, and use the typepy transitively introduced by DateTimeRange.
  3. Change your direct dependency DateTimeRange to be <=1.0.0.
    @thombashi Which solution do you prefer, 1 ,2or 3?
    Please let me know your choice. May I pull a request to solve this issue?

@thombashi thombashi self-assigned this May 15, 2020
@thombashi
Copy link
Owner

Thank you for your report.

I think it is unnecessary to take action on this issue.
Because of:

  • there are no dependency conflicts for now
  • I am the owner of typepy and DateTimeRange packages. so, version conflicts caused by a new version release would not likely to happen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants