2adif 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.

Potentially problematic release.


This version of 2adif might be problematic. Click here for more details.

@@ -0,0 +1,100 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ paths:
7
+ - "src/**"
8
+ - "test/**"
9
+ - "pyproject.toml"
10
+ - ".github/workflows/ci.yml"
11
+ pull_request:
12
+ branches: ["main"]
13
+ paths:
14
+ - "src/**"
15
+ - "test/**"
16
+ - "pyproject.toml"
17
+ - ".github/workflows/ci.yml"
18
+
19
+ permissions:
20
+ contents: read
21
+
22
+ env:
23
+ artifact_name: "python-package-distributions"
24
+ artifact_path: "dist/"
25
+
26
+ jobs:
27
+ build:
28
+ name: Build
29
+ runs-on: ubuntu-latest
30
+
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ with:
34
+ fetch-tags: "TRUE"
35
+ fetch-depth: "9"
36
+ - name: Set up Python
37
+ uses: actions/setup-python@v5
38
+ with:
39
+ python-version: "3.x"
40
+ - name: Install pypa/build
41
+ run: >-
42
+ python3 -m
43
+ pip install
44
+ build
45
+ --user
46
+ - name: Build a binary wheel and a source tarball
47
+ run: python3 -m build
48
+ - name: Store the distribution packages
49
+ uses: actions/upload-artifact@v4
50
+ with:
51
+ name: ${{ env.artifact_name }}
52
+ path: ${{ env.artifact_path }}
53
+ retention-days: 1
54
+ compression-level: 1
55
+
56
+ test-cli:
57
+ runs-on: ${{ matrix.os }}
58
+ strategy:
59
+ fail-fast: false
60
+ matrix:
61
+ os: [ubuntu-latest, windows-latest, macos-latest]
62
+ pyv: ["3.11"]
63
+ env:
64
+ python_version: ${{ matrix.pyv }}
65
+ steps:
66
+ - uses: actions/checkout@v4
67
+ - name: Set up Python ${{ matrix.pyv }}
68
+ uses: actions/setup-python@v5
69
+ with:
70
+ python-version: ${{ matrix.pyv }}
71
+
72
+ - name: Test cli
73
+ shell: bash
74
+ run: |
75
+ chmod +x ./test/cli.test.sh
76
+ ./test/cli.test.sh
77
+
78
+ publish-to-testpypi:
79
+ name: Publish 🐍 TestPyPI
80
+ needs:
81
+ - build
82
+ runs-on: ubuntu-latest
83
+
84
+ environment:
85
+ name: test.pypi.org
86
+ url: https://test.pypi.org/p/2adif
87
+
88
+ permissions:
89
+ id-token: write # IMPORTANT: mandatory for trusted publishing
90
+
91
+ steps:
92
+ - name: Download all the dists
93
+ uses: actions/download-artifact@v4
94
+ with:
95
+ name: ${{ env.artifact_name }}
96
+ path: ${{ env.artifact_path }}
97
+ - name: Publish distribution 📦 to TestPyPI
98
+ uses: pypa/gh-action-pypi-publish@release/v1
99
+ with:
100
+ repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,102 @@
1
+ name: Publish 🐍
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - "v*.*.*"
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ env:
13
+ artifact_name: "python-package-distributions"
14
+ artifact_path: "dist/"
15
+
16
+ jobs:
17
+ build:
18
+ name: Build
19
+ runs-on: ubuntu-latest
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.x"
27
+ - name: Install pypa/build
28
+ run: >-
29
+ python3 -m
30
+ pip install
31
+ build
32
+ --user
33
+ - name: Build a binary wheel and a source tarball
34
+ run: python3 -m build
35
+ - name: Store the distribution packages
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: ${{ env.artifact_name }}
39
+ path: ${{ env.artifact_path }}
40
+ retention-days: 1
41
+ compression-level: 1
42
+
43
+ publish-to-pypi:
44
+ name: Publish to PyPI
45
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
46
+ needs:
47
+ - build
48
+ runs-on: ubuntu-latest
49
+ environment:
50
+ name: pypi.org
51
+ url: https://pypi.org/p/2adif
52
+ permissions:
53
+ id-token: write # IMPORTANT: mandatory for trusted publishing
54
+ steps:
55
+ - name: Download all the dists
56
+ uses: actions/download-artifact@v4
57
+ with:
58
+ name: ${{ env.artifact_name }}
59
+ path: ${{ env.artifact_path }}
60
+ - name: Publish distribution 📦 to PyPI
61
+ uses: pypa/gh-action-pypi-publish@release/v1
62
+
63
+ github-release:
64
+ name: Publish GitHub Release
65
+ needs:
66
+ - publish-to-pypi
67
+ runs-on: ubuntu-latest
68
+
69
+ permissions:
70
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
71
+ id-token: write # IMPORTANT: mandatory for sigstore
72
+
73
+ steps:
74
+ - name: Download all the dists
75
+ uses: actions/download-artifact@v4
76
+ with:
77
+ name: ${{ env.artifact_name }}
78
+ path: ${{ env.artifact_path }}
79
+ - name: Sign the dists with Sigstore
80
+ uses: sigstore/gh-action-sigstore-python@v2.1.1
81
+ with:
82
+ inputs: >-
83
+ ./dist/*.tar.gz
84
+ ./dist/*.whl
85
+ - name: Create GitHub Release
86
+ env:
87
+ GITHUB_TOKEN: ${{ github.token }}
88
+ run: >-
89
+ gh release create
90
+ '${{ github.ref_name }}'
91
+ --repo '${{ github.repository }}'
92
+ --notes ""
93
+ - name: Upload artifact signatures to GitHub Release
94
+ env:
95
+ GITHUB_TOKEN: ${{ github.token }}
96
+ # Upload to GitHub Release using the `gh` CLI.
97
+ # `dist/` contains the built packages, and the
98
+ # sigstore-produced signatures and certificates.
99
+ run: >-
100
+ gh release upload
101
+ '${{ github.ref_name }}' dist/**
102
+ --repo '${{ github.repository }}'
2adif-0.1.0/.gitignore ADDED
@@ -0,0 +1,177 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
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
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # PyPI configuration file
171
+ .pypirc
172
+
173
+ # 2adif
174
+
175
+ test/**.adi
176
+ test/**.adx
177
+ test/**.adif