-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#39 Merge pull request from astropenguin/astropenguin/issue37
Update supported Python versions
- Loading branch information
Showing
20 changed files
with
1,661 additions
and
999 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM python:3.10-slim | ||
|
||
ENV PATH=$PATH:/root/.local/bin | ||
ENV POETRY_VIRTUALENVS_CREATE=false | ||
ENV POETRY_VERSION=1.2.2 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl git \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& curl -sSL https://install.python-poetry.org | python - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "pandas-dataclasses", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"postCreateCommand": "poetry install", | ||
"extensions": [ | ||
"github.vscode-pull-request-github", | ||
"mhutchie.git-graph", | ||
"ms-python.python", | ||
"streetsidesoftware.code-spell-checker", | ||
"tamasfe.even-better-toml" | ||
], | ||
"settings": { | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
"python.formatting.provider": "black", | ||
"python.languageServer": "Pylance", | ||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
job: | ||
name: Test (Python ${{ matrix.python }}) | ||
runs-on: ubuntu-latest | ||
env: | ||
POETRY_VIRTUALENVS_CREATE: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install project dependencies | ||
run: pip install poetry && poetry install | ||
- name: Test code's formatting (Black) | ||
run: black --check azely docs tests | ||
- name: Test code's execution (pytest) | ||
run: pytest -v tests | ||
- name: Test docs' building (Sphinx) | ||
run: docs/build |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -eu | ||
|
||
sphinx-apidoc -efT -o docs/_apidoc azely | ||
sphinx-build -a docs docs/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
```{include} ../README.md | ||
``` | ||
|
||
```{toctree} | ||
--- | ||
hidden: | ||
--- | ||
Home <self> | ||
Package guide <_apidoc/azely> | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.