Skip to content

Commit a18e2fb

Browse files
Update template to v0.3.1 (#56)
* Update template to v0.3.1 * Fix .rej * Remove prettier * Fix install instructions in contributing.md * Apply formatting --------- Co-authored-by: scverse-bot <None> Co-authored-by: Isaac Virshup <ivirshup@gmail.com>
1 parent 9b22d05 commit a18e2fb

23 files changed

+348
-797
lines changed

.bumpversion.cfg

-8
This file was deleted.

.codecov.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Based on pydata/xarray
22
codecov:
3-
require_ci_to_pass: no
3+
require_ci_to_pass: no
44

55
coverage:
6-
status:
7-
project:
8-
default:
9-
# Require 1% coverage, i.e., always succeed
10-
target: 1
11-
patch: false
12-
changes: false
6+
status:
7+
project:
8+
default:
9+
# Require 1% coverage, i.e., always succeed
10+
target: 1
11+
patch: false
12+
changes: false
1313

1414
comment:
15-
layout: diff, flags, files
16-
behavior: once
17-
require_base: no
15+
layout: diff, flags, files
16+
behavior: once
17+
require_base: no

.cruft.json

+27-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
{
2-
"template": "https://github.com/scverse/cookiecutter-scverse",
3-
"commit": "5f091ed0952e4adac0c95bda4006bec0b4532995",
4-
"checkout": null,
5-
"context": {
6-
"cookiecutter": {
7-
"project_name": "genomic-features",
8-
"package_name": "genomic_features",
9-
"project_description": "Genomic annotations using BioConductor resources in Python.",
10-
"author_full_name": "Isaac Virshup",
11-
"author_email": "ivirshup@gmail.com",
12-
"github_user": "ivirshup",
13-
"project_repo": "https://github.com/scverse/genomic-features",
14-
"license": "BSD 3-Clause License",
15-
"_copy_without_render": [
16-
".github/workflows/**.yaml",
17-
"docs/_templates/autosummary/**.rst"
18-
],
19-
"_template": "https://github.com/scverse/cookiecutter-scverse"
20-
}
21-
},
22-
"directory": null
2+
"template": "https://github.com/scverse/cookiecutter-scverse",
3+
"commit": "586b1652162ff7994b0070a034023d64289ae416",
4+
"checkout": "v0.3.1",
5+
"context": {
6+
"cookiecutter": {
7+
"project_name": "genomic-features",
8+
"package_name": "genomic_features",
9+
"project_description": "Genomic annotations using BioConductor resources in Python.",
10+
"author_full_name": "Isaac Virshup",
11+
"author_email": "ivirshup@gmail.com",
12+
"github_user": "ivirshup",
13+
"project_repo": "https://github.com/scverse/genomic-features",
14+
"license": "BSD 3-Clause License",
15+
"_copy_without_render": [
16+
".github/workflows/build.yaml",
17+
".github/workflows/test.yaml",
18+
"docs/_templates/autosummary/**.rst"
19+
],
20+
"_render_devdocs": false,
21+
"_jinja2_env_vars": {
22+
"lstrip_blocks": true,
23+
"trim_blocks": true
24+
},
25+
"_template": "https://github.com/scverse/cookiecutter-scverse"
26+
}
27+
},
28+
"directory": null
2329
}

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11+
[*.{yml,yaml}]
12+
indent_size = 2
13+
14+
[.cruft.json]
15+
indent_size = 2
16+
1117
[Makefile]
1218
indent_style = tab

.github/ISSUE_TEMPLATE/bug_report.yml

+82-82
Original file line numberDiff line numberDiff line change
@@ -2,88 +2,88 @@ name: Bug report
22
description: Report something that is broken or incorrect
33
labels: bug
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
9-
detailing how to provide the necessary information for us to reproduce your bug. In brief:
10-
* Please provide exact steps how to reproduce the bug in a clean Python environment.
11-
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
12-
* Sometimes it is not possible to share the data, but usually it is possible to replicate problems on publicly
13-
available datasets or to share a subset of your data.
5+
- type: markdown
6+
attributes:
7+
value: |
8+
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
9+
detailing how to provide the necessary information for us to reproduce your bug. In brief:
10+
* Please provide exact steps how to reproduce the bug in a clean Python environment.
11+
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
12+
* Sometimes it is not possible to share the data, but usually it is possible to replicate problems on publicly
13+
available datasets or to share a subset of your data.
1414
15-
- type: textarea
16-
id: report
17-
attributes:
18-
label: Report
19-
description: A clear and concise description of what the bug is.
20-
validations:
21-
required: true
15+
- type: textarea
16+
id: report
17+
attributes:
18+
label: Report
19+
description: A clear and concise description of what the bug is.
20+
validations:
21+
required: true
2222

23-
- type: textarea
24-
id: versions
25-
attributes:
26-
label: Version information
27-
description: |
28-
Please paste below the output of
23+
- type: textarea
24+
id: versions
25+
attributes:
26+
label: Version information
27+
description: |
28+
Please paste below the output of
2929
30-
```python
31-
import session_info
32-
session_info.show(html=False, dependencies=True)
33-
```
34-
placeholder: |
35-
-----
36-
anndata 0.8.0rc2.dev27+ge524389
37-
session_info 1.0.0
38-
-----
39-
asttokens NA
40-
awkward 1.8.0
41-
backcall 0.2.0
42-
cython_runtime NA
43-
dateutil 2.8.2
44-
debugpy 1.6.0
45-
decorator 5.1.1
46-
entrypoints 0.4
47-
executing 0.8.3
48-
h5py 3.7.0
49-
ipykernel 6.15.0
50-
jedi 0.18.1
51-
mpl_toolkits NA
52-
natsort 8.1.0
53-
numpy 1.22.4
54-
packaging 21.3
55-
pandas 1.4.2
56-
parso 0.8.3
57-
pexpect 4.8.0
58-
pickleshare 0.7.5
59-
pkg_resources NA
60-
prompt_toolkit 3.0.29
61-
psutil 5.9.1
62-
ptyprocess 0.7.0
63-
pure_eval 0.2.2
64-
pydev_ipython NA
65-
pydevconsole NA
66-
pydevd 2.8.0
67-
pydevd_file_utils NA
68-
pydevd_plugins NA
69-
pydevd_tracing NA
70-
pygments 2.12.0
71-
pytz 2022.1
72-
scipy 1.8.1
73-
setuptools 62.5.0
74-
setuptools_scm NA
75-
six 1.16.0
76-
stack_data 0.3.0
77-
tornado 6.1
78-
traitlets 5.3.0
79-
wcwidth 0.2.5
80-
zmq 23.1.0
81-
-----
82-
IPython 8.4.0
83-
jupyter_client 7.3.4
84-
jupyter_core 4.10.0
85-
-----
86-
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:58:50) [GCC 10.3.0]
87-
Linux-5.18.6-arch1-1-x86_64-with-glibc2.35
88-
-----
89-
Session information updated at 2022-07-07 17:55
30+
```python
31+
import session_info
32+
session_info.show(html=False, dependencies=True)
33+
```
34+
placeholder: |
35+
-----
36+
anndata 0.8.0rc2.dev27+ge524389
37+
session_info 1.0.0
38+
-----
39+
asttokens NA
40+
awkward 1.8.0
41+
backcall 0.2.0
42+
cython_runtime NA
43+
dateutil 2.8.2
44+
debugpy 1.6.0
45+
decorator 5.1.1
46+
entrypoints 0.4
47+
executing 0.8.3
48+
h5py 3.7.0
49+
ipykernel 6.15.0
50+
jedi 0.18.1
51+
mpl_toolkits NA
52+
natsort 8.1.0
53+
numpy 1.22.4
54+
packaging 21.3
55+
pandas 1.4.2
56+
parso 0.8.3
57+
pexpect 4.8.0
58+
pickleshare 0.7.5
59+
pkg_resources NA
60+
prompt_toolkit 3.0.29
61+
psutil 5.9.1
62+
ptyprocess 0.7.0
63+
pure_eval 0.2.2
64+
pydev_ipython NA
65+
pydevconsole NA
66+
pydevd 2.8.0
67+
pydevd_file_utils NA
68+
pydevd_plugins NA
69+
pydevd_tracing NA
70+
pygments 2.12.0
71+
pytz 2022.1
72+
scipy 1.8.1
73+
setuptools 62.5.0
74+
setuptools_scm NA
75+
six 1.16.0
76+
stack_data 0.3.0
77+
tornado 6.1
78+
traitlets 5.3.0
79+
wcwidth 0.2.5
80+
zmq 23.1.0
81+
-----
82+
IPython 8.4.0
83+
jupyter_client 7.3.4
84+
jupyter_core 4.10.0
85+
-----
86+
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:58:50) [GCC 10.3.0]
87+
Linux-5.18.6-arch1-1-x86_64-with-glibc2.35
88+
-----
89+
Session information updated at 2022-07-07 17:55

.github/ISSUE_TEMPLATE/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Scverse Community Forum
4-
url: https://discourse.scverse.org/
5-
about: If you have questions about “How to do X”, please ask them here.
3+
- name: Scverse Community Forum
4+
url: https://discourse.scverse.org/
5+
about: If you have questions about “How to do X”, please ask them here.

.github/ISSUE_TEMPLATE/feature_request.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Feature request
22
description: Propose a new feature for genomic-features
33
labels: enhancement
44
body:
5-
- type: textarea
6-
id: description
7-
attributes:
8-
label: Description of feature
9-
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
10-
validations:
11-
required: true
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Description of feature
9+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
10+
validations:
11+
required: true

.github/workflows/build.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: Check Build
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
11-
cancel-in-progress: true
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
1212

1313
jobs:
14-
package:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Python 3.11
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: "3.11"
22-
cache: "pip"
23-
cache-dependency-path: "**/pyproject.toml"
24-
- name: Install build dependencies
25-
run: python -m pip install --upgrade pip wheel twine build
26-
- name: Build package
27-
run: python -m build
28-
- name: Check package
29-
run: twine check --strict dist/*.whl
14+
package:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python 3.11
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.11"
22+
cache: "pip"
23+
cache-dependency-path: "**/pyproject.toml"
24+
- name: Install build dependencies
25+
run: python -m pip install --upgrade pip wheel twine build
26+
- name: Build package
27+
run: python -m build
28+
- name: Check package
29+
run: twine check --strict dist/*.whl

.github/workflows/release.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
8+
jobs:
9+
release:
10+
name: Upload release to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/genomic_features
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
filter: blob:none
21+
fetch-depth: 0
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.x"
25+
cache: "pip"
26+
- run: pip install build
27+
- run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)