Commit Graph

108 Commits

Author SHA1 Message Date
Matthias Koefferlein 9917978566 Merge branch 'master' into dev-polygon-graph 2025-05-28 19:01:42 +02:00
Matthias Koefferlein e232bf8127 Specify build system in pyproject.toml, using SPDX compliant license spec. 2025-05-10 19:59:19 +00:00
Matthias Koefferlein 16604e5a92 New module: 'pex' 2025-04-18 13:12:45 +02:00
Matthias Koefferlein c9da9dc6e0 Updating copyright to 2025 2025-01-04 19:28:56 +01:00
Matthias Koefferlein 2b4a583f05 Update copyright year 2024-01-01 17:27:59 +01:00
Matthias Koefferlein d1695b88af Merge branch 'wip' 2023-12-23 18:05:54 +01:00
Matthias Koefferlein 9d589b38f5 Different approach to exclude libgit2 for pymod 2023-11-01 23:41:28 +01:00
Matthias Koefferlein 2c37ecdf7c No libgit2 needed for Python module 2023-11-01 22:12:32 +01:00
Matthias Koefferlein e965f87f58 Merge branch 'master' into wip 2023-07-15 22:48:53 +02:00
Matthias Koefferlein 987bb005da Fixed issue #1393 (GDS2 text format not supported in python module) 2023-05-31 20:32:34 +02:00
Matthias Koefferlein b6fe8d2699 Fixed link errors for pyacore on Win 2023-03-12 10:21:44 +01:00
Matthias Koefferlein f5fd47bd4b Fixed standalone Python module builds 2023-03-12 00:53:42 +01:00
Matthias Koefferlein 6db6e77458 Tired of patching around __version__ ...
This doesn't work. Either Python is too old, import_metadata
isn't there or Azure pipelines do not support that.
Stopping that. Good old plain C++ is still the best solution.
Take that dynamic language hackers!
2023-03-01 00:50:30 +01:00
Matthias Koefferlein c5d6889721 Trying to fix Azure builds 2023-02-28 23:32:16 +01:00
Thomas Ferreira de Lima 67fb262df6 downgrading importlib_metadata to 4.8.3 (last version to support python 3.6 2023-02-17 09:32:53 -05:00
Thomas Ferreira de Lima 094768997f backporting importlib.metadata for python<3.8 2023-02-15 10:14:55 -05:00
Thomas Ferreira de Lima 81504ecd9b autodetecting libpng installation on macos 2023-02-11 17:55:01 -05:00
Sebastian Goeldi e759e631ff fix setup.py to include py.typed in wheel and other installations 2023-01-30 19:55:30 -08:00
Matthias Koefferlein a85dbd3d31 Updating copyright notice to 2023 2023-01-01 22:27:22 +01:00
Sebastian Goeldi d30199fe26 create py.typed for python module (PEP 561) 2022-12-12 17:09:50 +01:00
Matthias Koefferlein 327345f5ca Fixed Windows Python module builds 2022-11-11 22:07:07 +01:00
Matthias Koefferlein fbd4c84d84 Refactoring of pya/rba/expressions
Goal is to support "*!" which is a variant of multiplication
without the commutative nature.

The refactoring yields a more consistent handling of
Python specializations. Now this happens when the methods
are collected, rather than later. This way, specific behavior
for identically named synonyms can be implemented for example.
This is the case for the "*" operator in Trans which is partially
commutative and partially not.
2022-10-20 23:26:14 +02:00
Matthias Koefferlein c012bb846e Cherry-picked Python type hint enhancements from master 2022-10-19 22:13:03 +02:00
Thomas Ferreira de Lima 4d4f4b643b Added python stubs with type hinting and documentation. (#1125)
* Added python stubs with type hinting and documentation.

The documentation was extracted by inspecting the docstrings within each class and methods.
This should enable type hinting and checking by IDEs like VSCode.
The stubs were automatically generated, and have not been manually curated. (TODO)

* created tl ArgType to python type translator

* Fixing a pyaModule.cc bug

* almost finished stubgen

* fixing little bug in classes defined within classes

* Release version of the stubgen script. Good enough for release.

* Adding notes

* Including stubs when installing from source

* typechecking bugfix: missed checking is_iter()

* Cleaning up unused code for merge review

* Including stubs when installing from source (part deux)

* Putting the GenericDeviceExtractor name setting into the right place.

* Updating python stubs

Co-authored-by: Matthias Koefferlein <matthias@koefferlein.de>
2022-09-01 00:41:42 +02:00
Matthias Koefferlein ef8f4fbba5 Fixed setup.py after refactoring 2022-06-01 07:41:29 +02:00
Matthias Koefferlein 1f24458acd Fixed setup.py (from defines) 2022-05-16 23:08:02 +02:00
Matthias Koefferlein b352ec4933 Specific name for libpng in setup.py to match all platforms 2022-05-16 21:48:37 +02:00
Matthias Koefferlein b5c3d6981b Adjusted setup.py to klayout-microbits-4.0 2022-05-16 21:14:23 +02:00
Matthias Koefferlein 104975a14e WIP: fixed pymod 2022-05-15 19:34:46 +02:00
Matthias Koefferlein 856635bc82 WIP: debugging, enabled pymod builds ... 2022-05-15 18:45:07 +02:00
Matthias Koefferlein 5facc418cb WIP: futher improvements on Python module for Qt-less case 2022-05-12 23:42:21 +02:00
Matthias Koefferlein b2b5e5ad55 Modifications to enable building of Qt-less canvas in setup.py 2022-05-12 01:53:16 +02:00
Matthias Köfferlein 5929ea3bc6
Applied patch as discussed in #1040 (#1045)
* Applied patch as discussed in #1040

* Adding extra compilation flags to extensions #1040

tlcore, dbcore and libcore did not have compilation flags.
It failed compiling on Macos because it did not use C++11.

Co-authored-by: Thomas Ferreira de Lima <tlima@princeton.edu>
2022-04-02 16:07:25 +02:00
Matthias Koefferlein 4da7fd6323 Updated setup.py title for PyPI 2022-02-05 10:28:27 +01:00
Matthias Koefferlein 10456516db Updated copyright to 2022, preparations for 0.27.6 (was delayed due to code signing certificate issues) 2022-01-04 21:20:04 +01:00
Matthias Koefferlein ea1bf40a1e Using Jenkins for PyPI deployment. Travis stopped their generous open source support 2021-10-30 18:45:44 +02:00
Matthias Köfferlein b303548591
Issue 886 (python module does not build from sources) (#896)
* Added cc_gen to manifest file

* Added lib sources to manifest
2021-08-24 21:36:51 +02:00
Matthias Koefferlein caa601fe68 Provide version #defines for setup.py too 2021-02-01 22:57:55 +01:00
Matthias Koefferlein 7d4310d343 Updated copyright to 2021 2021-01-05 22:57:48 +01:00
Matthias Koefferlein 07d2eeaa3b Various updates for Python 3.9 and more MacOS support, inherited from 0.26. 2020-11-28 22:15:44 +01:00
Matthias Koefferlein 14e5603499 Another test - maybe a fix 2020-09-10 00:14:28 +02:00
Matthias Koefferlein b8c82c4f8b Updated copyright notice to 2020 2020-01-05 00:59:43 +01:00
Matthias Koefferlein 1c7d104e63 Removed data_files from setup.py - does not provide the files in the right path. 2019-11-12 02:28:58 +01:00
Matthias Koefferlein 74780e0197 Take out MSVCRT from setup.py because I don't know where to take it from on Azure hosts. 2019-11-12 01:44:19 +01:00
Matthias Koefferlein e81dde46fe Wrong name of zlib.dll (needs to be zlib1.dll). 2019-11-12 01:12:48 +01:00
Matthias Koefferlein 1f0067a2c7 Attempt to fix Windows build of Python module. 2019-11-12 01:10:50 +01:00
Matthias Koefferlein f13bb771cd Provide a separate version for PyPI inside version.sh 2019-11-12 00:04:40 +01:00
Matthias Koefferlein 803e7a385d Taking KLayout version from version.sh for Python module build. 2019-11-09 00:34:15 +01:00
Matthias Koefferlein 4462ef8db6 Updated release version in setup.py 2019-09-09 23:08:30 +02:00
Matthias Koefferlein 8bccdbf7a0 pypi release 0.26.0.dev16 2019-06-18 19:09:34 +02:00