landscape-tools 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. landscape_tools-0.0.2/.github/workflows/doc.yml +34 -0
  2. landscape_tools-0.0.2/.github/workflows/pypi.yml +28 -0
  3. landscape_tools-0.0.2/.gitignore +154 -0
  4. landscape_tools-0.0.2/.vscode/extensions.json +13 -0
  5. landscape_tools-0.0.2/.vscode/settings.json +30 -0
  6. landscape_tools-0.0.2/LICENSE +674 -0
  7. landscape_tools-0.0.2/PKG-INFO +22 -0
  8. landscape_tools-0.0.2/README.md +3 -0
  9. landscape_tools-0.0.2/docs/_static/custom.css +220 -0
  10. landscape_tools-0.0.2/docs/_static/custom.js +172 -0
  11. landscape_tools-0.0.2/docs/barren_plateaus.rst +4 -0
  12. landscape_tools-0.0.2/docs/changelog.rst +6 -0
  13. landscape_tools-0.0.2/docs/conf.py +109 -0
  14. landscape_tools-0.0.2/docs/exploratory_landscape_analysis.rst +4 -0
  15. landscape_tools-0.0.2/docs/index.rst +22 -0
  16. landscape_tools-0.0.2/docs/landscape_visualization.rst +4 -0
  17. landscape_tools-0.0.2/landscape_tools/__init__.py +3 -0
  18. landscape_tools-0.0.2/landscape_tools/_version.py +8 -0
  19. landscape_tools-0.0.2/landscape_tools/barren_plateaus.py +1213 -0
  20. landscape_tools-0.0.2/landscape_tools/exploratory_landscape_analysis.py +566 -0
  21. landscape_tools-0.0.2/landscape_tools/landscape_visualization.py +1861 -0
  22. landscape_tools-0.0.2/landscape_tools.egg-info/PKG-INFO +22 -0
  23. landscape_tools-0.0.2/landscape_tools.egg-info/SOURCES.txt +28 -0
  24. landscape_tools-0.0.2/landscape_tools.egg-info/dependency_links.txt +1 -0
  25. landscape_tools-0.0.2/landscape_tools.egg-info/requires.txt +7 -0
  26. landscape_tools-0.0.2/landscape_tools.egg-info/top_level.txt +1 -0
  27. landscape_tools-0.0.2/pyproject.toml +21 -0
  28. landscape_tools-0.0.2/requirements-dev.txt +6 -0
  29. landscape_tools-0.0.2/requirements.txt +7 -0
  30. landscape_tools-0.0.2/setup.cfg +4 -0
@@ -0,0 +1,34 @@
1
+ name: Documentation deployement
2
+
3
+ on:
4
+ pull_request_target:
5
+ types:
6
+ - closed
7
+ branches:
8
+ - main
9
+ release:
10
+ types: [published]
11
+ jobs:
12
+ build_publish_docs:
13
+ # Deploy to cloudflare
14
+ if: github.event_name == 'release' || github.event.pull_request.merged == true
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+ - name: Build Document
20
+ run: |
21
+ pip install -r requirements-dev.txt
22
+ sudo apt update
23
+ sudo apt install -y pandoc
24
+ touch .env
25
+ echo "SPHINX_GITHUB_CHANGELOG_TOKEN=${{secrets.DOC_GH_API_TOKEN}}" > .env
26
+ sphinx-build -b html docs build
27
+ - name: Publish
28
+ uses: cloudflare/pages-action@1
29
+ with:
30
+ apiToken: ${{ secrets.PRD_CLOUDFLARE_API_TOKEN }}
31
+ accountId: ${{ secrets.PRD_CLOUDFLARE_ACCOUNT_ID }}
32
+ projectName: mpqp
33
+ branch: main
34
+ directory: build
@@ -0,0 +1,28 @@
1
+ name: Pipy publishing
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ build_publish_package:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout Repository
13
+ uses: actions/checkout@v4
14
+ - name: Install Dependencies
15
+ run: |
16
+ pip install -r requirements-dev.txt
17
+ - name: Build Package
18
+ run: python setup.py sdist bdist_wheel
19
+ - name: Install Twine
20
+ run: |
21
+ pip install twine
22
+ pip install -U packaging
23
+ - name: Publish to PyPI
24
+ run: |
25
+ twine upload dist/*
26
+ env:
27
+ TWINE_USERNAME: __token__
28
+ TWINE_PASSWORD: ${{ secrets.PRD_QT_API_TOKEN }}
@@ -0,0 +1,154 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Translations
40
+ *.mo
41
+ *.pot
42
+
43
+ # Sphinx documentation
44
+ docs/_build/
45
+
46
+ # Jupyter Notebook
47
+ .ipynb_checkpoints
48
+
49
+ # IPython
50
+ profile_default/
51
+ ipython_config.py
52
+
53
+ # pyenv
54
+ # For a library or package, you might want to ignore these files since the code is
55
+ # intended to run in multiple environments; otherwise, check them in:
56
+ # .python-version
57
+
58
+ # pipenv
59
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
60
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
61
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
62
+ # install all needed dependencies.
63
+ # Pipfile.lock
64
+
65
+ # UV
66
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
67
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
68
+ # commonly ignored for libraries.
69
+ # uv.lock
70
+
71
+ # poetry
72
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
73
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
74
+ # commonly ignored for libraries.
75
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
76
+ # poetry.lock
77
+ # poetry.toml
78
+
79
+ # pdm
80
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
81
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
82
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
83
+ # pdm.lock
84
+ # pdm.toml
85
+ .pdm-python
86
+ .pdm-build/
87
+
88
+ # pixi
89
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
90
+ # pixi.lock
91
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
92
+ # in the .venv directory. It is recommended not to include this directory in version control.
93
+ .pixi
94
+
95
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
96
+ __pypackages__/
97
+
98
+ # Environments
99
+ .env
100
+ .envrc
101
+ .venv
102
+ env/
103
+ venv/
104
+ ENV/
105
+ env.bak/
106
+ venv.bak/
107
+
108
+ # Spyder project settings
109
+ .spyderproject
110
+ .spyproject
111
+
112
+ # mypy
113
+ .mypy_cache/
114
+ .dmypy.json
115
+ dmypy.json
116
+
117
+ # Pyre type checker
118
+ .pyre/
119
+
120
+ # pytype static type analyzer
121
+ .pytype/
122
+
123
+ # Cython debug symbols
124
+ cython_debug/
125
+
126
+ # PyCharm
127
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
128
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
129
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
130
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
131
+ # .idea/
132
+
133
+ # Abstra
134
+ # Abstra is an AI-powered process automation framework.
135
+ # Ignore directories containing user credentials, local state, and settings.
136
+ # Learn more at https://abstra.io/docs
137
+ .abstra/
138
+
139
+ # Visual Studio Code
140
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
141
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
142
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
143
+ # you could uncomment the following to ignore the entire vscode folder
144
+ # .vscode/
145
+
146
+ # PyPI configuration file
147
+ .pypirc
148
+
149
+ # Marimo
150
+ marimo/_static/
151
+ marimo/_lsp/
152
+ __marimo__/
153
+
154
+ ex/
@@ -0,0 +1,13 @@
1
+ {
2
+ "recommendations": [
3
+ "ms-python.isort",
4
+ "ms-python.black-formatter",
5
+ "ms-python.vscode-pylance",
6
+ "streetsidesoftware.code-spell-checker",
7
+ "ms-toolsai.jupyter",
8
+ "James-Yu.latex-workshop",
9
+ "tecosaur.latex-utilities",
10
+ "mathematic.vscode-latex",
11
+ "esbenp.prettier-vscode"
12
+ ]
13
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "[python]": {
3
+ "editor.defaultFormatter": "ms-python.black-formatter"
4
+ },
5
+ "python.analysis.typeCheckingMode": "strict",
6
+ "editor.formatOnSave": true,
7
+ "python.analysis.autoImportCompletions": true,
8
+ "python.analysis.autoFormatStrings": true,
9
+ "python.analysis.diagnosticSeverityOverrides": {
10
+ "reportUnknownArgumentType": "none",
11
+ "reportUnknownVariableType": "none",
12
+ "reportUnknownMemberType": "none",
13
+ "reportUnknownLambdaType": "none",
14
+ "reportMissingTypeStubs": "none",
15
+ "reportUnknownParameterType": "none",
16
+ "reportUnnecessaryTypeIgnoreComment": "warning"
17
+ // "enableTypeIgnoreComments": "false"
18
+ // "reportGeneralTypeIssues": "none"
19
+ },
20
+ "autoDocstring.docstringFormat": "google-notypes",
21
+ "isort.check": true,
22
+ "isort.args": ["--profile", "black"],
23
+ "editor.codeActionsOnSave": {
24
+ "source.organizeImports": "always"
25
+ },
26
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
27
+ "python-envs.defaultEnvManager": "ms-python.python:system",
28
+ "python-envs.defaultPackageManager": "ms-python.python:pip",
29
+ "python-envs.pythonProjects": []
30
+ }