Skip to content

Commit

Permalink
New distribution [0.4.2]
Browse files Browse the repository at this point in the history
 * updated README & bash completion
 * added universal uniq UUID 4 generator
 * fixed line sepertor guessing
 * upated CI configuration
 * fixed `test.py` for Python 3.5 compatibility
  • Loading branch information
JarryShaw committed Nov 27, 2019
1 parent a31a341 commit 1b42d72
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"CWORD",
"Envs",
"NPROCESSORS",
"UUIDs",
"aktau",
"bufpre",
"bufsuf",
Expand All @@ -13,6 +14,7 @@
"getcwd",
"inited",
"ispy",
"nuid",
"parso",
"poflag",
"postmt",
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,16 @@ Raises:

- `ConvertError `-- when `parso.ParserSyntaxError` raised

#### `ConvertError` -- `poseur` internal exception
#### Internal exceptions

```python
class ConvertError(SyntaxError):
pass
"""Parso syntax error."""
```

```python
class EnvironError(EnvironmentError):
"""Invalid environment."""
```

## Test
Expand Down
3 changes: 2 additions & 1 deletion poseur.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
"""Back-port compiler for Python 3.8 positional-only parameter syntax."""

import argparse
import glob
Expand Down Expand Up @@ -31,7 +32,7 @@
del multiprocessing

# version string
__version__ = '0.4.1'
__version__ = '0.4.2'

# from configparser
BOOLEAN_STATES = {'1': True, '0': False,
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
long_desc = file.read()

# version string
__version__ = '0.4.1'
__version__ = '0.4.2'

# set-up script for pip distribution
setup(
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.pypitest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
long_desc = file.read()

# version string
__version__ = '0.4.1'
__version__ = '0.4.2'

# set-up script for pip distribution
setup(
Expand Down
2 changes: 1 addition & 1 deletion share/poseur.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH POSEUR 1 "November 25, 2019" "v0.4.1" ""
.TH POSEUR 1 "November 27, 2019" "v0.4.2" ""
.SH NAME
poseur \- back-port compiler for Python 3.8 positional-only parameter syntax
.
Expand Down
4 changes: 2 additions & 2 deletions share/poseur.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ _poseur() {
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --version --no-archive --dismiss --no-linting"
cmds="--archive-path --encoding --python --linesep"
cmds="--archive-path --encoding --python --linesep --decorator --tabsize"

if [[ ${prev} =~ "--help|--version|--no-archive" ]]
then
__poseur_comp_null
return
elif [[ ${prev} =~ "--archive-path|--encoding|--linesep" ]]
elif [[ ${prev} =~ "--archive-path|--encoding|--linesep|--decorator|--tabsize" ]]
then
__poseur_comp_null
return
Expand Down
4 changes: 2 additions & 2 deletions share/poseur.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poseur
back-port compiler for Python 3.8 positional-only parameter syntax
------------------------------------------------------------------

:Version: v0.4.1
:Date: November 26, 2019
:Version: v0.4.2
:Date: November 27, 2019
:Manual section: 1
:Author:
Jarry Shaw, a newbie programmer, is the author, owner and maintainer
Expand Down

0 comments on commit 1b42d72

Please sign in to comment.