Skip to content

Commit 11b3e8a

Browse files
authored
Replace input prompt with configuration values. (#10)
1 parent 940711a commit 11b3e8a

File tree

16 files changed

+335
-242
lines changed

16 files changed

+335
-242
lines changed

.conda/meta.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/continuous-integration-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- '*'
99

10+
concurrency:
11+
group: ${{ github.head_ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115

1216
run-tests:
@@ -34,7 +38,7 @@ jobs:
3438

3539
- name: Run end-to-end tests.
3640
shell: bash -l {0}
37-
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
41+
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml
3842

3943
- name: Upload coverage reports of end-to-end tests.
4044
if: runner.os == 'Linux' && matrix.python-version == '3.8'

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
args: ['--maxkb=100']
77
- id: check-merge-conflict
88
- id: check-yaml
9-
exclude: meta.yaml
109
- id: debug-statements
1110
- id: end-of-file-fixer
1211
- repo: https://github.com/pre-commit/pygrep-hooks

CHANGES.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,25 @@ reverse chronological order. Releases follow `semantic versioning
77
<https://anaconda.org/conda-forge/pytask-environment>`_.
88

99

10-
0.0.5 - 2021-07-23
10+
0.1.0 - 2022-01-25
11+
------------------
12+
13+
- :gh:`10` replaces the input prompts with configuration values and flags, removes the
14+
conda recipe, and abort simultaneously running builds.
15+
16+
17+
0.0.6 - 2021-07-23
1118
------------------
1219

1320
- :gh:`8` replaces versioneer with setuptools-scm.
1421

1522

23+
0.0.5 - 2021-07-23
24+
------------------
25+
26+
- :gh:`7` adds some pre-commit updates.
27+
28+
1629
0.0.4 - 2021-03-05
1730
------------------
1831

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
prune .conda
21
prune tests
32

43
exclude *.rst
@@ -8,3 +7,5 @@ exclude tox.ini
87

98
include README.rst
109
include LICENSE
10+
11+
recursive-include _static *.png

README.rst

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,30 @@ with
5757
Usage
5858
-----
5959

60-
If the user attempts to build the project and the Python version has been cached in the
61-
database in a previous run, an invocation with a different environment will produce the
62-
following command line output.
60+
If the user attempts to build the project with ``pytask build`` and the Python version
61+
has been cached in the database in a previous run, an invocation with a different
62+
environment will produce the following command line output.
63+
64+
.. image:: _static/error.png
65+
66+
Running
6367

6468
.. code-block:: console
6569
66-
$ pytask build
67-
Your Python environment seems to have changed. The Python version has
68-
changed. The path to the Python executable has changed. Do you want
69-
to continue with the current environment? [y/N]:
70+
$ pytask --update-environment
71+
72+
will update the information on the environment.
73+
74+
To disable either checking the path or the version, set the following configuration to a
75+
falsy value.
76+
77+
.. code-block:: ini
78+
79+
# Content of pytask.ini, setup.cfg, or tox.ini
80+
81+
check_python_version = false # true by default
82+
83+
check_environment = false # true by default
7084
7185
7286
Future development

_static/error.png

45.7 KB
Loading

environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ dependencies:
2424
- pdbpp
2525
- pre-commit
2626
- pytest-cov
27-
- pytest-xdist

src/pytask_environment/collect.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)