Browse Source

Switch to a better command name

master 0.3.0
Amelia A 2 years ago
parent
commit
d3a7b01d92
Signed by: amy GPG Key ID: 70C320ABA95D38C1
9 changed files with 15 additions and 16 deletions
  1. +1
    -2
      .gitignore
  2. +2
    -2
      MANIFEST.in
  3. +5
    -5
      README.md
  4. +4
    -4
      setup.cfg
  5. +0
    -0
      tootlogger.toml.example
  6. +0
    -0
      tootlogger/__init__.py
  7. +1
    -1
      tootlogger/_version.py
  8. +2
    -2
      tootlogger/cli.py
  9. +0
    -0
      tootlogger/templates/template.jinja2

+ 1
- 2
.gitignore View File

@ -1,5 +1,4 @@
config.toml
toot_logger.toml
tootlogger.toml
*.pyc
/dist/


+ 2
- 2
MANIFEST.in View File

@ -1,4 +1,4 @@
include README.md
include toot_logger/templates/*.jinja2
include tootlogger/templates/*.jinja2
include tootlogger/_version.py
include versioneer.py
include toot_logger/_version.py

+ 5
- 5
README.md View File

@ -1,4 +1,4 @@
# toot_logger
# tootlogger
## Journal your toots to DayOne
@ -12,7 +12,7 @@ If you miss a day of running this it, it will backfill up to the pagination limi
1. Ensure you have at least Python 3.6 on your mac
- [homebrew](https://brew.sh/) makes this easy with `brew install python`
1. Install the [DayOne Command Line Interface](http://help.dayoneapp.com/tips-and-tutorials/command-line-interface-cli)
1. Install toot_logger with `pip3 install https://onlyhavecans.works/amy/toot_logger/archive/master.tar.gz#egg=package-1.0`
1. Install toot_logger with `pip3 install tootlogger`
## Setup
@ -24,8 +24,8 @@ You will need to manually generate your access token and create a config file
- Read permissions are fine
1. Note down the `access_token`
1. Create a config file like the example below (or in this repo) in one of two places
1. `$HOME/.toot_logger.toml`
1. `toot_logger.toml` in the local directory you run the command from.
1. `$HOME/.tootlogger.toml`
1. `tootlogger.toml` in the local directory you run the command from.
### Config file
@ -36,4 +36,4 @@ access_token = "really big string"
## Usage
1. run `toot_logger` to log all of your toots to DayOne
1. run `tootlogger` to log all of your toots to DayOne

+ 4
- 4
setup.cfg View File

@ -1,9 +1,9 @@
[metadata]
name = toot_logger
name = tootlogger
author = Amy Aronsohn
author_email = "WagThatTail@Me.com"
description = Log your Mastodon toots to DayOne
url = https://onlyhavecans.works/amy/toot_logger
url = https://onlyhavecans.works/amy/tootlogger
keywords =
mastodon
social networking
@ -39,7 +39,7 @@ tests =
[options.entry_points]
console_scripts =
toot_logger = toot_logger.cli:main
tootlogger = tootlogger.cli:main
[flake8]
max-line-length = 132
@ -48,7 +48,7 @@ exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/
[versioneer]
VCS = git
style = pep440
versionfile_source = toot_logger/_version.py
versionfile_source = tootlogger/_version.py
versionfile_build = None
tag_prefix =
parentdir_prefix =

toot_logger.toml.example → tootlogger.toml.example View File


toot_logger/__init__.py → tootlogger/__init__.py View File


toot_logger/_version.py → tootlogger/_version.py View File

@ -43,7 +43,7 @@ def get_config():
cfg.style = "pep440"
cfg.tag_prefix = ""
cfg.parentdir_prefix = ""
cfg.versionfile_source = "toot_logger/_version.py"
cfg.versionfile_source = "tootlogger/_version.py"
cfg.verbose = False
return cfg

toot_logger/cli.py → tootlogger/cli.py View File

@ -12,8 +12,8 @@ import toml
from jinja2 import Environment, select_autoescape, PackageLoader
from mastodon import Mastodon
APP_NAME = "toot_logger"
CONFIG_FILE = "toot_logger.toml"
APP_NAME = "tootlogger"
CONFIG_FILE = "tootlogger.toml"
DAYONE_CLI = "/usr/local/bin/dayone2"
DAYONE_COMMAND = "new"
LOCAL_TZ = datetime.now().tzinfo

toot_logger/templates/template.jinja2 → tootlogger/templates/template.jinja2 View File


Loading…
Cancel
Save