Skip to content

want credit for a project you can't open source? Point this at your repo

License

Notifications You must be signed in to change notification settings

lbillingham/commit_opener

Repository files navigation

commit_opener

We have open access research papers and open data. Open source research software is coming next. However, it is going to take time before we can all open-source our contributions.

In the meantime, commit_opener lets the world see your contributions, even if we can't see your code.

It also gives credit to the open-source authors whose code you use.

Features

  • Command line app
  • Scrapes your local git repository to find who committed what and when
  • Finds the dependencies of the code in your master branch
  • Searches literature databases for mentions of your software
  • Saves all the results to JSON

TODO

  1. Plugin to [depsy](depsy.org) to expose results
  2. Support the import scraping for languages other than python
  3. Work with svn and other repos
  4. Find a better metric than commits.

Notes for use on windows with conda and git-bash

need to have both git and pandas installed. Pandas is a pain to install on windows without conda, conda does not play very nicely with git bash.

make a conda environment: pandas (probably numpy.sclapak, actually) and normal virtualenv do not play too happily together on windows.

REM in windows `cmd.exe`
 mkdir commit_opener
 conda create -n commit_opener_env pandas
 activate commit_opener_env
 echo %CONDA_DEFAULT_ENV%

if git is not integrated into cmd.exe, we mush switch to using a git aware shell before installing commit_opener into the conda env. Note the output of echo %CONDA_DEFAULT_ENV from the cmd.exe step above.

# in `git.bash`
 CONDA_ENV_HOME=<output of echo %CONDA_DEFAULT_ENV% from above>
 cd commit_opener
 git clone git@github.com:lbillingham/commit_opener.git ./commit_opener
 PRE_CONDA_PATH=$PATH
 export PATH=$CONDA_ENV_HOME:$PATH
 export PATH=$CONDA_ENV_HOME/Scripts:$PATH
 python setup.py install
 # run the `commit_opener` we just installed
 cd /c/tmp
 git clone git@github.com:Turbo87/utm
 commit_opener --repo ./utm
 export PATH=$PRE_CONDA_PATH

to uninstall

# in `git.bash`
 cd commit_opener
 PRE_CONDA_PATH=$PATH
 export PATH=/c/Users/laurence/AppData/Local/Continuum/Anaconda3/envs/commit_opener_env:$PATH
 python setup.py --dry-run --record files.txt
 cat files.txt | sed 's/\\/\//g' | sed 's/['Cc']:/\/c/' | xargs rm -rf
 export PATH=$PRE_CONDA_PATH

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

want credit for a project you can't open source? Point this at your repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published