Skip to content

Commit f868ed8

Browse files
authored
Release/0.9.0 (#239)
* Update to use bump-my-version * Fix bumpversion config * Update bumpversion config * Remove prior bumpversion cfg * Bump version * Update ChangeLog.rst * pre-commit autoupdate * Fix ruff config in pyproject.toml * Remove setup.cfg * Update version for test_io files
1 parent 08b6242 commit f868ed8

14 files changed

+40
-33
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: check-yaml
2323
- id: requirements-txt-fixer
2424
- repo: https://github.com/glotzerlab/fix-license-header
25-
rev: v0.3.2
25+
rev: v0.4.0
2626
hooks:
2727
- id: fix-license-header
2828
name: Fix License Headers (Python)
@@ -35,7 +35,7 @@ repos:
3535
- --add=This file is from the coxeter project, released under the BSD 3-Clause License.
3636
- --keep-before=#!
3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.5.0
38+
rev: v0.6.5
3939
hooks:
4040
# Run the linter.
4141
- id: ruff

ChangeLog.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
The format is based on `Keep a Changelog <http://keepachangelog.com/en/1.0.0/>`__.
22
This project adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`__.
33

4+
45
v0.x.x - 20xx-xx-xx
56
-------------------
67

8+
v0.9.0 - 2024-09-13
9+
-------------------
10+
711
Breaking
812
~~~~~
913

10-
- [breaking] The hidden ``TabulatedShapeFamily`` class has been removed, with functionality moved to ``TabulatedGSDShapeFamily``.
14+
- The private ``TabulatedShapeFamily`` class has been removed, with functionality moved to ``TabulatedGSDShapeFamily``.
1115

1216
Added
1317
~~~~~
1418

1519
- ``TabulatedGSDShapeFamilies`` are now iterable, allowing easier access to shapes.
1620
- New ``UniformPrismFamily``, ``UniformAntiprismFamily``, ``UniformPyramidFamily``, and ``UniformDipyramidFamily``
17-
- New documentation to assist users initialize common geometries.
21+
- New documentation to help users initialize common geometries.
22+
- New methods to export Polyhedra as OBJ, OFF, STL, PLY, VTK, X3D, and HTML files.
1823

1924
Changed
2025
~~~~~~~

coxeter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
applications such as inertia tensors.
1717
"""
1818

19-
__version__ = "0.8.0"
19+
__version__ = "0.9.0"
2020

2121
from . import families, io, shapes
2222
from .shape_getters import from_gsd_type_shapes

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
author = "Vyas Ramasubramani"
2323

2424
# The full version, including alpha/beta/rc tags
25-
version = "0.8.0"
26-
release = "0.8.0"
25+
version = "0.9.0"
26+
release = "0.9.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "coxeter"
7-
version = "0.8.0"
7+
version = "0.9.0"
88
requires-python = ">=3.8"
99
description = "Tools for creating and manipulating shapes."
1010
readme = "README.rst"
@@ -73,14 +73,14 @@ ignore =[
7373
"D107", # __init__ methods don't require documentation.
7474
]
7575

76-
[tool.ruff.pydocstyle]
76+
[tool.ruff.lint.pydocstyle]
7777
convention = "numpy"
7878

79-
[tool.ruff.isort]
79+
[tool.ruff.lint.isort]
8080
known-third-party = ["hypothesis", "pytest"]
8181
known-first-party = ["conftest", "coxeter", "utils"]
8282

83-
[tool.ruff.per-file-ignores]
83+
[tool.ruff.lint.per-file-ignores]
8484
"coxeter/__init__.py" = ["F401"]
8585
"tests/*" = ["D", "B018"]
8686
"setup.py" = ["D"]
@@ -90,3 +90,19 @@ known-first-party = ["conftest", "coxeter", "utils"]
9090
[tool.ruff.format]
9191
quote-style = "double"
9292
indent-style = "space"
93+
94+
[tool.bumpversion]
95+
# Configuration for https://github.com/callowayproject/bump-my-version
96+
tag = false
97+
commit = false
98+
message = "Bump version: {current_version} → {new_version}"
99+
100+
[[tool.bumpversion.files]]
101+
filename="pyproject.toml"
102+
[[tool.bumpversion.files]]
103+
filename="doc/source/conf.py"
104+
[[tool.bumpversion.files]]
105+
filename="coxeter/__init__.py"
106+
107+
# [tool.distutils.bdist_wheel]
108+
# python-tag = "py3"

setup.cfg

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/control/convex_polyhedron.obj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# wavefront obj file written by Coxeter version 0.8.0
1+
# wavefront obj file written by Coxeter version 0.9.0
22
# ConvexPolyhedron
33

44
v 0.0 0.0 1.2065695672061325

tests/control/convex_polyhedron.off

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
OFF
2-
# OFF file written by Coxeter version 0.8.0
2+
# OFF file written by Coxeter version 0.9.0
33
# ConvexPolyhedron
44
11 f11 20
55
0.0 0.0 1.2065695672061325

tests/control/convex_polyhedron.ply

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ply
22
format ascii 1.0
3-
comment PLY file written by Coxeter version 0.8.0
3+
comment PLY file written by Coxeter version 0.9.0
44
comment ConvexPolyhedron
55
element vertex 11
66
property float x

tests/control/convex_polyhedron.vtk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vtk DataFile Version 3.0
2-
ConvexPolyhedron created by Coxeter version 0.8.0
2+
ConvexPolyhedron created by Coxeter version 0.9.0
33
ASCII
44
DATASET POLYDATA
55
POINTS 11 float

tests/control/polyhedron.obj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# wavefront obj file written by Coxeter version 0.8.0
1+
# wavefront obj file written by Coxeter version 0.9.0
22
# Polyhedron
33

44
v 0.0 0.0 1.2065695672061325

tests/control/polyhedron.off

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
OFF
2-
# OFF file written by Coxeter version 0.8.0
2+
# OFF file written by Coxeter version 0.9.0
33
# Polyhedron
44
11 f11 20
55
0.0 0.0 1.2065695672061325

tests/control/polyhedron.ply

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ply
22
format ascii 1.0
3-
comment PLY file written by Coxeter version 0.8.0
3+
comment PLY file written by Coxeter version 0.9.0
44
comment Polyhedron
55
element vertex 11
66
property float x

tests/control/polyhedron.vtk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vtk DataFile Version 3.0
2-
Polyhedron created by Coxeter version 0.8.0
2+
Polyhedron created by Coxeter version 0.9.0
33
ASCII
44
DATASET POLYDATA
55
POINTS 11 float

0 commit comments

Comments
 (0)