Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amoffat committed Aug 28, 2020
2 parents ee03f23 + 175821e commit 686c472
Show file tree
Hide file tree
Showing 10 changed files with 656 additions and 721 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
@@ -1,6 +1,6 @@
[run]
branch = True
source =
source =
sh.py

[report]
Expand Down
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [amoffat]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -20,6 +20,7 @@ before_script:

script:
- python sh.py travis
- python -m flake8 sh.py test.py
- if python -c 'import sys; sys.exit(int(not sys.version_info >= (3, 5)))' ; then python setup.py check --restructuredtext --metadata --strict ; fi

after_success:
Expand Down
12 changes: 8 additions & 4 deletions CHANGELOG.md
@@ -1,4 +1,8 @@
# Changelog
## 1.14.0 - 8/28/20
* `_env` now more lenient in accepting dictionary-like objects [#527](https://github.com/amoffat/sh/issues/527)
* `None` and `False` arguments now do not pass through to underlying command [#525](https://github.com/amoffat/sh/pull/525)
* Implemented `find_spec` on the fancy importer, which fixes some Python3.4+ issues [#536](https://github.com/amoffat/sh/pull/536)

## 1.13.1 - 4/28/20
* regression fix if `_fg=False` [#520](https://github.com/amoffat/sh/issues/520)
Expand Down Expand Up @@ -166,7 +170,7 @@
* Bugfix where input arguments were being assumed as ascii or unicode, but never as a string in a different encoding.
* _long_sep keyword argument added joining together a dictionary of arguments passed in to a command
* Commands can now be passed a dictionary of args, and the keys will be interpretted "raw", with no underscore-to-hyphen conversion
* Reserved Python keywords can now be used as subcommands by appending an underscore `_` to them
* Reserved Python keywords can now be used as subcommands by appending an underscore `_` to them


## 1.07 - 11/21/12
Expand All @@ -177,7 +181,7 @@
* Added `_decode_errors` to be passed to all stdout/stderr decoding of a process.
* Added `_no_out`, `_no_err`, and `_no_pipe` special keyword arguments. These are used for long-running processes with lots of output.
* Changed custom loggers that were created for each process to fixed loggers, so there are no longer logger references laying around in the logging module after the process ends and it garbage collected.


## 1.06 - 11/10/12

Expand All @@ -192,11 +196,11 @@

* Changing status from alpha to beta.
* Python 3.3 officially supported.
* Documentation fix. The section on exceptions now references the fact that signals do not raise an exception, even for signals that might seem like they should, e.g. segfault.
* Documentation fix. The section on exceptions now references the fact that signals do not raise an exception, even for signals that might seem like they should, e.g. segfault.
* Bugfix with Python 3.3 where importing commands from the sh namespace resulted in an error related to `__path__`
* Long-form and short-form options to commands may now be given False to disable the option from being passed into the command. This is useful to pass in a boolean flag that you flip to either True or False to enable or disable some functionality at runtime.

## 1.04 - 10/07/12

* Making `Command` class resolve the `path` parameter with `which` by default instead of expecting it to be resolved before it is passed in. This change shouldn't affect backwards compatibility.
* Making `Command` class resolve the `path` parameter with `which` by default instead of expecting it to be resolved before it is passed in. This change shouldn't affect backwards compatibility.
* Fixing a bug when an exception is raised from a program, and the error output has non-ascii text. This didn't work in Python < 3.0, because .decode()'s default encoding is typically ascii.
10 changes: 5 additions & 5 deletions README.rst
Expand Up @@ -40,11 +40,11 @@ Installation
::

$> pip install sh


.. image:: https://raw.githubusercontent.com/amoffat/sh/master/gitads.png
:target: https://tracking.gitads.io/?campaign=gitads&repo=sh&redirect=gitads.io
:alt: Logo
Support
=======
* `Andrew Moffat <https://github.com/amoffat>`_ - author/maintainer
* `Erik Cederstrand <https://github.com/ecederstrand>`_ - maintainer


Developers
Expand Down
8 changes: 4 additions & 4 deletions docker_test_suite/Dockerfile
Expand Up @@ -4,10 +4,10 @@ ARG cache_bust
RUN apt-get update
RUN apt-get -y install locales

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN apt-get -y install\
software-properties-common\
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Expand Up @@ -3,3 +3,4 @@ coverage==4.2
coveralls==1.1
docopt==0.6.2
docutils==0.12
flake8==3.7.9
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -3,3 +3,6 @@ universal = 1

[metadata]
license_file = LICENSE.txt

[flake8]
max-line-length = 120

0 comments on commit 686c472

Please sign in to comment.