ics-query 0.0.1a0__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.
@@ -0,0 +1,15 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ - niccokunzmann
5
+ polar: niccokunzmann/ics-query
6
+ patreon: # Replace with a single Patreon username
7
+ open_collective: open-web-calendar # Replace with a single Open Collective username
8
+ ko_fi: # Replace with a single Ko-fi username
9
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
10
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
11
+ liberapay: # Replace with a single Liberapay username
12
+ issuehunt: # Replace with a single IssueHunt username
13
+ otechie: # Replace with a single Otechie username
14
+ lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
15
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report and help this package improve
4
+ title: 'bug: '
5
+ labels: bug
6
+ assignees: ''
7
+ ---
8
+ <!-- This template is a suggestion. So, you do not have to use it. -->
9
+
10
+ ## Describe the bug
11
+ <!-- A clear and concise description of what the bug is. -->
12
+
13
+ ## To Reproduce
14
+ <!-- Source code to reproduce the behavior. -->
15
+
16
+ ## ICS file
17
+ <!-- Please paste an ICS file here which does not work or attach it with a .txt ending. -->
18
+
19
+ ```text
20
+ ```
21
+
22
+ ## Expected behavior
23
+ <!-- A clear and concise description of what you expected to happen. -->
24
+
25
+ ## Console output
26
+ <!-- If applicable, add output/screenshots to help explain your problem. -->
27
+
28
+ **Version:**
29
+ <!-- Which Version do you use? -->
30
+ v0.0.1
31
+
32
+ <!-- Sometimes, the problems are in other packages. You can provide an overview
33
+ by running this command and passing the output:
34
+
35
+ pip list
36
+ -->
37
+ ```shell
38
+ pip list
39
+ ```
40
+
41
+ ## Additional context
42
+ <!-- Add any other context about the problem here. Or maybe related issues. -->
43
+
44
+ ## Suggested implementation
45
+ <!-- If possible, suggest a way of solving this or just let this text down there remain as it is. -->
46
+
47
+ - [ ] add an ICS file in `ics_query/tests/runs/calendars`
48
+ - [ ] add a test in `ics_query/tests/runs directory`
49
+ - [ ] fix the bug and ensure the test code passes
@@ -0,0 +1,19 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "pip" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
12
+ - package-ecosystem: github-actions
13
+ directory: /
14
+ groups:
15
+ github-actions:
16
+ patterns:
17
+ - "*" # Group all Actions updates into a single larger pull request
18
+ schedule:
19
+ interval: weekly
@@ -0,0 +1,113 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - v*
9
+ pull_request:
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ run-tests:
14
+ strategy:
15
+ matrix:
16
+ config:
17
+ # [Python version, tox env]
18
+ - ["3.9", "py39"]
19
+ - ["3.10", "py310"]
20
+ - ["3.11", "py311"]
21
+ - ["3.12", "py312"]
22
+ - ["3.9", "ruff"]
23
+
24
+ runs-on: ubuntu-latest
25
+ name: ${{ matrix.config[1] }}
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - name: Set up Python
29
+ uses: actions/setup-python@v5
30
+ with:
31
+ python-version: ${{ matrix.config[0] }}
32
+ - name: Pip cache
33
+ uses: actions/cache@v4
34
+ with:
35
+ path: ~/.cache/pip
36
+ key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
37
+ restore-keys: |
38
+ ${{ runner.os }}-pip-${{ matrix.config[0] }}-
39
+ ${{ runner.os }}-pip-
40
+ - name: Install dependencies
41
+ run: |
42
+ python -m pip install --upgrade pip
43
+ pip install tox
44
+ - name: Test
45
+ run: |
46
+ tox -e ${{ matrix.config[1] }}
47
+
48
+ deploy-tag-to-pypi:
49
+ name: Publish Package on PyPI
50
+ # only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
51
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
52
+ needs:
53
+ - run-tests
54
+ runs-on: ubuntu-latest
55
+ # This environment stores the TWINE_USERNAME and TWINE_PASSWORD
56
+ # see https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
57
+ environment:
58
+ name: PyPI
59
+ url: https://pypi.org/project/open-web-calendar/
60
+ # after using the environment, we need to make the secrets available
61
+ # see https://docs.github.com/en/actions/security-guides/encrypted-secrets#example-using-bash
62
+ env:
63
+ TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
64
+ TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
65
+ steps:
66
+ - uses: actions/checkout@v4
67
+ - name: Set up Python
68
+ uses: actions/setup-python@v5
69
+ with:
70
+ python-version: "3.12"
71
+ - name: Install dependencies
72
+ run: |
73
+ python -m pip install --upgrade pip
74
+ pip install --upgrade wheel twine build
75
+ - name: remove old files
76
+ run: rm -rf dist/*
77
+ - name: build distribution files
78
+ run: python -m build
79
+ - name: deploy to pypi
80
+ run: |
81
+ # You will have to set the variables TWINE_USERNAME and TWINE_PASSWORD
82
+ # You can use a token specific to your project by setting the user name to
83
+ # __token__ and the password to the token given to you by the PyPI project.
84
+ # sources:
85
+ # - https://shambu2k.hashnode.dev/gitlab-to-pypi
86
+ # - http://blog.octomy.org/2020/11/deploying-python-pacakges-to-pypi-using.html?m=1
87
+ # Also, set the tags as protected to allow the secrets to be used.
88
+ # see https://docs.gitlab.com/ee/user/project/protected_tags.html
89
+ if [ -z "$TWINE_USERNAME" ]; then
90
+ echo "WARNING: TWINE_USERNAME not set!"
91
+ fi
92
+ if [ -z "$TWINE_PASSWORD" ]; then
93
+ echo "WARNING: TWINE_PASSWORD not set!"
94
+ fi
95
+ twine check dist/*
96
+ twine upload dist/*
97
+
98
+ github-release:
99
+ name: "Publish GitHub Release"
100
+ # only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
101
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
102
+ needs:
103
+ - run-tests
104
+ - deploy-tag-to-pypi
105
+ runs-on: ubuntu-latest
106
+ steps:
107
+ - uses: actions/checkout@v4
108
+ - name: create release
109
+ uses: ncipollo/release-action@v1
110
+ with:
111
+ allowUpdates: true
112
+ body: "For a list of changes, please refer to the [Changelog](https://open-web-calendar.quelltext.eu/changelog/)."
113
+ generateReleaseNotes: false
@@ -0,0 +1,163 @@
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
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110
+ .pdm.toml
111
+ .pdm-python
112
+ .pdm-build/
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
161
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
163
+ ics_query/_version.py