Skip to content

Commit aaf1aa2

Browse files
committed
Merge branch 'developement'
2 parents cbbcdb9 + c0c5fb9 commit aaf1aa2

File tree

143 files changed

+1189
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1189
-603
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ quick_n_dirty.py
136136
*.CATPart
137137
*.CATProduct
138138

139-
pycatia.build
140-
pycatia.dist
139+
pycatia-exe.build
140+
pycatia-exe.dist
141141
zip_win32_dist.py
142142
win_32/pycatia
143-
pycatia.py
143+
pycatia-exe.py

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## 0.4.0
4+
Breaking changes.
5+
* The catia application object now needs to be initialized in your scripts.
6+
This was done so scripts can be written in such a way that they first launch
7+
CATIA V5 (or check it's actually running) before the application object is
8+
initialised. Previously, the object was initialised immediately on import. Not
9+
practical for some use cases.
10+
For example:
11+
```
12+
>>> from pycatia import catia
13+
>>> # initialise the catia application automation object.
14+
>>> caa = catia()
15+
>>> document = caa.active_document
16+
```
17+
* Removed pycatia.workbenches folder. Functionality is provided for Document object.
18+
* Lots of bug/type fixes. Mypy is great!
19+
20+
* Collection objects are now directly iterable (Product.get_products() will be
21+
deprecated in later release).
22+
```
23+
>>> from pycatia import catia
24+
>>> caa = catia()
25+
>>> document = caa.active_document
26+
>>> product = document.product()
27+
>>> products = product.products
28+
>>> for product in produts:
29+
>>> print(product)
30+
```
31+
32+
* Improved viewing experience of API. I hope.
33+
334
## 0.3.9
435
* Added product.generate_ALLCATPart.
536
* Added product.constraints.

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,13 @@ A reminder for @evereux. I don't do this often and forget ...
141141

142142
* Check version is correct.
143143

144+
* Run mypy over module.
145+
144146
* Build source. ``python setup.py sdist bdist_wheel``
145147
* Check source contents.
146148

147-
* Build pycatia exe ``python -m nuitka --standalone pycatia.py``.
149+
* Build pycatia exe ``python -m nuitka --standalone pycatia-exe.py``.
150+
* rename pycatia-exe.exe.
148151
* copy build to win_32 folder and zip.
149152

150153
* Merge changes with master branch and upload.

docs/_static/css/pycatia.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
body {
2+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
3+
}
4+
5+
div.admonition p.admonition-title {
6+
font-family: Georgia, serif;
7+
font-weight: normal;
8+
font-size: 18px;
9+
margin: 0 0 10px 0;
10+
padding: 0;
11+
line-height: 1;
12+
}

docs/api/index_scripts.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pycatia.scripts
66
:caption: Contents:
77

88

9+
pycatia/scripts/checking
910
pycatia/scripts/csv_tools

docs/api/index_workbenches.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _Checking:
2+
3+
pycatia.scripts.checking
4+
========================
5+
6+
.. automodule:: pycatia.scripts.checking
7+
:members:

docs/api/pycatia/workbenches/workbenches.rst

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

docs/api_index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ This creates an instance of the :ref:`Application<Application>` object.
3030
api/index_sketcher_interfaces
3131
api/index_space_analyses_interfaces
3232
api/index_system_interfaces
33-
api/index_workbenches

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __getattr__(cls, name):
3636
author = 'Paul Bourne'
3737

3838
# The short X.Y version
39-
version = '0.3.9'
39+
version = '0.4.0'
4040
# The full version, including alpha/beta/rc tags
4141
release = version
4242

@@ -107,6 +107,10 @@ def __getattr__(cls, name):
107107
html_static_path = ['_static']
108108
html_theme_path = []
109109

110+
html_css_files = [
111+
'css/pycatia.css',
112+
]
113+
110114
# Custom sidebar templates, must be a dictionary that maps document names
111115
# to template names.
112116
#

0 commit comments

Comments
 (0)