-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions CI, modernize packaging (#302)
* Add tox and github actions * Raise black target version to py37 * Formatting: Check in Black changes * Move tox configs to setup.cfg * Update Github Actions CI def * Remove unsupported tests_require from setup.py * Migrate metadata to pyproject.toml * Safer test-directory discovery * CI: Install graphviz with apt * Remove old Travis/AppVeyor CI defs * CI: Update to newer actions/checkout --------- Co-authored-by: Miroslav Šedivý <6774676+eumiro@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
139 additions
and
189 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,45 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["*"] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: CI-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
name: "Test with Python ${{ matrix.python-version }}" | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
- "3.8" | ||
- "3.7" | ||
|
||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
- uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
cache: "pip" | ||
- name: "Install dependencies" | ||
run: | | ||
sudo apt install graphviz | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install tox tox-gh | ||
- name: "Setup tests" | ||
run: tox -vv --notest | ||
- name: "Run tests" | ||
run: tox --skip-pkg-install |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,60 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
|
||
[project] | ||
name = 'pydot' | ||
description = "Python interface to Graphviz's Dot" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
requires-python = ">= 3.7" | ||
dependencies = [ | ||
'pyparsing>=2.1.4,<3' | ||
] | ||
authors = [ | ||
{name = "Ero Carrera", email = "ero.carrera@gmail.com"}, | ||
{name = "Peter Nowee", email = "peter@peternowee.com"}, | ||
] | ||
maintainers = [ | ||
{name = "Peter Nowee", email = "peter@peternowee.com"}, | ||
] | ||
keywords = ["graphviz", "dot", "graphs", "visualization"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Scientific/Engineering :: Visualization", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dynamic = [ | ||
'version', | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pydot/pydot" | ||
Changelog = "https://github.com/pydot/pydot/blob/master/ChangeLog" | ||
"Bug Tracker" = "https://github.com/pydot/pydot/issues" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
'chardet', | ||
'black', | ||
] | ||
tests = [ | ||
'chardet', | ||
'black', | ||
'tox', | ||
] | ||
release = ['zest.releaser[recommended]'] | ||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py35'] | ||
target-version = ['py37'] |
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
Oops, something went wrong.