Filipe Oliveira
95d0eaa77d
fix: verify built artifacts and gate release tags against pyproject version
...
The test job installs from the source tree, where diagrams/cli.py and
resources/ are always present, so two broken releases went out green:
- 0.24.1-0.24.4 declared a `diagrams = diagrams.cli:main` console script
while diagrams/cli.py did not exist, so `pipx install diagrams` installed
an executable that could only raise ModuleNotFoundError (#1149 ).
- 0.25.0 moved to a PEP 621 [project] table with no [build-system] table,
so pip built with setuptools and shipped a wheel with zero icons. It does
not raise: the CLI exits 0 and renders an 8 KB image of empty boxes.
Separately, the v0.24.4 tag was placed one commit before the version bump,
so the tag said 0.24.4 while pyproject.toml said 0.24.3 (#1183 ). Nothing
compared the two.
Add tests/test_packaging.py, which asserts against installed metadata and
on-disk files rather than the checkout: every declared console-script entry
point imports, every Node subclass's icon resolves through the production
Node._load_icon path, and diagrams.__version__ matches the distribution
metadata. A setUpModule guard skips the module, with an instruction, when
`import diagrams` does not resolve to the installed distribution, so an
unpacked sdist or a shadowed checkout cannot pass it vacuously.
Add .github/workflows/package.yml to build both artifacts, inspect the
sdist listing, install the wheel into a clean venv and run those invariants
against the install, plus the console script end to end.
Add scripts/check_release_version.py and a tag-version job that fails a
release whose tag does not name the version in pyproject.toml. The version
stays a single literal in pyproject.toml; diagrams.__version__ now reads it
back via importlib.metadata, reporting 0.0.0.dev0 when the imported package
is not the installed copy rather than echoing the wrong release number.
Split [tool.hatch.build] into per-target tables so the sdist also carries
tests/ and scripts/check_release_version.py, letting packagers verify a
build from the tarball without cloning.
Turn diagrams/gis/cplusplus.py into a deprecation shim aliasing
diagrams.gis.cli.Mapnik. The new icon test caught it: resources/gis/cplusplus
was never committed alongside the generated module in #847 , so
gis.cplusplus.Mapnik has always rendered a blank node. docs/nodes/gis.md,
generated by the same autogen.sh run, already omits the module and documents
Mapnik at diagrams.gis.cli.Mapnik, which has a real icon.
1 week ago
MinJae Kwon
5db95a8843
feat: add theme system and modernize default styling ( #1200 )
...
* feat: add theme system and modernize default styling
* chore: update poetry.lock
* fix: downgrade pre-commit version constraint to ~=3.5
* fix: address PR review comments
* chore: remove unrelated files from PR
* fix: restore original pre-commit version and poetry.lock
* chore: update poetry.lock
* fix: convert dependency-groups to poetry format
* test: add tests for curvestyle and theme validation
7 months ago
kurtqq
b22317e011
Merge branch 'master' into patch-1
9 months ago
Copilot
052da89ea7
chore: move pre-commit from runtime to dev dependencies ( #1189 )
...
* Initial plan
* Initial plan for removing pre-commit from main dependencies
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Remove pre-commit from main dependencies and clean up test artifacts
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Move pre-commit to dev dependencies and revert .gitignore changes
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Update poetry.lock to reflect dependency changes
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
9 months ago
Copilot
dd0763d939
fix: missing logos in v0.25.0 by adding build-system configuration ( #1187 )
...
* Initial plan
* Initial investigation of logo display issue
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Fix: Add build-system configuration to include resources in package
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Clean up pyproject.toml - remove duplicate Poetry configuration
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Update version to 0.25.1 and add rendering test for resources
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Update poetry.lock to reflect current dependencies
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
* Fix pre-commit issues: trailing whitespace and formatting
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
9 months ago
mingrammer
2b7e81bcb2
chore: update poetry config
9 months ago
mingrammer
3c1aa071bd
bump: up to version 0.25.0
9 months ago
kurtqq
47d44a2179
Update graphviz version
10 months ago
dependabot[bot]
1e26cfedaa
chore(deps-dev): bump isort from 5.13.2 to 6.0.1 ( #1172 )
...
Bumps [isort](https://github.com/PyCQA/isort ) from 5.13.2 to 6.0.1.
- [Release notes](https://github.com/PyCQA/isort/releases )
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md )
- [Commits](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1 )
---
updated-dependencies:
- dependency-name: isort
dependency-version: 6.0.1
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
dependabot[bot]
f35ea617d5
chore(deps-dev): bump pre-commit from 4.0.1 to 4.3.0 ( #1163 )
...
Bumps [pre-commit](https://github.com/pre-commit/pre-commit ) from 4.0.1 to 4.3.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases )
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.0.1...v4.3.0 )
---
updated-dependencies:
- dependency-name: pre-commit
dependency-version: 4.3.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
Lev Vereshchagin
aaf9da8725
Make pre-commit a development dependency ( #1156 )
...
Closes #1136
1 year ago
dependabot[bot]
86ada40e47
chore(deps-dev): bump pytest from 8.3.4 to 8.4.0 ( #1148 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.4 to 8.4.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.4...8.4.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-version: 8.4.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Cedrik Neumann
0a67f0ea91
feat(scripts): provide `diagrams` CLI ( #524 )
...
* feat(scripts): provide `diagrams` CLI
This change addresses https://github.com/mingrammer/diagrams/issues/369
while providing a simple CLI entry point which can be used outside the
virtual environment of the installed package.
This works well with for example with [pipx](https://pipxproject.github.io/pipx/ )
or [uv](https://docs.astral.sh/uv/ ).
* feat(scripts): add docstring and tests
* feat(scripts): Fix pre-commit error
* feat(scripts): Fix pre-commit error 2nd try
---------
Co-authored-by: tessier <tessier@luxeys.com>
1 year ago
MinJae Kwon (Miti)
581c2233f4
fix: remove unimplemented command config ( #1122 )
1 year ago
mingrammer
6502d0f4d6
bump: up to version 0.24.4
1 year ago
mingrammer
b0c9084abd
bump: up to version 0.24.3
1 year ago
dependabot[bot]
b40c704291
chore(deps-dev): bump pylint from 3.3.1 to 3.3.2
...
Bumps [pylint](https://github.com/pylint-dev/pylint ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/pylint-dev/pylint/releases )
- [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.1...v3.3.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
b1fa644d6b
chore(deps-dev): bump pytest from 8.3.3 to 8.3.4 ( #1077 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.3 to 8.3.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.3...8.3.4 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Phuoc Tran
fa48533af3
add pre-commit to verify commit before create PR ( #1066 )
2 years ago
MinJae Kwon (Miti)
11565902ed
env: update the required minimum Python version to 3.9 ( #1064 )
...
* env: update the required minimum Python version to 3.9
* fix: update poetry.lock
2 years ago
Tobias Bruckert
204495dc70
fix tests ( #1050 )
2 years ago
Tobias Bruckert
ae3ea7113d
Upgrade for 3.12/3.13 ( #972 )
2 years ago
mingrammer
1612def236
bump: up to version 0.24.0
2 years ago
MinJae Kwon
8c9a285208
bump: up to version 0.23.4
3 years ago
Dov Benyomin Sohacheski
44b3b73e28
Removed support for Python 3.6 ( #856 )
3 years ago
dependabot[bot]
d49e354bcb
chore(deps-dev): bump pytest from 7.2.0 to 7.3.0 ( #875 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.3.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
MinJae Kwon
a71e447dc0
bump: up to version 0.23.3
4 years ago
MinJae Kwon
43bf7b80a7
bump: up to version 0.23.2
4 years ago
dependabot[bot]
4e3ffd633e
chore(deps-dev): bump pytest from 7.0.1 to 7.2.0 ( #786 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.0.1 to 7.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.0.1...7.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
f34a472ec2
chore(deps): bump graphviz from 0.19.1 to 0.20.1 ( #783 )
...
Bumps [graphviz](https://github.com/xflr6/graphviz ) from 0.19.1 to 0.20.1.
- [Release notes](https://github.com/xflr6/graphviz/releases )
- [Changelog](https://github.com/xflr6/graphviz/blob/master/CHANGES.rst )
- [Commits](https://github.com/xflr6/graphviz/compare/0.19.1...0.20.1 )
---
updated-dependencies:
- dependency-name: graphviz
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
f5dfd4638c
chore(deps-dev): bump black from 22.10.0 to 22.12.0 ( #813 )
...
Bumps [black](https://github.com/psf/black ) from 22.10.0 to 22.12.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/22.10.0...22.12.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
MinJae Kwon
18a197636f
chore: move black to dev-deps section
4 years ago
MinJae Kwon
d04ae4d778
chore: update poetry deps
4 years ago
MinJae Kwon
e511451908
bump: up to version 0.23.1
4 years ago
dependabot[bot]
826086e053
chore(deps-dev): bump pytest from 6.2.1 to 7.0.1 ( #656 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.1 to 7.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.1...7.0.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
MinJae Kwon
834899659a
bump: up to version 0.22.0
4 years ago
mingrammer
eaf3e98304
bump: up to version 0.21.1
5 years ago
mingrammer
8814561b9c
bump: up to version 0.21.0
5 years ago
dependabot[bot]
896e21fec2
chore(deps): bump graphviz from 0.17 to 0.19.1 ( #635 )
...
Bumps [graphviz](https://github.com/xflr6/graphviz ) from 0.17 to 0.19.1.
- [Release notes](https://github.com/xflr6/graphviz/releases )
- [Changelog](https://github.com/xflr6/graphviz/blob/master/CHANGES.rst )
- [Commits](https://github.com/xflr6/graphviz/compare/0.17...0.19.1 )
---
updated-dependencies:
- dependency-name: graphviz
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
dependabot[bot]
08f94e950d
chore(deps): bump jinja2 from 2.11.3 to 3.0.1 ( #534 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 2.11.3 to 3.0.1.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/2.11.3...3.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
dependabot[bot]
a02e6247bc
chore(deps): bump graphviz from 0.16 to 0.17 ( #561 )
...
Bumps [graphviz](https://github.com/xflr6/graphviz ) from 0.16 to 0.17.
- [Release notes](https://github.com/xflr6/graphviz/releases )
- [Changelog](https://github.com/xflr6/graphviz/blob/master/CHANGES.txt )
- [Commits](https://github.com/xflr6/graphviz/compare/0.16...0.17 )
---
updated-dependencies:
- dependency-name: graphviz
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
mingrammer
36ce5d50b0
bump: up to version 0.20.0
5 years ago
dependabot[bot]
1144a367b7
chore(deps-dev): bump pylint from 2.4.4 to 2.7.0 ( #470 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.4.4 to 2.7.0.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.4.4...pylint-2.7.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 years ago
mingrammer
6d53c3b70f
bump: up to version 0.19.1
6 years ago
mingrammer
7b9b5c1990
bump: up to version 0.19.0
6 years ago
dependabot[bot]
d875b73e3e
chore(deps): bump graphviz from 0.15 to 0.16 ( #420 )
...
Bumps [graphviz](https://github.com/xflr6/graphviz ) from 0.15 to 0.16.
- [Release notes](https://github.com/xflr6/graphviz/releases )
- [Changelog](https://github.com/xflr6/graphviz/blob/master/CHANGES.txt )
- [Commits](https://github.com/xflr6/graphviz/compare/0.15...0.16 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 years ago
dependabot[bot]
62562ea5d0
chore(deps-dev): bump pytest from 3.10.1 to 6.2.1 ( #414 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 3.10.1 to 6.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/3.10.1...6.2.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 years ago
dependabot[bot]
89414b1726
chore(deps): bump graphviz from 0.13.2 to 0.15 ( #392 )
...
Bumps [graphviz](https://github.com/xflr6/graphviz ) from 0.13.2 to 0.15.
- [Release notes](https://github.com/xflr6/graphviz/releases )
- [Changelog](https://github.com/xflr6/graphviz/blob/master/CHANGES.txt )
- [Commits](https://github.com/xflr6/graphviz/compare/0.13.2...0.15 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 years ago
mingrammer
60cf7f02d2
bump: up to version 0.18.0
6 years ago
mingrammer
01332a459e
bump: up to version 0.17.0
6 years ago