Skip to content

Commit

Permalink
Merge 120475d into master
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 19, 2022
2 parents 06f9c5b + 120475d commit 101a0d0
Show file tree
Hide file tree
Showing 36 changed files with 198 additions and 148 deletions.
Empty file modified .github/unused/publish_to_pypi.yml
100644 → 100755
Empty file.
Empty file modified .github/unused/test-unit.yml
100644 → 100755
Empty file.
Empty file modified .github/unused/test_pkg.yml
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
# Windows is not really supported: many tests are skipped on Windows.
# But we still run the tests, gradually increasing the number
# of windows-compatible tests
os: [ windows-latest, ubuntu-latest, macos-latest ] # ,
python-version: [ 3.7, 3.9] #
os: [ ubuntu-latest, macos-latest ] # , windows-latest,
python-version: [ 3.7, '3.10' ] #

steps:
- uses: actions/checkout@v2
Expand Down
Empty file modified .gitignore
100644 → 100755
Empty file.
26 changes: 17 additions & 9 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# 8.1.2

- fixed `PATH` issue on Linux

# 8.1.1

- fixed shell prompt color bug on Linux

# 8.1

- The `create` and `recreate` commands show more detailed information about the created
virtual environment
- The `create` and `recreate` commands show more detailed information about the
created virtual environment

# 8.0

- The `call` command now supports the `-m` option, that runs the file as a module.
- The `call` command now supports the `-m` option, that runs the file as a
module.

# 7.1

- Fixed: `call` command sometimes received incorrect `$PYTHONPATH` values on systems
- Fixed: `call` command sometimes received incorrect `$PYTHONPATH` values on systems
with multiple versions of Python

# 7.0
Expand All @@ -22,17 +31,17 @@
environment with the same interpreter that started `vien`, instead of the
interpreter available as `python3`
- Fixed: virtual environments were not cleared (`venv --clear`) before deletion
- Attempting to run the program on Windows will display a message stating that
- Attempting to run the program on Windows will display a message stating that
the system is not fully supported

# 5.0

- Option `--project-dir` aka `-p` is now supported by all commands
- The `vien call -p` format (with the `-p` option after the command) is deprecated but still works

# 4.4

- `call` is now faster as it launches Python directly without spawning an extra
- `call` is now faster as it launches Python directly without spawning an extra
shell process

# 4.3
Expand All @@ -42,8 +51,7 @@

# 4.2

- Trying to `call` a non-existent file now prints a short error message
instead of an exception
- Trying to `call` a non-existent file now prints a short error message instead of an exception
- A message about a nonexistent environment displays a hint on how to create it

# 4.1
Expand Down
Empty file modified LICENSE
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![PyPI version shields.io](https://img.shields.io/pypi/v/vien.svg)](https://pypi.python.org/pypi/vien/)
[![Generic badge](https://img.shields.io/badge/Python-3.7+-blue.svg)](#)
[![Generic badge](https://img.shields.io/badge/OS-Linux%20|%20macOS-blue.svg)](#)
[![Downloads](https://pepy.tech/badge/vien/month)](https://pepy.tech/project/vien)

# [vien](https://github.com/rtmigo/vien_py#readme)

Expand Down Expand Up @@ -240,6 +241,11 @@ $ /path/to/the/venv/bin/deactivate

</details>

call | run
--------------------------------|-----------------------------------------------
Runs only `python file.py` or `python -m module` | Can run any shell command: `pip3`, `cd`, etc.
Starts one python process | Starts two processes: parent shell and child python

# "call" command

`vien call PYFILE` executes a `.py` script in the virtual environment.
Expand Down
Empty file modified mypy.ini
100644 → 100755
Empty file.
Empty file modified requirements.txt
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ def load_module_dict(filename: str) -> dict:
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Environment :: Console",
"Typing :: Typed",
"Topic :: Software Development :: Build Tools",
"Operating System :: POSIX",
#"Operating System :: Microsoft :: Windows"
# "Operating System :: Microsoft :: Windows"
],

test_suite="test_unit.suite"
)

Empty file modified tests/__init__.py
100644 → 100755
Empty file.
Empty file modified tests/common.py
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions tests/test_arg_parser.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
from pathlib import Path
from typing import List

from vien._common import is_windows

from tests.common import is_posix
from vien._common import is_windows
from vien._main import get_project_dir
from vien._parsed_args import ParsedArgs, Commands, _iter_after

Expand Down
2 changes: 1 addition & 1 deletion tests/test_bash_runner.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from timeit import default_timer as timer

from tests.common import is_posix
from vien._bash_runner import *
from tests.time_limited import TimeLimited
from vien._bash_runner import *


@unittest.skipUnless(is_posix, "not POSIX")
Expand Down
Empty file modified tests/test_call_funcs.py
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions tests/test_call_parser.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

import unittest

from vien._parsed_call import ParsedCall

from vien._exceptions import PyFileArgNotFoundExit
from vien._parsed_call import ParsedCall


class TestNew(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_get_project_dir.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from tests.common import is_posix
from tests.test_arg_parser import windows_too
from vien._main import get_project_dir
from vien._exceptions import PyFileArgNotFoundExit
from vien._main import get_project_dir
from vien._parsed_args import ParsedArgs


Expand Down
Loading

0 comments on commit 101a0d0

Please sign in to comment.