Commit graph

896 commits

Author SHA1 Message Date
Micah Jerome Ellison
b95193d05a [GH-693] cleaning up "Developing" section and adding a note about behave 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
f8fc5f4786 [GH-693] work so far on updating developer documentation 2020-04-10 11:51:55 -07:00
Aaron Lichtman
1fd1fcc00d Exit jrnl if no text entered into editor
Add test for aborting jrnl entry from editor
Use native mocking
Add comment explaining discrepancy between expected and asserted output
Fix check_empty_output method
Check message on stderr and patch subprocess.call
Add _mock_editor_function
Update features/steps/core.py
Add return from mock function
Add debug statements
Debug
Update features/steps/core.py
Move sys.exit() down
Fix test?
Fix test?
Fix test?
Clean up debug statements
Clean up debug statements
Remove extraneous code
Remove extra space
Add test for empty stdin input
Remove extra debug line
Fix test?
Fix test?
Update features/core.feature
Fix test?
Fix no stdin input test

Co-Authored-By: pspeter <peter.schmidb@gmail.com>
2020-04-10 11:51:55 -07:00
MinchinWeb
f9692b1f8d [Dayone] re-add tests
c.f. commit 7cbca9f60f
c.f. commit 398283a8db3177b1ae122e5b9d6a9d623cf9106f
[Dayone] Skip failing tests on Travis
Travis sets the timezone to UTC, which causes many tests to fail
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
e912827396 Fix crash when no keyring backend available 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
e525ed8fe1 Adding "new" labels to new issues 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
e9d12f7a77 Adding 🆕 label to github issue templates
Escaping colon label with quotes in new issue templates
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
3080d501f2 Clarify currently supported Python versions
The Python 3.8 build currently fails on travis, this should be dealt with in a future PR along with updating the travis config and pyproject.toml
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
7f46d1a40a Fix handling of little-endian date format
Ever since version 2.0, when parsing a journal file, jrnl would not use
the custom date format string anymore. Instead, it relied on the
dateutil library to get the parsing right. This change was made to allow
people to change their date format without having to manually change
their file. However, this broke some existing date formats like
%d.%m.%Y, as it would falsely interpret the month as day and vice versa.
This commit adds some tests to catch this error and fixes it by trying
to parse the dates using the custom format first, only falling back to
dateutil when needed.
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
9d8d6a83ae remove py2 remnants and use mocks in tests
fstring wip
Run pyupgrade
fix broken pyupgrade fstring
run pyupgrade on plugin dir
fixup! remove py2 remnants and use mocks in tests
small print bugfix
The file=sys.stderr was part of the format(), so an error got printed to
stdout
Drop use of codecs package
Use builtins.open() instead
fixup! remove py2 remnants and use mocks in tests
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
b7e2e91af3 Prepare travis for upcoming poetry 1.0 release
The poetry version command will change in poetry 1.0 (see sdispater/poetry#1191). Without any argument, it won't bump the version anymore but instead just print the current version. This will break the current travis before_install. Let's pin poetry to ~0.12.17 for now and change it once poetry v1.0 releases.
2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
47310f71a1 [GH-666] updating documentation to reflect v2 behavior:
* new config location and file type
* removing mentions of DayOne support
* removing mention of pip install jrnl[encrypted]
2020-04-10 11:51:55 -07:00
Rory O’Kane
374cae687a In Encryption docs, improve grammar and typography 2020-04-10 11:51:55 -07:00
Greg Bodnar
05234590eb Update docs
Add doc about extracting timestamps with no spaces
Timestamp formats may have no space between date and time components and
cause the script to fail.

In Encryption docs, explain how to prevent Fish history logging
2020-04-10 11:51:55 -07:00
Greg Bodnar
3a2f155a21 Add recipe to display random entry 2020-04-10 11:51:55 -07:00
Jrnl Bot
182b5cd35f Incrementing version to v2.1.post2 2020-04-10 11:51:55 -07:00
MinchinWeb
e65a6eed58 fix typos, spelling (#734) 2020-04-10 11:51:55 -07:00
Jrnl Bot
83974b7aa7 Incrementing version to v2.1-beta6 2020-04-10 11:51:55 -07:00
Jonathan Wren
851a367569 [#715] Make bot that will auto-increment version in code after deploy 2020-04-10 11:51:55 -07:00
MinchinWeb
c863659916 [Upgrade to 2.0] Expand User directory (#704) 2020-04-10 11:51:55 -07:00
Manuel Ebert
0dc3f1fb6e Updating Issue Template Workflow 2020-04-10 11:51:55 -07:00
Casper Weiss Bang
57960b3a51 Create templates for issues and pull requests 2020-04-10 11:51:55 -07:00
Jonathan Wren
f7953fdd61 ¯\_(ツ)_/¯
[#681] Update version handling in source and travis deployments
[#681] Appease the poetry gods
[#681] Separate local dev from pipeline releases
[#681] take out automated pages deployment (for now), since it broke the
site
2020-04-10 11:51:55 -07:00
Jonathan Wren
8c0c95d1f6 Poetry updates
update version and author emails
update makefile to use poetry for more things
remove faulty conditional
2020-04-10 11:51:55 -07:00
Jonathan Wren
0ea24da225 update requirements to include pyyaml >= 5.1 2020-04-10 11:51:55 -07:00
Manuel Ebert
a61658d453 Add Poetry config
Add deployment through poetry to travis
2020-04-10 11:51:55 -07:00
etienne
1affb9b7b5 Change pyYAML required version
Full Loader only avalaible from v5.1:
2020-04-10 11:51:55 -07:00
Manuel Ebert
ba59b1bded Fix references to Sphinx in contributing.md 2020-04-10 11:51:55 -07:00
Justin Proffitt
c249c8ded9 Add '-not' flag for excluding tags from filter
Add tests for the excluding tags with -not
2020-04-10 11:51:55 -07:00
Dawid Zych
bd806efb98 Handle KeyboardInterrupt when installing journal 2020-04-10 11:51:55 -07:00
MinchinWeb
e14910c83f Switch to hashmark Markdown headers on export
Closes #487
[Markdown Export] deal with linebreaks in jrnl files
[YAML Exporter] apply fix just applied to Markdown Exporter
2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
8abbdf4db5 [GH-632] confirming that each journal can be parsed during upgrade, and aborting upgrade if not
[GH-632] raising exception in upgrade.py on fail
Handling it in install.py to prevent config from being overwritten when upgrade fails
[GH-632] removing unnecessary whitespace
[GH-632] removing unreachable return statement
[GH-632] adding call to action to report issue when upgrade fails
2020-04-10 11:51:55 -07:00
Manuel Ebert
328faa401c Smaller doc fixes, fixes #486
Found and removed another angsty teenager
2020-04-10 11:51:55 -07:00
Greg Bodnar
623fa6c307 Create encrypted journal
Add failing test for configuring an encrypted journal
Overload open for EncryptedJournal

This avoids the execution path that calls EncryptedJournal._create()
without a password parameter. It results in duplication of code that
requests and stores a password, which should be factored out in a
subsequent change.

Modify test to test for returned strings

The entered string for the password is not being used by the test and I
don't understand why.

Use util wrapper for getpass

This allows for tests to run without prompting for user input.
2020-04-10 11:51:55 -07:00
Jonathan Wren
b260ff35b9 #631 Escape data in square brackets 2020-04-10 11:51:55 -07:00
Jonathan Wren
b84f862253 fix a few linting errors 2020-04-10 11:51:55 -07:00
Jonathan Wren
97f8a4751e change pinned label to a super cool emoji 2020-04-10 11:51:55 -07:00
Jonathan Wren
14b7fcc1fc move stablebot back up to 60 days now that backlog is a bit more cleared out 2020-04-10 11:51:55 -07:00
Jonathan Wren
7c5ea2f5e5 reduce the number of days an issue can be open with no activity before marked stale
We will increase this again later, but we want to clean out the backlog of old issues
sooner, if possible. This will allow us to do that.
2020-04-10 11:51:55 -07:00
Jonathan Wren
98e86a168d Update stalebot config now that the backlog is better tagged 2020-04-10 11:51:55 -07:00
Manuel Ebert
b7e077be68 Moving from sphinx to mkdocs
Cleaning up docs
Lighter side bar
Landing page refresh
Add JSON-LD and semantic tags
2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
3a72313d06 Updating Python version and jrnl version for v2.0-rc3 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
f37f82f782 [GH-614] resolving issues around unreadable dates and unparsed dates 2020-04-10 11:51:55 -07:00
Jonathan Wren
e3d36645d9 [GH-610] Fix for old crypto module (#621) 2020-04-10 11:51:55 -07:00
Jonathan Wren
b66fbb1658 [GH-607] Add stalebot config 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
57f6f2c3d7 [GH-605] pointing to a more comprehensive GitHub issue re DayOne 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
20e0daadf5 [GH-605] mentioning lack of Day One support and relevant history in readme 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
e563a94456 [GH-600] updating Travis build badge and restoring pypi badges 2020-04-10 11:51:55 -07:00
Jonathan Wren
4ad554fe80 [GH-602] Add a code of conduct file (rather than adding to contributing) 2020-04-10 11:51:55 -07:00
Micah Jerome Ellison
1e0920eff0 [GH-598] Changing references from jrnl-plus back to jrnl and ensuring the URLs are valid (except build badge) 2020-04-10 11:51:55 -07:00