Skip to content

Commit

Permalink
Release/0.9.0 (#239)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
janbridley authored Sep 16, 2024
1 parent 08b6242 commit f868ed8
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: check-yaml
- id: requirements-txt-fixer
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.3.2
rev: v0.4.0
hooks:
- id: fix-license-header
name: Fix License Headers (Python)
Expand All @@ -35,7 +35,7 @@ repos:
- --add=This file is from the coxeter project, released under the BSD 3-Clause License.
- --keep-before=#!
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.5
hooks:
# Run the linter.
- id: ruff
Expand Down
9 changes: 7 additions & 2 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
The format is based on `Keep a Changelog <http://keepachangelog.com/en/1.0.0/>`__.
This project adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`__.


v0.x.x - 20xx-xx-xx
-------------------

v0.9.0 - 2024-09-13
-------------------

Breaking
~~~~~

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

Added
~~~~~

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

Changed
~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion coxeter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
applications such as inertia tensors.
"""

__version__ = "0.8.0"
__version__ = "0.9.0"

from . import families, io, shapes
from .shape_getters import from_gsd_type_shapes
Expand Down
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
author = "Vyas Ramasubramani"

# The full version, including alpha/beta/rc tags
version = "0.8.0"
release = "0.8.0"
version = "0.9.0"
release = "0.9.0"


# -- General configuration ---------------------------------------------------
Expand Down
24 changes: 20 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "coxeter"
version = "0.8.0"
version = "0.9.0"
requires-python = ">=3.8"
description = "Tools for creating and manipulating shapes."
readme = "README.rst"
Expand Down Expand Up @@ -73,14 +73,14 @@ ignore =[
"D107", # __init__ methods don't require documentation.
]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

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

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"coxeter/__init__.py" = ["F401"]
"tests/*" = ["D", "B018"]
"setup.py" = ["D"]
Expand All @@ -90,3 +90,19 @@ known-first-party = ["conftest", "coxeter", "utils"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"

[tool.bumpversion]
# Configuration for https://github.com/callowayproject/bump-my-version
tag = false
commit = false
message = "Bump version: {current_version} → {new_version}"

[[tool.bumpversion.files]]
filename="pyproject.toml"
[[tool.bumpversion.files]]
filename="doc/source/conf.py"
[[tool.bumpversion.files]]
filename="coxeter/__init__.py"

# [tool.distutils.bdist_wheel]
# python-tag = "py3"
14 changes: 0 additions & 14 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion tests/control/convex_polyhedron.obj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wavefront obj file written by Coxeter version 0.8.0
# wavefront obj file written by Coxeter version 0.9.0
# ConvexPolyhedron

v 0.0 0.0 1.2065695672061325
Expand Down
2 changes: 1 addition & 1 deletion tests/control/convex_polyhedron.off
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OFF
# OFF file written by Coxeter version 0.8.0
# OFF file written by Coxeter version 0.9.0
# ConvexPolyhedron
11 f11 20
0.0 0.0 1.2065695672061325
Expand Down
2 changes: 1 addition & 1 deletion tests/control/convex_polyhedron.ply
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ply
format ascii 1.0
comment PLY file written by Coxeter version 0.8.0
comment PLY file written by Coxeter version 0.9.0
comment ConvexPolyhedron
element vertex 11
property float x
Expand Down
2 changes: 1 addition & 1 deletion tests/control/convex_polyhedron.vtk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vtk DataFile Version 3.0
ConvexPolyhedron created by Coxeter version 0.8.0
ConvexPolyhedron created by Coxeter version 0.9.0
ASCII
DATASET POLYDATA
POINTS 11 float
Expand Down
2 changes: 1 addition & 1 deletion tests/control/polyhedron.obj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wavefront obj file written by Coxeter version 0.8.0
# wavefront obj file written by Coxeter version 0.9.0
# Polyhedron

v 0.0 0.0 1.2065695672061325
Expand Down
2 changes: 1 addition & 1 deletion tests/control/polyhedron.off
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OFF
# OFF file written by Coxeter version 0.8.0
# OFF file written by Coxeter version 0.9.0
# Polyhedron
11 f11 20
0.0 0.0 1.2065695672061325
Expand Down
2 changes: 1 addition & 1 deletion tests/control/polyhedron.ply
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ply
format ascii 1.0
comment PLY file written by Coxeter version 0.8.0
comment PLY file written by Coxeter version 0.9.0
comment Polyhedron
element vertex 11
property float x
Expand Down
2 changes: 1 addition & 1 deletion tests/control/polyhedron.vtk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vtk DataFile Version 3.0
Polyhedron created by Coxeter version 0.8.0
Polyhedron created by Coxeter version 0.9.0
ASCII
DATASET POLYDATA
POINTS 11 float
Expand Down

0 comments on commit f868ed8

Please sign in to comment.