Skip to content

Commit b62415e

Browse files
authored
#173 Merge pull request from astropenguin/astropenguin/issue172
Release v1.0.0
2 parents 8a080d6 + 9d4e542 commit b62415e

File tree

16 files changed

+1430
-1624
lines changed

16 files changed

+1430
-1624
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
{
22
"name": "pandas-dataclasses",
3-
"image":"python:3.13",
4-
"onCreateCommand": "pip install poetry==1.8.5",
5-
"postCreateCommand": "poetry install",
3+
"image": "ghcr.io/astral-sh/uv:python3.12-bookworm",
4+
"runArgs": [
5+
"--name=pandas-dataclasses"
6+
],
67
"containerEnv": {
7-
"POETRY_VIRTUALENVS_CREATE": "false"
8+
"UV_PROJECT_ENVIRONMENT": "/usr/local"
89
},
10+
"postCreateCommand": "uv sync --frozen",
911
"customizations": {
1012
"vscode": {
1113
"extensions": [
12-
"github.vscode-pull-request-github",
13-
"mhutchie.git-graph",
14-
"ms-python.python",
14+
"ms-python.black-formatter",
1515
"streetsidesoftware.code-spell-checker",
1616
"tamasfe.even-better-toml"
1717
],
1818
"settings": {
19-
"files.insertFinalNewline": true,
20-
"files.trimTrailingWhitespace": true,
21-
"python.formatting.provider": "black",
2219
"python.languageServer": "Pylance",
2320
"[python]": {
24-
"editor.formatOnSave": true,
25-
"editor.insertSpaces": true,
26-
"editor.tabSize": 4
21+
"editor.defaultFormatter": "ms-python.black-formatter",
22+
"editor.formatOnSave": true
2723
}
2824
}
2925
}

.github/workflows/docs.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docs
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
job:
10+
name: Docs
11+
runs-on: ubuntu-latest
12+
container: ghcr.io/astral-sh/uv:python3.12-bookworm
13+
env:
14+
UV_PROJECT_ENVIRONMENT: /usr/local
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: echo "::set-output name=tag::${GITHUB_REF##*/}"
18+
id: tag
19+
- run: uv sync --frozen
20+
- run: docs/build
21+
- uses: peaceiris/actions-gh-pages@v4
22+
with:
23+
destination_dir: ${{ steps.tag.outputs.tag }}
24+
force_orphan: true
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./docs/_build

.github/workflows/gh-pages.yml

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

.github/workflows/pypi.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ jobs:
99
job:
1010
name: PyPI
1111
runs-on: ubuntu-latest
12+
container: ghcr.io/astral-sh/uv:python3.12-bookworm
1213
env:
13-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
14+
UV_PROJECT_ENVIRONMENT: /usr/local
15+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
1416
steps:
1517
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v2
17-
with:
18-
python-version: "3.13"
19-
- name: Publish package to PyPI
20-
run: pip install poetry==1.8.5 && poetry publish --build
18+
- run: uv build && uv publish

.github/workflows/tests.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,26 @@ on:
1010

1111
jobs:
1212
job:
13-
name: Test (Python ${{ matrix.python }})
13+
name: Test (${{ matrix.env }})
1414
runs-on: ubuntu-latest
15+
container: ghcr.io/astral-sh/uv:${{ matrix.env }}
1516
env:
16-
POETRY_VIRTUALENVS_CREATE: false
17+
PYTHON_DIRS: docs tests pandas_dataclasses
18+
UV_PROJECT_ENVIRONMENT: /usr/local
1719
strategy:
1820
fail-fast: false
1921
matrix:
20-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
22+
env:
23+
- python3.9-bookworm
24+
- python3.10-bookworm
25+
- python3.11-bookworm
26+
- python3.12-bookworm
27+
- python3.13-bookworm
2128
steps:
2229
- uses: actions/checkout@v4
23-
- uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python }}
26-
- name: Install project dependencies
27-
run: pip install poetry==1.8.5 && poetry install
28-
- name: Test code's formatting (Black)
29-
run: black --check docs tests pandas_dataclasses
30-
- name: Test code's typing (Pyright)
31-
run: pyright docs tests pandas_dataclasses
32-
- name: Test code's typing (mypy)
33-
run: mypy docs tests pandas_dataclasses
34-
- name: Test code's execution (pytest)
35-
run: pytest -v tests
36-
- name: Test docs' building (Sphinx)
37-
if: ${{ matrix.python != '3.9' }}
38-
run: docs/build
30+
- run: uv sync --frozen
31+
- run: black --check ${PYTHON_DIRS}
32+
- run: pyright ${PYTHON_DIRS}
33+
- run: pytest -v
34+
- run: docs/build
35+
if: ${{ matrix.env != 'python3.9-bookworm' }}

CITATION.cff

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
cff-version: 1.2.0
2-
message: "If you use this software, please cite it as below."
1+
# This CITATION.cff file was generated with cffinit.
2+
# Visit https://bit.ly/cffinit to generate yours today!
33

4-
title: "pandas-dataclasses"
5-
abstract: "pandas data creation made easy by dataclass"
6-
version: 0.13.0
7-
date-released: 2024-12-09
8-
license: "MIT"
9-
doi: "10.5281/zenodo.6127352"
10-
url: "https://github.com/astropenguin/pandas-dataclasses"
4+
cff-version: 1.2.0
5+
title: pandas-dataclasses
6+
message: >-
7+
If you use this software, please cite it using the
8+
metadata from this file.
9+
type: software
1110
authors:
12-
- given-names: "Akio"
13-
family-names: "Taniguchi"
14-
affiliation: "Nagoya University"
15-
orcid: "https://orcid.org/0000-0002-9695-6183"
11+
- given-names: Akio
12+
family-names: Taniguchi
13+
email: taniguchi.akio@gmail.com
14+
affiliation: Kitami Institute of Technology
15+
orcid: 'https://orcid.org/0000-0002-9695-6183'
16+
identifiers:
17+
- type: doi
18+
value: 10.5281/zenodo.10652375
19+
repository-code: 'https://github.com/astropenguin/pandas-dataclasses'
20+
url: 'https://astropenguin.github.io/pandas-dataclasses/v1.0.0'
21+
abstract: pandas data creation by data classes
22+
keywords:
23+
- python
24+
- dataclasses
25+
- pandas
26+
- specifications
27+
- typing
28+
license: MIT
29+
version: 1.0.0
30+
date-released: '2025-01-01'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 Akio Taniguchi
3+
Copyright (c) 2021-2025 Akio Taniguchi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.6127352-cornflowerblue?style=flat-square)](https://doi.org/10.5281/zenodo.6127352)
77
[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/pandas-dataclasses/tests.yml?label=Tests&style=flat-square)](https://github.com/astropenguin/pandas-dataclasses/actions)
88

9-
pandas data creation made easy by dataclass
9+
pandas data creation by data classes
1010

1111
## Overview
1212

docs/_static/logo-dark.svg

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

docs/_static/logo-light.svg

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

0 commit comments

Comments
 (0)