-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
551 additions
and
394 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,41 @@ | ||
name: Publish packages to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
- "[0-9]+.[0-9]+.[0-9]+.post[0-9]+" | ||
- "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+" | ||
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- name: Install dependencies | ||
run: pip install build | ||
- name: Create packages | ||
run: python -m build | ||
- name: Archive packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Retrieve packages | ||
uses: actions/download-artifact@v3 | ||
- name: Upload packages | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,54 @@ | ||
name: test suite | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.10"] | ||
include: | ||
- os: macos-latest | ||
python-version: "3.8" | ||
- os: macos-latest | ||
python-version: "3.12" | ||
- os: windows-latest | ||
python-version: "3.8" | ||
- os: windows-latest | ||
python-version: "3.12" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
- name: Install dependencies | ||
run: pip install .[test] | ||
- name: Test with pytest | ||
run: | | ||
coverage run -m pytest | ||
coverage xml | ||
- name: Upload Coverage | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel: true | ||
file: coverage.xml | ||
|
||
coveralls: | ||
name: Finish Coveralls | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finished | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel-finished: true |
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,33 @@ | ||
# This is the configuration file for pre-commit (https://pre-commit.com/). | ||
# To use: | ||
# * Install pre-commit (https://pre-commit.com/#installation) | ||
# * Copy this file as ".pre-commit-config.yaml" | ||
# * Run "pre-commit install". | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [ "--fix=lf" ] | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.9 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --show-fixes] | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.8.0 | ||
hooks: | ||
- id: mypy | ||
args: ["--explicit-package-bases"] | ||
additional_dependencies: | ||
- asphalt | ||
- py4j | ||
- pytest |
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,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.8" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: [doc] |
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
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,7 @@ | ||
API reference | ||
============= | ||
|
||
Component | ||
--------- | ||
|
||
.. autoclass:: asphalt.py4j.component.Py4JComponent |
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 |
---|---|---|
@@ -1,36 +1,37 @@ | ||
#!/usr/bin/env python3 | ||
import pkg_resources | ||
import importlib.metadata | ||
|
||
from packaging.version import parse | ||
|
||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.intersphinx', | ||
'sphinx_autodoc_typehints', | ||
'sphinxcontrib.asyncio' | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.intersphinx", | ||
"sphinx_autodoc_typehints", | ||
] | ||
|
||
templates_path = ['_templates'] | ||
source_suffix = '.rst' | ||
master_doc = 'index' | ||
project = 'asphalt-py4j' | ||
author = 'Alex Grönholm' | ||
copyright = '2015, ' + author | ||
templates_path = ["_templates"] | ||
source_suffix = ".rst" | ||
master_doc = "index" | ||
project = "asphalt-py4j" | ||
author = "Alex Grönholm" | ||
copyright = "2015, " + author | ||
|
||
v = pkg_resources.get_distribution(project).parsed_version | ||
v = parse(importlib.metadata.version(project)) | ||
version = v.base_version | ||
release = v.public | ||
|
||
language = None | ||
language = "en" | ||
|
||
exclude_patterns = ['_build'] | ||
pygments_style = 'sphinx' | ||
highlight_language = 'python3' | ||
exclude_patterns = ["_build"] | ||
pygments_style = "sphinx" | ||
highlight_language = "python3" | ||
todo_include_todos = False | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
html_static_path = ['_static'] | ||
htmlhelp_basename = project.replace('-', '') + 'doc' | ||
html_theme = "sphinx_rtd_theme" | ||
htmlhelp_basename = project.replace("-", "") + "doc" | ||
|
||
intersphinx_mapping = {'python': ('http://docs.python.org/3/', None), | ||
'asphalt': ('http://asphalt.readthedocs.org/en/latest/', None), | ||
'py4j': ('https://www.py4j.org/', None)} | ||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3/", None), | ||
"asphalt": ("https://asphalt.readthedocs.org/en/latest/", None), | ||
"py4j": ("https://www.py4j.org/", None), | ||
} |
Oops, something went wrong.