Skip to content

Commit 455d238

Browse files
authored
Merge pull request #74 from nschloe/import-fix
Import fix
2 parents 20c61f5 + 8e2c8a5 commit 455d238

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,4 +404,4 @@ pytest
404404

405405
### License
406406

407-
pygalmesh is published under the [GPLv3+ license](https://www.gnu.org/licenses/gpl-3.0.en.html).
407+
pygalmesh is published under the [GPLv3 license](https://www.gnu.org/licenses/gpl-3.0.en.html).

pygalmesh/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
import importlib_metadata as metadata
66

77
try:
8-
__version__ = metadata.version("optimesh")
8+
__version__ = metadata.version("pygalmesh")
99
except Exception:
1010
__version__ = "unknown"

pygalmesh/_cli/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from _pygalmesh import _get_cgal_version
44

5-
from ..__about__ import __copyright__, __version__
5+
from ..__about__ import __version__
66

77

88
def _get_version_text():
@@ -15,6 +15,6 @@ def _get_version_text():
1515
sys.version_info.micro,
1616
_get_cgal_version(),
1717
),
18-
__copyright__,
18+
"Copyright (c) 2016-2020, Nico Schlömer <nico.schloemer@gmail.com>",
1919
]
2020
)

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[metadata]
22
name = pygalmesh
3-
version = 0.6.1
3+
version = 0.6.2
44
url = https://github.com/nschloe/pygalmesh
55
author = Nico Schlömer
66
email = nico.schloemer@gmail.com
77
description = Python frontend to CGAL's 3D mesh generation capabilities
88
long_description = file: README.md
99
long_description_content_type = text/markdown
10-
license = GPLv3+
10+
license = GPLv3
1111
classifiers =
1212
Development Status :: 4 - Beta
1313
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)

src/generate_from_off.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ void generate_from_off(const std::string& infile, const std::string& outfile,
4141
std::ifstream input(infile);
4242
input >> polyhedron;
4343
if (!input.good()) {
44+
// Even if the mesh exists, it may not be valid, see
45+
// <https://github.com/CGAL/cgal/issues/4632>
4446
std::stringstream msg;
45-
msg << "Cannot read input file \"" << infile << "\"" << std::endl;
47+
msg << "Invalid input file \"" << infile << "\"" << std::endl;
4648
throw std::runtime_error(msg.str());
4749
}
4850
input.close();

0 commit comments

Comments
 (0)