Skip to content

Commit aa5bd78

Browse files
authored
Release version 0.0.1. (#1)
1 parent ef40464 commit aa5bd78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+4206
-1
lines changed

.conda/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%PYTHON%" setup.py install
2+
if errorlevel 1 exit 1

.conda/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$PYTHON setup.py install # Python command to install the script.

.conda/meta.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{% set data = load_setup_py_data() %}
2+
3+
package:
4+
name: pytask
5+
version: {{ data.get('version') }}
6+
7+
source:
8+
# git_url is nice in that it won't capture devenv stuff. However, it only captures
9+
# committed code, so pay attention.
10+
git_url: ../
11+
12+
build:
13+
noarch: python
14+
number: 0
15+
entry_points:
16+
- pytask = pytask.cli:pytask
17+
18+
requirements:
19+
host:
20+
- python
21+
- setuptools
22+
23+
run:
24+
- python >=3.6
25+
- attrs >=17.4.0
26+
- click
27+
- networkx
28+
- pluggy
29+
- pony >=0.7.13
30+
- pytest
31+
32+
test:
33+
requires:
34+
- pexpect
35+
- pytest
36+
source_files:
37+
- tox.ini
38+
- tests
39+
commands:
40+
- pytask --version
41+
- pytask --help
42+
43+
- pytest tests
44+
45+
about:
46+
home: https://github.com/pytask-dev/pytask
47+
license: none
48+
summary: In its highest aspirations, **pytask** tries to be pytest as a build system.
49+
doc_url: https://pytask-dev.readthedocs.io/en/latest
50+
dev_url: https://github.com/pytask-dev/pytask/

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
3+
name: Bug Report
4+
about: Create a bug report to help us improve pytask
5+
title: "BUG:"
6+
labels: "bug"
7+
8+
---
9+
10+
- [ ] I have checked that this issue has not already been reported.
11+
12+
- [ ] I have confirmed this bug exists on the latest version of pytask.
13+
14+
- [ ] (optional) I have confirmed this bug exists on the master branch of pytask.
15+
16+
---
17+
18+
**Note**: Please read [this
19+
guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing
20+
how to provide the necessary information for us to reproduce your bug.
21+
22+
#### Code Sample, a copy-pastable example
23+
24+
```python
25+
# Your code here
26+
```
27+
28+
#### Problem description
29+
30+
Explain **why** the current behaviour is a problem and why the expected output is a
31+
better solution.
32+
33+
#### Expected Output
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
name: Documentation Improvement
4+
about: Report wrong or missing documentation
5+
title: "DOC:"
6+
labels: "documentation"
7+
8+
---
9+
10+
#### Location of the documentation
11+
12+
Provide the location of the documentation, e.g. an URL of the documentation.
13+
14+
**Note**: You can check the latest versions of the docs on `master`
15+
[here](https://pytask.readthedocs.io/en/latest).
16+
17+
#### Documentation problem
18+
19+
Provide a description of what documentation you believe needs to be fixed/improved.
20+
21+
#### Suggested fix for documentation
22+
23+
Explain the suggested fix and **why** it's better than the existing documentation.

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
name: Enhancement
4+
about: Suggest an idea for pytask
5+
title: "ENH:"
6+
labels: "enhancement"
7+
8+
---
9+
10+
#### Is your feature request related to a problem?
11+
12+
Provide a description of what the problem is, e.g. "I wish I could use pytask to do
13+
[...]".
14+
15+
#### Describe the solution you'd like
16+
17+
Provide a description of the feature request and how it might be implemented.
18+
19+
#### API breaking implications
20+
21+
Provide a description of how this feature will affect the API.
22+
23+
#### Describe alternatives you've considered
24+
25+
Provide a description of any alternative solutions or features you've considered.
26+
27+
#### Additional context
28+
29+
Add any other context, code examples, or references to existing implementations about
30+
the feature request here.
31+
32+
```python
33+
# Your code here, if applicable
34+
```

.github/ISSUE_TEMPLATE/question.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
name: Submit Question
4+
about: Ask a general question about pytask
5+
title: "QST:"
6+
labels: "question"
7+
8+
---
9+
10+
#### Question about pytask
11+
12+
**Note**: If you'd still like to submit a question, please read [this guide](
13+
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to
14+
provide the necessary information for us to reproduce your question.
15+
16+
```python
17+
# Your code here, if applicable
18+
```

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#### Changes
2+
3+
Provide a description and/or bullet points to describe the changes in this PR.
4+
5+
#### Todo
6+
7+
- [ ] Reference issues which can be closed due to this PR with "Closes #x".
8+
- [ ] Review whether the documentation needs to be updated.
9+
- [ ] Document PR in docs/changes.rst.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Continuous Integration Workflow
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
12+
run-tests:
13+
14+
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
21+
python-version: ['3.6', '3.7', '3.8']
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: goanpeca/setup-miniconda@v1
26+
with:
27+
auto-update-conda: true
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install core dependencies.
31+
shell: bash -l {0}
32+
run: conda install -c conda-forge tox-conda coverage
33+
34+
- name: Validate codecov.yml
35+
if: runner.os == 'Linux' && matrix.python-version == '3.7'
36+
shell: bash -l {0}
37+
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate
38+
39+
# Unit, integration, and end-to-end tests.
40+
41+
- name: Run unit tests and doctests.
42+
shell: bash -l {0}
43+
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml
44+
45+
- name: Upload coverage report for unit tests and doctests.
46+
if: runner.os == 'Linux' && matrix.python-version == '3.7'
47+
shell: bash -l {0}
48+
run: bash <(curl -s https://codecov.io/bash) -F unit -c
49+
50+
- name: Run integration tests.
51+
shell: bash -l {0}
52+
run: tox -e pytest -- -m integration --cov=./ --cov-report=xml
53+
54+
- name: Upload coverage reports of integration tests.
55+
if: runner.os == 'Linux' && matrix.python-version == '3.7'
56+
shell: bash -l {0}
57+
run: bash <(curl -s https://codecov.io/bash) -F integration -c
58+
59+
- name: Run end-to-end tests.
60+
shell: bash -l {0}
61+
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml
62+
63+
- name: Upload coverage reports of end-to-end tests.
64+
if: runner.os == 'Linux' && matrix.python-version == '3.7'
65+
shell: bash -l {0}
66+
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
67+
68+
69+
pre-commit:
70+
71+
name: Run pre-commit.
72+
runs-on: ubuntu-latest
73+
74+
steps:
75+
- uses: actions/checkout@v2
76+
77+
- name: Set up Python 3.7
78+
uses: actions/setup-python@v1
79+
with:
80+
python-version: 3.7
81+
82+
- name: Install dependencies
83+
run: pip install tox
84+
85+
- name: Run pre-commit
86+
run: tox -e pre-commit
87+
88+
89+
docs:
90+
91+
name: Run documentation.
92+
runs-on: ubuntu-latest
93+
94+
steps:
95+
- uses: actions/checkout@v2
96+
- uses: goanpeca/setup-miniconda@v1
97+
with:
98+
auto-update-conda: true
99+
python-version: 3.7
100+
101+
- name: Install core dependencies.
102+
shell: bash -l {0}
103+
run: conda install -c conda-forge tox-conda
104+
105+
- name: Build docs
106+
shell: bash -l {0}
107+
run: tox -e sphinx

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Files
2+
.coverage
3+
coverage.*
4+
5+
# Folders
6+
.idea
7+
.ipynb_checkpoints
8+
.tox
9+
.vscode
10+
_build
11+
__pycache__
12+
13+
*.egg-info
14+
15+
.pytask.sqlite3

0 commit comments

Comments
 (0)