Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
43a2a486
Commit
43a2a486
authored
9 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Format sample stanza to render as Python code.
parent
5ed23f0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diceware/random_sources.py
+5
-7
5 additions, 7 deletions
diceware/random_sources.py
with
5 additions
and
7 deletions
diceware/random_sources.py
+
5
−
7
View file @
43a2a486
...
...
@@ -42,21 +42,19 @@ generate.
Finally, to register the source, add some stanza in `setup.py` of your
project that looks like::
...
#
...
setup(
...
#
...
entry_points={
'
console_scripts
'
:
[
'
diceware = diceware:main
'
,
],
# console scripts and other entry points...
'
diceware_random_sources
'
: [
'
myrandom = mypkg.mymodule:MyRandomSource
'
,
'
myothersrc = mypkg.mymodule:MyOtherSource
'
,
],
},
...
#
...
)
...
#
...
Here the `myrandom` and `myothersrc` lines register random sources that
(if installed) `diceware` will find on startup and offer to users under
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment