-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub Actions CI, modernize packaging #302
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1be9ed2
Add tox and github actions
eumiro 37a62c6
Raise black target version to py37
ferdnyc af91ffa
Formatting: Check in Black changes
ferdnyc c63872c
Move tox configs to setup.cfg
ferdnyc 4fb21c8
Update Github Actions CI def
ferdnyc 2de4315
Remove unsupported tests_require from setup.py
ferdnyc c4197d4
Migrate metadata to pyproject.toml
ferdnyc 6df4bd4
Safer test-directory discovery
ferdnyc 343aba3
CI: Install graphviz with apt
ferdnyc 0116893
Remove old Travis/AppVeyor CI defs
ferdnyc ac355e0
CI: Update to newer actions/checkout
ferdnyc File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lkk Yeah, you just need to drop the
,<3
here, in #296.