Git Product home page Git Product logo

git-relevant-history's Issues

"pip install git-relevant-history" is not working

I think there are two issues with installing this with pip.

I think you used the old "gitrelevanthistory.py" to create the package but had it pointing to "main.py".

Repro steps

$ python3 -m venv venv               # create a python virtual environment
$ source venv/bin/activate
$ pip3 install git-relevant-history
$ git-relevant-history --help
Traceback (most recent call last):
  File "/usr/local/bin/git-relevant-history", line 5, in <module>
    from gitrelevanthistory import main
ImportError: cannot import name 'main' from 'gitrelevanthistory' (/OBFUSCATED PATH/gitrelevanthistory/__init__.py)
$ mv /OBFUSCATED PATH/gitrelevanthistory/gitrelevanthistory.py /OBFUSCATED PATH/gitrelevanthistory/main.py
$ git-relevant-history --help
Traceback (most recent call last):
  File "/usr/local/bin/git-relevant-history", line 5, in <module>
    from gitrelevanthistory import main
  File "/OBFUSCATED PATH/gitrelevanthistory/main.py", line 33, in <module>
    from docopt import docopt
ModuleNotFoundError: No module named 'docopt' 
$ pip install docopt
$ git-relevant-history --help         # works

Also, is it typical that we need to install docopt ourselves or should it automatically have been installed?

Basic sanity tests should be implemented using github pipelines

Basic integration test like:

  • --help flag
  • filter some small oss project (i.e. fmtlib?)

Should be run for pull requests and post merge to master.

Ideally they should run after checkout && build && local install in clean VENV (to check missing dependencies).
Ideally it should also check with older python version (starting with ubuntu 16.04 default and up)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.