quads-lib 0.0.0__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 (41) hide show
  1. quads_lib-0.0.0/.bumpversion.cfg +28 -0
  2. quads_lib-0.0.0/.coveragerc +16 -0
  3. quads_lib-0.0.0/.editorconfig +20 -0
  4. quads_lib-0.0.0/.github/workflows/github-actions.yml +99 -0
  5. quads_lib-0.0.0/.pre-commit-config.yaml +19 -0
  6. quads_lib-0.0.0/.readthedocs.yml +14 -0
  7. quads_lib-0.0.0/AUTHORS.rst +5 -0
  8. quads_lib-0.0.0/CHANGELOG.rst +8 -0
  9. quads_lib-0.0.0/CONTRIBUTING.rst +85 -0
  10. quads_lib-0.0.0/LICENSE +860 -0
  11. quads_lib-0.0.0/MANIFEST.in +22 -0
  12. quads_lib-0.0.0/PKG-INFO +93 -0
  13. quads_lib-0.0.0/README.rst +83 -0
  14. quads_lib-0.0.0/ci/bootstrap.py +83 -0
  15. quads_lib-0.0.0/ci/requirements.txt +5 -0
  16. quads_lib-0.0.0/ci/templates/.github/workflows/github-actions.yml +73 -0
  17. quads_lib-0.0.0/docs/authors.rst +1 -0
  18. quads_lib-0.0.0/docs/changelog.rst +1 -0
  19. quads_lib-0.0.0/docs/conf.py +39 -0
  20. quads_lib-0.0.0/docs/contributing.rst +1 -0
  21. quads_lib-0.0.0/docs/index.rst +21 -0
  22. quads_lib-0.0.0/docs/installation.rst +7 -0
  23. quads_lib-0.0.0/docs/readme.rst +1 -0
  24. quads_lib-0.0.0/docs/reference/index.rst +7 -0
  25. quads_lib-0.0.0/docs/reference/quads_lib.rst +11 -0
  26. quads_lib-0.0.0/docs/requirements.txt +2 -0
  27. quads_lib-0.0.0/docs/spelling_wordlist.txt +11 -0
  28. quads_lib-0.0.0/docs/usage.rst +11 -0
  29. quads_lib-0.0.0/pyproject.toml +54 -0
  30. quads_lib-0.0.0/pytest.ini +30 -0
  31. quads_lib-0.0.0/setup.cfg +4 -0
  32. quads_lib-0.0.0/setup.py +67 -0
  33. quads_lib-0.0.0/src/quads_lib/__init__.py +7 -0
  34. quads_lib-0.0.0/src/quads_lib/quads.py +308 -0
  35. quads_lib-0.0.0/src/quads_lib.egg-info/PKG-INFO +93 -0
  36. quads_lib-0.0.0/src/quads_lib.egg-info/SOURCES.txt +39 -0
  37. quads_lib-0.0.0/src/quads_lib.egg-info/dependency_links.txt +1 -0
  38. quads_lib-0.0.0/src/quads_lib.egg-info/not-zip-safe +1 -0
  39. quads_lib-0.0.0/src/quads_lib.egg-info/top_level.txt +1 -0
  40. quads_lib-0.0.0/tests/test_quads.py +1598 -0
  41. quads_lib-0.0.0/tox.ini +80 -0
@@ -0,0 +1,28 @@
1
+ [bumpversion]
2
+ current_version = 0.0.0
3
+ commit = True
4
+ tag = True
5
+
6
+ [bumpversion:file:setup.py]
7
+ search = version="{current_version}"
8
+ replace = version="{new_version}"
9
+
10
+ [bumpversion:file (badge):README.rst]
11
+ search = /v{current_version}.svg
12
+ replace = /v{new_version}.svg
13
+
14
+ [bumpversion:file (link):README.rst]
15
+ search = /v{current_version}...main
16
+ replace = /v{new_version}...main
17
+
18
+ [bumpversion:file:docs/conf.py]
19
+ search = version = release = "{current_version}"
20
+ replace = version = release = "{new_version}"
21
+
22
+ [bumpversion:file:src/quads_lib/__init__.py]
23
+ search = __version__ = "{current_version}"
24
+ replace = __version__ = "{new_version}"
25
+
26
+ [bumpversion:file:.cookiecutterrc]
27
+ search = version: {current_version}
28
+ replace = version: {new_version}
@@ -0,0 +1,16 @@
1
+ [paths]
2
+ source =
3
+ src
4
+ */site-packages
5
+
6
+ [run]
7
+ branch = true
8
+ source =
9
+ quads_lib
10
+ tests
11
+ parallel = true
12
+
13
+ [report]
14
+ show_missing = true
15
+ precision = 2
16
+ omit = *migrations*
@@ -0,0 +1,20 @@
1
+ # see https://editorconfig.org/
2
+ root = true
3
+
4
+ [*]
5
+ # Use Unix-style newlines for most files (except Windows files, see below).
6
+ end_of_line = lf
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ insert_final_newline = true
10
+ indent_size = 4
11
+ charset = utf-8
12
+
13
+ [*.{bat,cmd,ps1}]
14
+ end_of_line = crlf
15
+
16
+ [*.{yml,yaml}]
17
+ indent_size = 2
18
+
19
+ [*.tsv]
20
+ indent_style = tab
@@ -0,0 +1,99 @@
1
+ name: build
2
+ on: [push, pull_request, workflow_dispatch]
3
+ jobs:
4
+ test:
5
+ name: ${{ matrix.name }}
6
+ runs-on: ${{ matrix.os }}
7
+ timeout-minutes: 30
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ include:
12
+ - name: 'check'
13
+ python: '3.11'
14
+ toxpython: 'python3.11'
15
+ tox_env: 'check'
16
+ os: 'ubuntu-latest'
17
+ - name: 'docs'
18
+ python: '3.11'
19
+ toxpython: 'python3.11'
20
+ tox_env: 'docs'
21
+ os: 'ubuntu-latest'
22
+ - name: 'py310'
23
+ python: '3.10'
24
+ toxpython: 'python3.10'
25
+ python_arch: 'x64'
26
+ tox_env: 'py310'
27
+ os: 'ubuntu-latest'
28
+ - name: 'py311'
29
+ python: '3.11'
30
+ toxpython: 'python3.11'
31
+ python_arch: 'x64'
32
+ tox_env: 'py311'
33
+ os: 'ubuntu-latest'
34
+ - name: 'py312'
35
+ python: '3.12'
36
+ toxpython: 'python3.12'
37
+ python_arch: 'x64'
38
+ tox_env: 'py312'
39
+ os: 'ubuntu-latest'
40
+ - name: 'pypy310'
41
+ python: 'pypy-3.10'
42
+ toxpython: 'pypy3.10'
43
+ python_arch: 'x64'
44
+ tox_env: 'pypy310'
45
+ os: 'ubuntu-latest'
46
+ steps:
47
+ - uses: actions/checkout@v4
48
+ with:
49
+ fetch-depth: 0
50
+ - uses: actions/setup-python@v5
51
+ with:
52
+ python-version: ${{ matrix.python }}
53
+ architecture: ${{ matrix.python_arch }}
54
+ - name: install dependencies
55
+ run: |
56
+ python -mpip install --progress-bar=off -r ci/requirements.txt
57
+ virtualenv --version
58
+ pip --version
59
+ tox --version
60
+ pip list --format=freeze
61
+ - name: test
62
+ env:
63
+ TOXPYTHON: '${{ matrix.toxpython }}'
64
+ run: >
65
+ tox -e ${{ matrix.tox_env }} -v
66
+ - name: Upload coverage data
67
+ if: always()
68
+ uses: actions/upload-artifact@v4
69
+ with:
70
+ name: coverage-data-${{ matrix.tox_env }}
71
+ path: coverage.xml
72
+ retention-days: 1
73
+ finish:
74
+ needs: test
75
+ if: ${{ always() }}
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - uses: actions/checkout@v4
79
+ - uses: actions/download-artifact@v4
80
+ with:
81
+ pattern: coverage-data-*
82
+ merge-multiple: true
83
+ - uses: codecov/codecov-action@v5
84
+ with:
85
+ token: ${{ secrets.CODECOV_TOKEN }}
86
+ files: coverage.xml
87
+ slug: quadsproject/python-quads-lib
88
+ pypi-publish:
89
+ name: Upload release to PyPI
90
+ runs-on: ubuntu-latest
91
+ environment:
92
+ name: pypi
93
+ url: https://pypi.org/p/<your-pypi-project-name>
94
+ permissions:
95
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
96
+ steps:
97
+ # retrieve your distributions here
98
+ - name: Publish package distributions to PyPI
99
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,19 @@
1
+ # To install the git pre-commit hooks run:
2
+ # pre-commit install --install-hooks
3
+ # To update the versions:
4
+ # pre-commit autoupdate
5
+ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
6
+ # Note the order is intentional to avoid multiple passes of the hooks
7
+ repos:
8
+ - repo: https://github.com/astral-sh/ruff-pre-commit
9
+ rev: main
10
+ hooks:
11
+ - id: ruff
12
+ args: [--fix, --exit-non-zero-on-fix, --show-fixes]
13
+ - id: ruff-format
14
+ - repo: https://github.com/pre-commit/pre-commit-hooks
15
+ rev: main
16
+ hooks:
17
+ - id: trailing-whitespace
18
+ - id: end-of-file-fixer
19
+ - id: debug-statements
@@ -0,0 +1,14 @@
1
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2
+ version: 2
3
+ sphinx:
4
+ configuration: docs/conf.py
5
+ formats: all
6
+ build:
7
+ os: ubuntu-22.04
8
+ tools:
9
+ python: "3"
10
+ python:
11
+ install:
12
+ - requirements: docs/requirements.txt
13
+ - method: pip
14
+ path: .
@@ -0,0 +1,5 @@
1
+
2
+ Authors
3
+ =======
4
+
5
+ * Gonzalo Rafuls - https://quads.dev
@@ -0,0 +1,8 @@
1
+
2
+ Changelog
3
+ =========
4
+
5
+ 0.0.0 (2025-01-07)
6
+ ------------------
7
+
8
+ * First release on PyPI.
@@ -0,0 +1,85 @@
1
+ ============
2
+ Contributing
3
+ ============
4
+
5
+ Contributions are welcome, and they are greatly appreciated! Every
6
+ little bit helps, and credit will always be given.
7
+
8
+ Bug reports
9
+ ===========
10
+
11
+ When `reporting a bug <https://github.com/quadsproject/python-quads-lib/issues>`_ please include:
12
+
13
+ * Your operating system name and version.
14
+ * Any details about your local setup that might be helpful in troubleshooting.
15
+ * Detailed steps to reproduce the bug.
16
+
17
+ Documentation improvements
18
+ ==========================
19
+
20
+ quads-lib could always use more documentation, whether as part of the
21
+ official quads-lib docs, in docstrings, or even on the web in blog posts,
22
+ articles, and such.
23
+
24
+ Feature requests and feedback
25
+ =============================
26
+
27
+ The best way to send feedback is to file an issue at https://github.com/quadsproject/python-quads-lib/issues.
28
+
29
+ If you are proposing a feature:
30
+
31
+ * Explain in detail how it would work.
32
+ * Keep the scope as narrow as possible, to make it easier to implement.
33
+ * Remember that this is a volunteer-driven project, and that code contributions are welcome :)
34
+
35
+ Development
36
+ ===========
37
+
38
+ To set up `python-quads-lib` for local development:
39
+
40
+ 1. Fork `python-quads-lib <https://github.com/quadsproject/python-quads-lib>`_
41
+ (look for the "Fork" button).
42
+ 2. Clone your fork locally::
43
+
44
+ git clone git@github.com:YOURGITHUBNAME/python-quads-lib.git
45
+
46
+ 3. Create a branch for local development::
47
+
48
+ git checkout -b name-of-your-bugfix-or-feature
49
+
50
+ Now you can make your changes locally.
51
+
52
+ 4. When you're done making changes run all the checks and docs builder with one command::
53
+
54
+ tox
55
+
56
+ 5. Commit your changes and push your branch to GitHub::
57
+
58
+ git add .
59
+ git commit -m "Your detailed description of your changes."
60
+ git push origin name-of-your-bugfix-or-feature
61
+
62
+ 6. Submit a pull request through the GitHub website.
63
+
64
+ Pull Request Guidelines
65
+ -----------------------
66
+
67
+ If you need some code review or feedback while you're developing the code just make the pull request.
68
+
69
+ For merging, you should:
70
+
71
+ 1. Include passing tests (run ``tox``).
72
+ 2. Update documentation when there's new API, functionality etc.
73
+ 3. Add a note to ``CHANGELOG.rst`` about the changes.
74
+ 4. Add yourself to ``AUTHORS.rst``.
75
+
76
+ Tips
77
+ ----
78
+
79
+ To run a subset of tests::
80
+
81
+ tox -e envname -- pytest -k test_myfeature
82
+
83
+ To run all the test environments in *parallel*::
84
+
85
+ tox -p auto