Skip to content

Commit a9923a8

Browse files
committed
Release v0.0.1.
0 parents  commit a9923a8

31 files changed

+1355
-0
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: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% set data = load_setup_py_data() %}
2+
3+
package:
4+
name: pytask-stata
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+
16+
requirements:
17+
host:
18+
- python
19+
- setuptools
20+
21+
run:
22+
- python >=3.6
23+
- pytask >=0.0.8
24+
25+
test:
26+
requires:
27+
- pytest
28+
source_files:
29+
- tox.ini
30+
- tests
31+
commands:
32+
- pytask --version
33+
- pytask --help
34+
- pytask markers
35+
- pytask clean
36+
37+
- pytest tests
38+
39+
about:
40+
home: https://github.com/pytask-dev/pytask-stata
41+
license: none
42+
summary: Execute do-files with Stata.
43+
dev_url: https://github.com/pytask-dev/pytask-stata/

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
name: Bug Report
4+
about: Create a bug report to help us improve pytask-stata
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-stata.
13+
14+
- [ ] (optional) I have confirmed this bug exists on the `main` branch of
15+
pytask-stata.
16+
17+
---
18+
19+
**Note**: Please read [this
20+
guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing
21+
how to provide the necessary information for us to reproduce your bug.
22+
23+
#### Code Sample, a copy-pastable example
24+
25+
```python
26+
# Your code here
27+
```
28+
29+
#### Problem description
30+
31+
Explain **why** the current behaviour is a problem and why the expected output is a
32+
better solution.
33+
34+
#### 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 `main`
15+
[here](https://pytask-stata.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-stata
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-stata
13+
to do [...]".
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-stata
5+
title: "QST:"
6+
labels: "question"
7+
8+
---
9+
10+
#### Question about pytask-stata
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: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Continuous Integration Workflow
2+
on:
3+
push:
4+
branches:
5+
- main
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+
# Unit, integration, and end-to-end tests.
35+
36+
- name: Run unit tests and doctests.
37+
shell: bash -l {0}
38+
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
39+
40+
- name: Upload coverage report for unit tests and doctests.
41+
if: runner.os == 'Linux' && matrix.python-version == '3.8'
42+
shell: bash -l {0}
43+
run: bash <(curl -s https://codecov.io/bash) -F unit -c
44+
45+
# - name: Run integration tests.
46+
# shell: bash -l {0}
47+
# run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
48+
49+
# - name: Upload coverage reports of integration tests.
50+
# if: runner.os == 'Linux' && matrix.python-version == '3.8'
51+
# shell: bash -l {0}
52+
# run: bash <(curl -s https://codecov.io/bash) -F integration -c
53+
54+
- name: Run end-to-end tests.
55+
shell: bash -l {0}
56+
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
57+
58+
- name: Upload coverage reports of end-to-end tests.
59+
if: runner.os == 'Linux' && matrix.python-version == '3.8'
60+
shell: bash -l {0}
61+
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
62+
63+
- name: Validate codecov.yml
64+
if: runner.os == 'Linux' && matrix.python-version == '3.8'
65+
shell: bash -l {0}
66+
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate
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.8
78+
uses: actions/setup-python@v1
79+
with:
80+
python-version: 3.8
81+
82+
- name: Install dependencies
83+
run: pip install tox
84+
85+
- name: Run pre-commit
86+
run: tox -e pre-commit

.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)