Skip to content

Commit a951c7e

Browse files
committed
Merge branch 'release/0.11.0'
First PyOpenSci approved version.
2 parents 77dfe38 + 1440175 commit a951c7e

Some content is hidden

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

52 files changed

+3917
-2724
lines changed

.all-contributorsrc

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"projectName": "rdata",
3+
"projectOwner": "VNMabus",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"CONTRIBUTORS.md"
8+
],
9+
"imageSize": 100,
10+
"commit": false,
11+
"commitConvention": "none",
12+
"contributors": [
13+
{
14+
"login": "vnmabus",
15+
"name": "Carlos Ramos Carreño",
16+
"avatar_url": "https://avatars.githubusercontent.com/u/2364173?v=4",
17+
"profile": "https://github.com/vnmabus",
18+
"contributions": [
19+
"code",
20+
"data",
21+
"doc",
22+
"example",
23+
"ideas",
24+
"infra",
25+
"maintenance",
26+
"projectManagement",
27+
"question",
28+
"review",
29+
"test",
30+
"tutorial"
31+
]
32+
},
33+
{
34+
"login": "",
35+
"name": "CSC - IT Center for Science Ltd",
36+
"avatar_url": "https://avatars.githubusercontent.com/u/5947494?v=4",
37+
"profile": "https://www.csc.fi",
38+
"contributions": [
39+
{
40+
"type": "code",
41+
"url": "https://github.com/vnmabus/rdata/commits?author=trossi"
42+
}
43+
]
44+
},
45+
{
46+
"login": "trossi",
47+
"name": "Tuomas Rossi",
48+
"avatar_url": "https://avatars.githubusercontent.com/u/34502776?v=4",
49+
"profile": "https://github.com/trossi",
50+
"contributions": [
51+
"code",
52+
"ideas",
53+
"bug"
54+
]
55+
},
56+
{
57+
"login": "VolodyaCO",
58+
"name": "Vladimir Vargas-Calderón",
59+
"avatar_url": "https://avatars.githubusercontent.com/u/31494271?v=4",
60+
"profile": "https://www.researchgate.net/profile/Vladimir_Vargas-Calderon",
61+
"contributions": [
62+
"bug"
63+
]
64+
},
65+
{
66+
"login": "Jorgelindo238",
67+
"name": "Jorgelindo",
68+
"avatar_url": "https://avatars.githubusercontent.com/u/79350063?v=4",
69+
"profile": "https://jorgelindodaveiga.myportfolio.com/",
70+
"contributions": [
71+
"bug"
72+
]
73+
},
74+
{
75+
"login": "zoj613",
76+
"name": "zoj613",
77+
"avatar_url": "https://avatars.githubusercontent.com/u/44142765?v=4",
78+
"profile": "https://github.com/zoj613",
79+
"contributions": [
80+
"bug"
81+
]
82+
},
83+
{
84+
"login": "schlegelp",
85+
"name": "Philipp Schlegel",
86+
"avatar_url": "https://avatars.githubusercontent.com/u/7161148?v=4",
87+
"profile": "https://github.com/schlegelp",
88+
"contributions": [
89+
"bug"
90+
]
91+
},
92+
{
93+
"login": "deeenes",
94+
"name": "deeenes",
95+
"avatar_url": "https://avatars.githubusercontent.com/u/2679889?v=4",
96+
"profile": "https://denes.omnipathdb.org/",
97+
"contributions": [
98+
"bug"
99+
]
100+
},
101+
{
102+
"login": "soheila-sahami",
103+
"name": "Soheila",
104+
"avatar_url": "https://avatars.githubusercontent.com/u/9429831?v=4",
105+
"profile": "https://github.com/soheila-sahami",
106+
"contributions": [
107+
"ideas"
108+
]
109+
},
110+
{
111+
"login": "userLUX",
112+
"name": "userLUX",
113+
"avatar_url": "https://avatars.githubusercontent.com/u/107994632?v=4",
114+
"profile": "https://github.com/userLUX",
115+
"contributions": [
116+
"bug"
117+
]
118+
}
119+
],
120+
"contributorsPerLine": 7,
121+
"linkToUsage": true
122+
}

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Mark rda and rds files as binary.
2+
# Otherwise git might change the line endings of
3+
# ascii-formatted files, which breaks the tests
4+
*.rda -text
5+
*.rds -text

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Bug report
2+
description: Create a report to help us reproduce and fix a bug
3+
labels: [bug]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >
9+
#### Please check that the bug has not been previously notified before submitting, by searching through the [issues list](https://github.com/vnmabus/rdata/issues).
10+
- type: textarea
11+
attributes:
12+
label: Bug description summary
13+
description: >
14+
Please describe the bug in a brief paragraph(s). Be clear and concise.
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Code to reproduce the bug
20+
description: |
21+
Please add a minimal code example that can reproduce the error. If the bug does not require more code than loading a data file you can leave this empty. This will be automatically converted to a Python block.
22+
placeholder: |
23+
import rdata
24+
25+
parsed = rdata.parser.parse_file("data.rda")
26+
converted = rdata.conversion.convert(parsed)
27+
converted
28+
render: Python
29+
- type: textarea
30+
attributes:
31+
label: Data file(s)
32+
description: >
33+
If the bug was caused by loading a particular data file, please attach it or paste a link to it here.
34+
- type: textarea
35+
attributes:
36+
label: Expected result
37+
description: >
38+
Paste or describe the result that you expected here.
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: Actual result
44+
description: >
45+
Paste or describe the result that you obtained here. If the code raises an error, you can past it in the next field.
46+
validations:
47+
required: true
48+
- type: textarea
49+
attributes:
50+
label: Traceback (if an exception is raised)
51+
description: |
52+
If an exception is raised, copy and paste the traceback here.
53+
placeholder: |
54+
FileNotFoundError Traceback (most recent call last)
55+
Cell In[5], line 3
56+
1 import rdata
57+
----> 3 parsed = rdata.parser.parse_file("data.rda")
58+
4 converted = rdata.conversion.convert(parsed)
59+
5 converted
60+
61+
File .../rdata/parser/_parser.py:1139, in parse_file(file_or_path, expand_altrep, altrep_constructor_dict, extension)
62+
1137 if extension is None:
63+
1138 extension = getattr(path, "suffix", None)
64+
-> 1139 data = path.read_bytes()
65+
1141 return parse_data(
66+
1142 data,
67+
1143 expand_altrep=expand_altrep,
68+
1144 altrep_constructor_dict=altrep_constructor_dict,
69+
1145 extension=extension,
70+
1146 )
71+
72+
File .../pathlib.py:1050, in Path.read_bytes(self)
73+
1046 def read_bytes(self):
74+
1047 """
75+
1048 Open the file in bytes mode, read it, and close the file.
76+
1049 """
77+
-> 1050 with self.open(mode='rb') as f:
78+
1051 return f.read()
79+
80+
File .../pathlib.py:1044, in Path.open(self, mode, buffering, encoding, errors, newline)
81+
1042 if "b" not in mode:
82+
1043 encoding = io.text_encoding(encoding)
83+
-> 1044 return io.open(self, mode, buffering, encoding, errors, newline)
84+
85+
FileNotFoundError: [Errno 2] No such file or directory: 'data.rda'
86+
render: Python
87+
- type: textarea
88+
attributes:
89+
label: Software versions
90+
description: >
91+
Include the version of the library used (obtained with `rdata.__version__`). If relevant, you can include here the OS version and versions of related software.
92+
placeholder: |
93+
rdata version: 0.10.0
94+
OS: Windows 10
95+
validations:
96+
required: true
97+
- type: textarea
98+
attributes:
99+
label: Additional context
100+
description: >
101+
Add any other context about the problem here.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
labels: [enhancement]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >
9+
#### Please check that this idea has not been proposed previously, by searching through the [issues list](https://github.com/vnmabus/rdata/issues).
10+
- type: textarea
11+
attributes:
12+
label: Motivation
13+
description: >
14+
A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Desired functionality
20+
description: >
21+
A clear and concise description of what you want to happen.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Alternatives
27+
description: >
28+
A clear and concise description of any alternative solutions or features you have considered.
29+
validations:
30+
required: false
31+
- type: textarea
32+
attributes:
33+
label: Additional context
34+
description: >
35+
Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--
2+
Thanks for your contribution! Please ensure you have taken a look at
3+
the contribution guidelines:
4+
https://github.com/vnmabus/rdata/blob/develop/CONTRIBUTING.md
5+
-->
6+
7+
## References to issues or other PRs
8+
<!--
9+
Include links to the relevant issues and PRs, using the relevant Github
10+
keywords (e.g., Fixes) for closing automatically the issues resolved
11+
on merge (see https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
12+
If there is no current issue discussing the addition of this functionality, it
13+
is recommended to create one and discuss the feature there.
14+
Otherwise, it is possible for this functionality to be rejected, or to require
15+
considerable changes.
16+
Example: Fixes #42. See also #123.
17+
-->
18+
19+
20+
## Describe the proposed changes
21+
22+
23+
## Additional information
24+
25+
26+
## Checklist before requesting a review
27+
28+
- [ ] I have performed a self-review of my code
29+
- [ ] The code conforms to the style used in this package (checked with [Ruff](https://docs.astral.sh/ruff/))
30+
- [ ] The code is fully documented and typed (type-checked with [Mypy](https://mypy-lang.org/))
31+
- [ ] I have added thorough tests for the new/changed functionality

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ['3.9', '3.10', '3.11']
14+
python-version: ['3.9', '3.10', '3.11', '3.12']
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

.github/workflows/mypy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Mypy
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
name: Mypy
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.11"
17+
18+
- name: Install dependencies
19+
run: |
20+
pip3 install ".[test,typing]" mypy;
21+
rm -rf build;
22+
23+
- uses: tsuyoshicho/action-mypy@v4
24+
with:
25+
github_token: ${{ secrets.github_token }}
26+
reporter: github-pr-review
27+
install_types: false
28+
# The action will output fail if there are mypy errors
29+
level: error
30+
filter_mode: nofilter

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up Python
26-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.x'
2929
- name: Install dependencies

.github/workflows/ruff.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Ruff
2+
on: [push]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: chartboost/ruff-action@v1
9+
with:
10+
args: check --output-format github

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
# ruff
107+
/.ruff_cache/

0 commit comments

Comments
 (0)