← Winnitude! Search  ·  Reader Mode (1045 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 34 LINKS

BF: remove ddt from requirements.txt since no ddt required at run time. by yarikoptic · Pull Request #911 · gitpython-developers/GitPython

Repository navigation

BF: remove ddt from requirements.txt since no ddt required at run time. - #911


Merged
Byron merged 1 commit into gitpython-developers:master from yarikoptic:bf-noruntime-ddt Aug 21, 2019
Merged

BF: remove ddt from requirements.txt since no ddt required at run time. #911 Byron merged 1 commit into gitpython-developers:master from yarikoptic:bf-noruntime-ddt

Conversation

yarikoptic commented Aug 21, 2019



Copy link Copy Markdown
Contributor

Otherwise, since requirements.txt is loaded into install_requires, any installation
which manages to miss installing ddt could cause setuptools to freak out.
E.g.

here is a traceback from running tests of datalad

======================================================================
ERROR: datalad.metadata.tests.test_aggregation.test_update_strategy
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/datalad/metadata/metadata.py", line 511, in _get_metadata
    extractor_cls = extractors[mtype_key].load()
  File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2442, in load
    self.require(*args, **kwargs)
  File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2465, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The "ddt>=1.1.1" distribution was not found and is required by GitPython

in conda environment. Original commit 74a0507
which added ddt there unfortunately does not state the reason so probably was
just a slip

BF: remove ddt from requirements.txt since no ddt required at run time. 5e819da
Otherwise, since requirements.txt is loaded into install_requires, any installation
which manages to miss installing ddt could cause setuptools to freak out.
E.g.

here is a traceback from running tests of datalad

    ======================================================================
    ERROR: datalad.metadata.tests.test_aggregation.test_update_strategy
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/datalad/metadata/metadata.py", line 511, in _get_metadata
        extractor_cls = extractors[mtype_key].load()
      File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2442, in load
        self.require(*args, **kwargs)
      File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2465, in require
        items = working_set.resolve(reqs, env, installer, extras=self.extras)
      File "/home/yoh/anaconda-2018.12-3.7/envs/test-gitpython/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The "ddt>=1.1.1" distribution was not found and is required by GitPython

in conda environment.  Original commit 74a0507
which added ddt there unfortunately does not state the reason so probably was
just a slip
yarikoptic mentioned this pull request Aug 21, 2019 add ddt test dependency (seems required for test suite to pass with current git-annex) conda-forge/datalad-feedstock#17 Closed 4 of 5 tasks Byron modified the milestones: v3.0.1 - Bugfixes , v3.0.2 - Bugfixes Aug 21, 2019 Byron merged commit df5c941 into gitpython-developers : master Aug 21, 2019

Byron commented Aug 21, 2019



Copy link Copy Markdown
Member

Thanks a lot! Should I cut a release?

yarikoptic commented Aug 22, 2019 · edited Loading



Copy link Copy Markdown
Contributor

Author

If not too much trouble - it would be great! Thanks in advance!

Byron commented Aug 22, 2019



Copy link Copy Markdown
Member

Done, see v3.0.2 .

Harmon758 mentioned this pull request Feb 7, 2020 Remove Python 2 compatibility shims #979 Merged Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants