Skip to content

Commit 7848ff8

Browse files
committed
prepare release 7.4.0
1 parent 0418bab commit 7848ff8

File tree

6 files changed

+55
-73
lines changed

6 files changed

+55
-73
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(PYTHONOCC_VERSION_MAJOR 7)
2323
set(PYTHONOCC_VERSION_MINOR 4)
2424
set(PYTHONOCC_VERSION_PATCH 0)
2525
# Empty for official releases, set to -dev, -rc1, etc for development releases
26-
set(PYTHONOCC_VERSION_DEVEL -rc1)
26+
set(PYTHONOCC_VERSION_DEVEL)
2727

2828
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
2929

INSTALL.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ If you have many cpus, you can increase the compilation speed with:
5555

5656
make -j$ncpus
5757

58-
According to your machine/os/ncpus, the total compilation time shold be
59-
between 5 to 15 minutes.
58+
According to your machine/os/ncpus, the total compilation time should be around 15 minutes.
6059

6160
Then
6261

NEWS

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
==========================
2+
Version 7.4.0 - February2020
3+
4+
This release requires opencascade 7.4.0
5+
6+
* jupyter : improved webgl display, added utility fonctions (abb, oobb, mass computation etc.), fixed edges display wrong line type (dash)
7+
8+
* display : added PySide2 to the backend list
9+
10+
* DataExchange : fixes step loader when more than one root
11+
12+
* DataExchange : added SVG exporter (possibility to render svg in jupyter)
13+
14+
* wrapper : fixed for Standard_Integer parameters returned by reference
15+
16+
* wrapper : improved wrapper for NCollection_DataMap
17+
18+
* wrapper : removed unnecessary %nodefaultctor swig directive, that prevent using default constructor for many classes
19+
20+
* demos : many fixes, improvements, and new examples
21+
22+
* lgtm and codacy quality fixes
23+
124
==========================
225
Version 7.4.0rc1 - December 2019
326

@@ -15,7 +38,6 @@ This release requires opencascade 7.4.0
1538

1639
* minor lgtm fixes
1740

18-
1941
==========================
2042
Version 7.4.0beta2 - December 2019
2143

README.md

+27-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Downloads Badge](https://anaconda.org/pythonocc/pythonocc-core/badges/downloads.svg)](https://anaconda.org/pythonocc/pythonocc-core)
44
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/tpaviot/pythonocc-core.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tpaviot/pythonocc-core/context:python)
55
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/67c121324b8d4f37bc27029464c87020)](https://www.codacy.com/app/tpaviot/pythonocc-core?utm_source=github.com&utm_medium=referral&utm_content=tpaviot/pythonocc-core&utm_campaign=Badge_Grade)
6-
[![Join the chat at https://gitter.im/tpaviot/pythonocc-core](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tpaviot/pythonocc-core?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6+
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/master)
77

88
pythonocc-core
99
--------------
@@ -12,30 +12,48 @@ About
1212
-----
1313

1414
pythonocc is a python package whose purpose is to provide 3D modeling
15-
features. It is intended to developers who aim at developing
16-
CAD/PDM/PLM applications.
15+
features. It is intended to CAD/PDM/PLM and BIM related development.
1716

18-
Latest release : [pythonocc-core 7.4.0rc1 (december 2019)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.4.0rc1)
17+
Latest release : [pythonocc-core 7.4.0 (february 2020)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.4.0)
1918

20-
Build from source
21-
-----------------
19+
Features
20+
--------
21+
pythonocc provides the following features:
2222

23-
Read the [INSTALL.md](https://github.com/tpaviot/pythonocc-core/blob/master/INSTALL.md) instructions where you find compilation instructions for all platforms.
23+
* a full access from Python to almost all af the thousand OpenCascade C++ classes. Classes and methods/functions share the same names, and, as possible as it can be, the same signature
24+
25+
* 3D visualization from the most famous Python Gui (pyQt, PySide1 and 2, wxPython)
26+
27+
* 3D visualization in a web browser using WebGl and/or x3dom renderers
28+
29+
* 3D visualization and work within a jupyter notebook
30+
31+
* Various utility Python classes/methods for DataExchange, Topology operations, intertia computations etc.
32+
33+
Try online at mybinder
34+
----------------------
35+
36+
Click [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/master) to open a jupyter notebook running pythonocc-core 7.4.0, gmesh 4.5.2 (<http://gmsh.info/>) and latest IfcOpenshell (<https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0>) dev branch.
2437

2538
Download/install binaries for Linux/OSX/Windows
2639
-----------------------------------------------
2740

28-
pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the dlr-sc and conda-forge conda channels) for python 3.5, 3.6 and 3.7. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.7:
41+
pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the dlr-sc and conda-forge conda channels) for python 3.6 and 3.7. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.7:
2942

3043
```bash
3144
# first create an environment
3245
conda create --name=whatever-name python=3.7
3346
source activate whatever-name
34-
conda install -c dlr-sc -c pythonocc pythonocc-core=7.4.0rc1
47+
conda install -c dlr-sc -c pythonocc pythonocc-core=7.4.0
3548
```
3649

3750
Conda packages are provided for python 3.6 and 3.7.
3851

52+
Build from source by yourself
53+
-----------------------------
54+
55+
Read the [INSTALL.md](https://github.com/tpaviot/pythonocc-core/blob/master/INSTALL.md) instructions where you find compilation instructions for all platforms.
56+
3957
Other pythonocc related resources
4058
---------------------------------
4159

ci/conda/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "7.4.0dev" %}
1+
{% set version = "7.4.0" %}
22

33
package:
44
name: pythonocc-core

cmake/__init__.py

+2-59
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,9 @@
1-
import unittest
2-
31
PYTHONOCC_VERSION_MAJOR = 7
42
PYTHONOCC_VERSION_MINOR = 4
53
PYTHONOCC_VERSION_PATCH = 0
4+
65
# Empty for official releases, set to -dev, -rc1, etc for development releases
7-
PYTHONOCC_VERSION_DEVEL = '-rc1'
6+
PYTHONOCC_VERSION_DEVEL = ''
87

98
VERSION = "%s.%s.%s%s" % (PYTHONOCC_VERSION_MAJOR, PYTHONOCC_VERSION_MINOR,
109
PYTHONOCC_VERSION_PATCH, PYTHONOCC_VERSION_DEVEL)
11-
12-
13-
class pythonoccVersionNumberError(Exception):
14-
pass
15-
16-
17-
def require_pythonocc_version(required_version):
18-
""" Check if the required pythonocc version is available.
19-
required_version : a string containing three values separated by a dot
20-
(eg '0.1.7.1', '0.19.4-rc1')
21-
returns True if required match vurrent version, or raise en error
22-
"""
23-
spl = required_version.split('.')
24-
if len(spl) == 3:
25-
major, minor, patch_dev = spl
26-
if '-' in patch_dev:
27-
patch = patch_dev.split('-')[0]
28-
else:
29-
patch = patch_dev
30-
elif len(spl) == 2:
31-
major, minor = spl
32-
patch = 0
33-
34-
if ((int(major) > PYTHONOCC_VERSION_MAJOR) or
35-
(int(major) == PYTHONOCC_VERSION_MAJOR and int(minor) > PYTHONOCC_VERSION_MINOR) or
36-
(int(major) == PYTHONOCC_VERSION_MAJOR and int(minor) == PYTHONOCC_VERSION_MINOR and
37-
int(patch) >= PYTHONOCC_VERSION_PATCH)):
38-
return True
39-
else:
40-
raise pythonoccVersionNumberError("Require pythonocc-%s but current is pythonocc-%s" % (required_version, VERSION))
41-
42-
def test_require_pythonocc_version():
43-
# this one should raise an assertion error
44-
try:
45-
require_pythonocc_version('0.17.1')
46-
except pythonoccVersionNumberError:
47-
print("Exception correctly raised for 0.17.1 check")
48-
try:
49-
require_pythonocc_version('0.18')
50-
except pythonoccVersionNumberError:
51-
print("Exception correctly raised for 0.18 check")
52-
try:
53-
require_pythonocc_version('0.18.1')
54-
except pythonoccVersionNumberError:
55-
print("Exception correctly raised for 0.18.1 check")
56-
# the following should be ok
57-
require_pythonocc_version('0.18.2-dev')
58-
require_pythonocc_version('0.18.2')
59-
require_pythonocc_version('0.18.3-rc2')
60-
require_pythonocc_version('0.19')
61-
require_pythonocc_version('0.19.1')
62-
require_pythonocc_version('1.0')
63-
64-
65-
if __name__ == "__main__":
66-
test_require_pythonocc_version()

0 commit comments

Comments
 (0)