Skip to content

Commit

Permalink
Prepare for release v1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Apr 10, 2020
1 parent 8c0d894 commit 2da9086
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ddgr v1.8.1
2020-04-10

- Bump version
- Update docs

-------------------------------------------------------------------------------

ddgr v1.8
2020-04-08

What's in?
- Ignore instant results in JSON output
- Support year in duration
- Support Python 3.8
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ optional arguments:
-C, --nocolor equivalent to --colorize=never
--colors COLORS set output colors (see man page for details)
-j, --ducky open the first result in a web browser; implies --np
-t SPAN, --time SPAN time limit search [d (1 day), w (1 wk), m (1 month)]
-t SPAN, --time SPAN time limit search [d (1 day), w (1 wk), m (1 month), y (1 year)]
-w SITE, --site SITE search sites using DuckDuckGo
-x, --expand Show complete url in search results
-p URI, --proxy URI tunnel traffic through an HTTPS proxy; URI format:
Expand Down
2 changes: 1 addition & 1 deletion ddgr
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ except ValueError:

# Constants

_VERSION_ = '1.7'
_VERSION_ = '1.8.1'

COLORMAP = {k: '\x1b[%sm' % v for k, v in {
'a': '30', 'b': '31', 'c': '32', 'd': '33',
Expand Down
4 changes: 2 additions & 2 deletions ddgr.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "DDGR" "1" "3 Sep 2019" "Version 1.7" "User Commands"
.TH "DDGR" "1" "10 Apr 2020" "Version 1.8.1" "User Commands"
.SH NAME
ddgr \- DuckDuckGo from the terminal
.SH SYNOPSIS
Expand Down Expand Up @@ -46,7 +46,7 @@ Set output colors. Refer to the \fBCOLORS\fR section below for details.
Open the first result in a web browser; implies \fB--noprompt\fR. Feeling Ducky?
.TP
.BI "-t, --time=" SPAN
Time limit search [d=past day, w=past week, m=past month] (default=any time).
Time limit search [d=past day, w=past week, m=past month, y=past year] (default=any time).
.TP
.BI "-w, --site=" SITE
Search a site using DuckDuckGo.
Expand Down

10 comments on commit 2da9086

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 Apr 10, 2020

Choose a reason for hiding this comment

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

@eclipseo, @pabloariasal, @szlin, @zmwangx ddgr v1.8.1 is released! Kindly update the channels.

I had to bump the version because I missed updating the version number in 1.8 earlier. Sorry for any inconvenience.

@szlin
Copy link
Collaborator

@szlin szlin commented on 2da9086 Apr 10, 2020

Choose a reason for hiding this comment

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

@jarun Uploaded, thanks for tagging me.

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 Apr 10, 2020

Choose a reason for hiding this comment

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

Thanks Lin!

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 May 1, 2020

Choose a reason for hiding this comment

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

@zmwangx please update ddgr on PyPI.

@zmwangx
Copy link
Contributor

@zmwangx zmwangx commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

Done updating, and I set up a bot so that in the future it wouldn't depend on me not missing Github notifications. https://github.com/zmwangx/pypi-release-bot/blob/master/.github/workflows/ddgr.yml

Btw sdist is broken, run https://github.com/zmwangx/pypi-release-bot/blob/a21fc7182f87919258e6b5b456165f0018e8dba5/.github/workflows/ddgr.yml#L28-L31 and you'll know why.

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

Thanks @zmwangx!

For sdist broken issue, do I need to make any change in the ddgr project?

@zmwangx
Copy link
Contributor

@zmwangx zmwangx commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

Need to make sure ddgr exists before copying.

shutil.copyfile('ddgr', 'ddgr.py')

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

Please share the patch I can apply. I am not familiar with the dir structure in the server or how the files are accessed.

@zmwangx
Copy link
Contributor

@zmwangx zmwangx commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

diff --git a/setup.py b/setup.py
index bc4889e..294575b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,12 @@
 #!/usr/bin/env python3
 
 import re
+import os.path
 import setuptools
 import shutil
 
-shutil.copyfile('ddgr', 'ddgr.py')
+if os.path.isfile('ddgr'):
+    shutil.copyfile('ddgr', 'ddgr.py')
 
 with open('ddgr.py', encoding='utf-8') as fp:
     version = re.search(r'_VERSION_ = \'(.*?)\'', fp.read()).group(1)

that should do.

@jarun
Copy link
Owner Author

@jarun jarun commented on 2da9086 May 2, 2020

Choose a reason for hiding this comment

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

Thank you so much!
Pushed at commit 5b7f806.

Please sign in to comment.