Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enabling structured package #278

Merged
merged 79 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
73034c1
feat: adding usefull methods in `ast_tree.py`
clatapie Jun 28, 2024
9fddabd
feat: using a ``config.yaml`` file
clatapie Jul 1, 2024
5e1f10d
fix: documentation and removing unused variables
clatapie Jul 2, 2024
6971901
fix: tests
clatapie Jul 2, 2024
651084e
feat: creating doc for a structured package
clatapie Jul 4, 2024
6c0e6fb
fix: ``write_source`` and ``write_docs`` functions
clatapie Jul 12, 2024
7bded89
fix: ``writer.py``
clatapie Jul 15, 2024
15bddac
refactor: restructuring `writer.py`
clatapie Jul 17, 2024
678595f
feat: implementing a new approach
clatapie Jul 19, 2024
6dd9220
fix: ``write_source`` for the new approach
clatapie Jul 22, 2024
acf39eb
fix: ``__init__.py`` files
clatapie Jul 22, 2024
e18ecff
Merge branch 'main' into feat/structured_package
clatapie Jul 22, 2024
c260c4b
fix: fixing tests
clatapie Jul 22, 2024
4c628d2
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Jul 22, 2024
1b8ca84
Merge branch 'main' into feat/structured_package
clatapie Jul 23, 2024
b160967
fix: unit tests
clatapie Jul 23, 2024
3d5547c
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Jul 23, 2024
931c022
fix: pre-commit hook
clatapie Jul 23, 2024
a9e0856
fix: adding ``regex`` as a dependency
clatapie Jul 23, 2024
d4abbaf
fix: resetting cache
clatapie Jul 23, 2024
d3fa88a
fix: import handler and unit tests
clatapie Jul 23, 2024
4e90e9b
fix: `doc build` and `build and unit tests`
clatapie Jul 24, 2024
09faaea
Merge branch 'main' into feat/structured_package
clatapie Jul 24, 2024
9a6d8f6
fix: doc
clatapie Jul 24, 2024
6061cfa
Apply suggestions from code review
clatapie Jul 24, 2024
43254f8
fix: some fixes
clatapie Jul 29, 2024
c16584f
fix: pre-commit
clatapie Jul 29, 2024
10090d2
fix: renaming ``prefix`` arg into ``indent``
clatapie Jul 29, 2024
dc26680
feat: using a ``regex_pattern`` file
clatapie Jul 29, 2024
bc95bd1
Update src/pyconverter/xml2py/writer.py
clatapie Jul 29, 2024
9a7ee6c
fix: simplifying code
clatapie Jul 29, 2024
a997434
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Jul 29, 2024
3426f5c
fix: reorganizing ``writer.py``
clatapie Jul 29, 2024
3171fa3
fix: pre-commit
clatapie Jul 29, 2024
f147d78
Update src/pyconverter/xml2py/writer.py
clatapie Jul 30, 2024
768ff72
Update src/pyconverter/xml2py/writer.py
clatapie Jul 30, 2024
39d62a4
fix: removing some ``try except``
clatapie Jul 30, 2024
36da59f
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Jul 30, 2024
b1637b5
Merge branch 'main' into feat/structured_package
clatapie Aug 1, 2024
ac23bb2
fix: adding ``__init__.py`` file in ``utils`` module
clatapie Aug 1, 2024
4f5f9e6
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Aug 1, 2024
ec924fd
fix: circular import
clatapie Aug 1, 2024
fdc43f1
fix: ``parse_yaml``
clatapie Aug 1, 2024
5bb8fd6
fix: adding an error if no ``config.yaml`` file
clatapie Aug 1, 2024
f3069c4
doc: fix docstring
clatapie Aug 1, 2024
6d3c23e
fix: removing useless outputs
clatapie Aug 2, 2024
f48a587
fix: ``pyyaml`` dependency
clatapie Aug 2, 2024
9326b2f
fix: copying hidden file in ``write_docs`` for < python 3.11
clatapie Aug 2, 2024
d56534b
Merge branch 'main' into feat/structured_package
clatapie Aug 2, 2024
1fe54bf
fix: figures
clatapie Aug 5, 2024
6f8e43b
Merge branch 'feat/structured_package' of https://github.com/ansys/py…
clatapie Aug 5, 2024
4bfd49f
fix: displayment of "*"
clatapie Aug 5, 2024
b2d3c42
fix: duplicated link names
clatapie Aug 5, 2024
9f65cce
fix: empty ``Parameters`` section
clatapie Aug 6, 2024
595daf0
fix: removing ``hidden`` parameter in module indexes
clatapie Aug 6, 2024
b4da1e0
fix: ``maxdepth`` parameters
clatapie Aug 6, 2024
443857c
fix: ``maxdepth`` parameter
clatapie Aug 6, 2024
bacfa9c
fix: ``maxdepth`` parameter bis
clatapie Aug 6, 2024
296b004
fix: ``index.rst`` for modules
clatapie Aug 7, 2024
d297353
review: applying @germa89 's comments
clatapie Aug 7, 2024
ada678f
fix: adding comments and ``check_files`` parameter
clatapie Aug 7, 2024
fa6ecc8
fix: simplifying ``write_source`` method
clatapie Aug 8, 2024
5845ed4
Merge branch 'main' into feat/structured_package
clatapie Aug 8, 2024
ab82575
Apply suggestions from code review
clatapie Aug 9, 2024
88c363f
Apply suggestions from code review
clatapie Aug 9, 2024
36d0ece
fix: message in the ValueError
clatapie Aug 9, 2024
4e2d15b
review: applying @PipKat's comments
clatapie Aug 9, 2024
1bcc0be
Merge branch 'main' into feat/structured_package
clatapie Aug 20, 2024
df01be0
Update src/pyconverter/xml2py/writer.py
clatapie Aug 22, 2024
b6065fb
fix: pre-commit
clatapie Aug 23, 2024
0799d62
Merge branch 'main' into feat/structured_package
clatapie Aug 23, 2024
5b874b3
Apply suggestions from code review
clatapie Aug 23, 2024
7e326a3
fix: removing all the extra spaces in docstrings
clatapie Aug 23, 2024
3398c2a
fix: using uppercase letters for ``regex_pattern.py``
clatapie Aug 23, 2024
e8db580
fix: using pathlib.Path instead of os - part 1/2
clatapie Aug 23, 2024
6b81970
fix: using pathlib.Path instead of os - part 2/2
clatapie Aug 26, 2024
fcab000
fix: ``writer.py`` and ``make_package_docs.ps1``
clatapie Aug 26, 2024
58b1659
fix: ``make_package_doc.ps1``
clatapie Aug 26, 2024
30ee4c6
feat: implementing type hint except in ``ast_tree.py``
clatapie Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
exclude = venv, __init__.py, doc/_build, .venv
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, E501, F401, F403
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E301, E303, E501, F401, F403
count = True
max-complexity = 10
max-line-length = 100
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/autodoc_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:


env:
RESET_PIP_CACHE_2: 0
RESET_AUTOSUMMARY_CACHE_2: 0
RESET_DOC_BUILD_CACHE_2: 0
RESET_PIP_CACHE_2: 1
RESET_AUTOSUMMARY_CACHE_2: 1
RESET_DOC_BUILD_CACHE_2: 1


jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ env:
PACKAGE_NAME: 'pyconverter-xml2py'
PACKAGE_NAMESPACE: 'pyconverter.xml2py'
DOCUMENTATION_CNAME: 'pyconverter-xml2py.docs.pyansys.com'
RESET_PIP_CACHE: 1
RESET_AUTOSUMMARY_CACHE: 1
RESET_DOC_BUILD_CACHE: 1
RESET_PIP_CACHE: 2
RESET_AUTOSUMMARY_CACHE: 2
RESET_DOC_BUILD_CACHE: 2
ON_CI: true

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ celerybeat.pid

# Environments
.env
.venv
.venv*
env/
venv/
ENV/
Expand Down
4 changes: 2 additions & 2 deletions _package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ doc = [
"numpydoc==1.8.0",
"pandas==2.2.2",
"parse==1.20.2",
"pydata_sphinx_theme==0.15.4",
"pypandoc==1.13",
"pytest-sphinx==0.6.3",
"pydata_sphinx_theme==0.15.4",
"pyyaml==6.0.1",
"sphinx-autobuild==2024.4.16",
"sphinx-autodoc-typehints==2.2.3",
"sphinx-copybutton==0.5.2",
"sphinx-notfound-page==1.0.4",
"sphinx-gallery==0.17.0",
]

[tool.flit.module]
name = "pyconverter.generatedcommands"

Expand Down
16 changes: 16 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
library_name_structured: # Future name of the library
- pyconverter
- generatedcommands

new_package_name: package

rules:
"/": slash
"*": star

specific_command_mapping:
"*DEL": stardel
"C***": c

specific_classes:
2D to 3D Analysis: Analysis 2D to 3D
9 changes: 9 additions & 0 deletions make_package_doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/sh

deactivate
cd .\package\
python -m venv .venv
.\.venv\Scripts\activate
pip install -e .[doc]
.\doc\make.bat html
.\doc\_build\html\index.html
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ dependencies = [
"numpy>=1.14.0; python_version>='3.9'",
"py-asciimath==0.3.0",
"pylatexenc==2.10",
"pyyaml>=5.1.0",
"tqdm>=4.64.1",
"regex>=2021.4.4",
]

[project.optional-dependencies]
Expand All @@ -47,6 +49,8 @@ tests = [
"pytest==8.3.2",
"pytest-cov==5.0.0",
"pytest-rerunfailures==14.0",
"pyyaml==6.0.1",
"regex==2024.5.15",
]
doc = [
"Sphinx==8.0.2",
Expand All @@ -60,6 +64,7 @@ doc = [
"parse==1.20.2",
"pypandoc==1.13",
"pytest-sphinx==0.6.3",
"regex==2024.5.15",
"sphinx-autobuild==2024.4.16",
"sphinx-autodoc-typehints==2.2.2",
"sphinx-copybutton==0.5.2",
Expand Down
Loading
Loading