scitex-str 0.1.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 (29) hide show
  1. scitex_str-0.1.0/.github/workflows/cla.yml +33 -0
  2. scitex_str-0.1.0/.github/workflows/publish-pypi.yml +27 -0
  3. scitex_str-0.1.0/.github/workflows/test.yml +27 -0
  4. scitex_str-0.1.0/LICENSE +661 -0
  5. scitex_str-0.1.0/PKG-INFO +123 -0
  6. scitex_str-0.1.0/README.md +82 -0
  7. scitex_str-0.1.0/pyproject.toml +88 -0
  8. scitex_str-0.1.0/src/scitex_str/__init__.py +104 -0
  9. scitex_str-0.1.0/src/scitex_str/_clean_path.py +79 -0
  10. scitex_str-0.1.0/src/scitex_str/_color_text.py +52 -0
  11. scitex_str-0.1.0/src/scitex_str/_decapitalize.py +58 -0
  12. scitex_str-0.1.0/src/scitex_str/_factor_out_digits.py +310 -0
  13. scitex_str-0.1.0/src/scitex_str/_format_plot_text.py +567 -0
  14. scitex_str-0.1.0/src/scitex_str/_grep.py +48 -0
  15. scitex_str-0.1.0/src/scitex_str/_latex.py +97 -0
  16. scitex_str-0.1.0/src/scitex_str/_latex_fallback.py +583 -0
  17. scitex_str-0.1.0/src/scitex_str/_mask_api.py +39 -0
  18. scitex_str-0.1.0/src/scitex_str/_mask_api_key.py +8 -0
  19. scitex_str-0.1.0/src/scitex_str/_parse.py +163 -0
  20. scitex_str-0.1.0/src/scitex_str/_print_block.py +47 -0
  21. scitex_str-0.1.0/src/scitex_str/_print_debug.py +68 -0
  22. scitex_str-0.1.0/src/scitex_str/_printc.py +62 -0
  23. scitex_str-0.1.0/src/scitex_str/_readable_bytes.py +38 -0
  24. scitex_str-0.1.0/src/scitex_str/_remove_ansi.py +23 -0
  25. scitex_str-0.1.0/src/scitex_str/_replace.py +135 -0
  26. scitex_str-0.1.0/src/scitex_str/_search.py +127 -0
  27. scitex_str-0.1.0/src/scitex_str/_squeeze_space.py +36 -0
  28. scitex_str-0.1.0/src/scitex_str/_title_case.py +63 -0
  29. scitex_str-0.1.0/tests/__init__.py +0 -0
@@ -0,0 +1,33 @@
1
+ name: CLA Assistant
2
+
3
+ on:
4
+ issue_comment:
5
+ types: [created]
6
+ pull_request_target:
7
+ types: [opened, closed, synchronize]
8
+
9
+ permissions:
10
+ actions: write
11
+ contents: write
12
+ pull-requests: write
13
+ statuses: write
14
+
15
+ jobs:
16
+ CLAssistant:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: CLA Assistant
20
+ uses: contributor-assistant/github-action@v2.6.1
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
24
+ with:
25
+ path-to-signatures: "signatures/cla.json"
26
+ path-to-document: "https://github.com/ywatanabe1989/scitex-str/blob/main/CLA.md"
27
+ branch: "cla-signatures"
28
+ allowlist: bot*,ywatanabe1989
29
+ custom-allsigned-prcomment: |
30
+ Thank you for signing the SciTeX CLA. Your contribution can now be reviewed.
31
+ custom-notsigned-prcomment: |
32
+ Please sign the [SciTeX CLA](https://github.com/ywatanabe1989/scitex-str/blob/main/CLA.md) before your contribution can be merged.
33
+ Comment `I have read and agree to the SciTeX CLA.` to sign.
@@ -0,0 +1,27 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ environment:
12
+ name: pypi
13
+ url: https://pypi.org/p/scitex-str
14
+ permissions:
15
+ id-token: write
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+ - name: Install build tools
23
+ run: pip install build
24
+ - name: Build distribution
25
+ run: python -m build
26
+ - name: Publish to PyPI
27
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,27 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [main, develop]
6
+ pull_request:
7
+ branches: [main, develop]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up Python ${{ matrix.python-version }}
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install -e ".[dev]"
25
+ pip install pytest pytest-cov
26
+ - name: Run tests
27
+ run: pytest tests/