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

pure Python package initialization #15

Open
3 of 4 tasks
jesteria opened this issue Feb 2, 2023 · 0 comments
Open
3 of 4 tasks

pure Python package initialization #15

jesteria opened this issue Feb 2, 2023 · 0 comments
Assignees

Comments

@jesteria
Copy link
Member

jesteria commented Feb 2, 2023

As a user of Fate, I would like to be able to install the library via pip and to be able to initialize system-level features (which might otherwise be handled by my operating system package manager).

For example:

  • (default) configuration files
  • shell completion
  • systemd integration
  • man pages

(This is especially important for distributions of Fate which do not "fall back" to built-in configuration files, but rather require that these have been installed to the system.)

@jesteria jesteria self-assigned this Feb 2, 2023
jesteria added a commit that referenced this issue Feb 8, 2023
jesteria added a commit that referenced this issue Feb 15, 2023
…to default directory or specified directory.

* includes (related) upgrade to argcmdr 1.0.0
* display `python -m fate` rather than `fate` when run that way

part of #15
jesteria added a commit that referenced this issue Feb 15, 2023
## Summary

Adds subcommand `init` with its own subcommands:

* `conf`: write default/example conf files to default directory or to a specified directory

* `comp`: write shell completion files for user or system or to a specified directory

Part of #15 

## Changes

* system path prefixes: ignore isolation in system context + refactoring for flexibility

* added subcommand `init` for post-installation initialization beginning with: shell completion files

* init comp: ensure directory exists before writing file

* added subcommand `init conf` to write default/example conf files to default directory or specified directory.

  * includes (related) upgrade to argcmdr 1.0.0
  * display `python -m fate` rather than `fate` when run that way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant