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

REF,ENH: refactor {BibTeX,Text}Output into Output class with subclasses #86

Merged
merged 21 commits into from
May 25, 2016

Conversation

mvdoc
Copy link
Member

@mvdoc mvdoc commented May 21, 2016

This fixes #68, #48, and closes #83

@mvdoc
Copy link
Member Author

mvdoc commented May 21, 2016

fails on python 3.x. will debug later

@yarikoptic
Copy link
Member

One of the failures seems to be just difference in indentation in wrapped title of the XXX0

@mvdoc
Copy link
Member Author

mvdoc commented May 21, 2016

ok all tests pass now

@@ -161,8 +161,12 @@ def __contains__(self, entry):
return entry.path.startswith(self.path + '.')

@property
def entry_key(self):
return self.entry.get_key()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need it?
Why not to have key as a property in entry and then use entry.key

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

@yarikoptic yarikoptic merged commit eaefaaf into duecredit:master May 25, 2016
yarikoptic added a commit that referenced this pull request Jun 17, 2016
[Full Changelog](0.5.0...0.6.0)

**Implemented enhancements:**

- Support system-specific references [\#81](#81)
- export to bibtex doesn't support tags yet [\#19](#19)
- ENH: support DUECREDIT\_REPORT\_ALL=1 to report all citations, not only with functionality used [\#92](#92) ([yarikoptic](https://github.com/yarikoptic))

**Fixed bugs:**

- Outputting to bibtex doesn't filter by used citations [\#68](#68)
- references package even if no cited functions/methods used [\#48](#48)
- When injecting multiple citations at the same point, only one referenced [\#47](#47)

**Merged pull requests:**

- BF: allow multiple injections at the same path, avoid resetting \_orig\_import if already deactivated [\#91](#91) ([yarikoptic](https://github.com/yarikoptic))
- DOC: Update readme to reflect current output of duecredit summary [\#89](#89) ([mvdoc](https://github.com/mvdoc))
- enable codecov coverage reports [\#87](#87) ([yarikoptic](https://github.com/yarikoptic))
- REF,ENH: refactor {BibTeX,Text}Output into Output class with subclasses [\#86](#86) ([mvdoc](https://github.com/mvdoc))

* tag '0.6.0': (39 commits)
  CHANGELOG
  DOC: clarify DUECREDIT_REPORT_ALL usage
  ENH: use any instead of list when filtering packages
  DOC: Update readme to show how to use the new flag
  TST: test also DUECREDIT_REPORT_TAGS while we're at it
  TST: test all the flags
  TST: test that DUECREDIT_REPORT_ALL works
  ENH: support DUECREDIT_REPORT_ALL=1
  DOC: Update readme
  DOC: fix small change to readme
  DOC: update readme to reflect current output
  ENH: do not demand coverage for the code we hope should never be triggered
  BF: exec to figure out version should be done with locals(), globals()
  ???: naively hoping that previous bug triggered on travis would be gone fixed by prev fix
  ENH+RF: track per injector either it is active and do not deactivate in __del__ if not
  TST: add test for double injection
  BF+ENH(LOG): decorate prev decorated object during injection + improve logging
  enable codecov coverage reports
  Fix Py3 annoyances
  BF: BibTeXOutput returns only unique bibtexs
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outputting to bibtex doesn't filter by used citations
2 participants