gesel 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 (70) hide show
  1. gesel-0.1.0/.coveragerc +28 -0
  2. gesel-0.1.0/.github/workflows/build-docs.yml +41 -0
  3. gesel-0.1.0/.github/workflows/publish-pypi.yml +39 -0
  4. gesel-0.1.0/.github/workflows/run-tests.yml +73 -0
  5. gesel-0.1.0/.gitignore +54 -0
  6. gesel-0.1.0/.pre-commit-config.yaml +32 -0
  7. gesel-0.1.0/.readthedocs.yml +27 -0
  8. gesel-0.1.0/AUTHORS.md +3 -0
  9. gesel-0.1.0/CHANGELOG.md +5 -0
  10. gesel-0.1.0/CONTRIBUTING.md +339 -0
  11. gesel-0.1.0/LICENSE.txt +21 -0
  12. gesel-0.1.0/PKG-INFO +229 -0
  13. gesel-0.1.0/README.md +204 -0
  14. gesel-0.1.0/docs/Makefile +29 -0
  15. gesel-0.1.0/docs/_static/.gitignore +1 -0
  16. gesel-0.1.0/docs/authors.md +4 -0
  17. gesel-0.1.0/docs/changelog.md +4 -0
  18. gesel-0.1.0/docs/conf.py +325 -0
  19. gesel-0.1.0/docs/contributing.md +4 -0
  20. gesel-0.1.0/docs/index.md +39 -0
  21. gesel-0.1.0/docs/license.md +5 -0
  22. gesel-0.1.0/docs/readme.md +4 -0
  23. gesel-0.1.0/docs/requirements.txt +9 -0
  24. gesel-0.1.0/pyproject.toml +25 -0
  25. gesel-0.1.0/setup.cfg +77 -0
  26. gesel-0.1.0/setup.py +22 -0
  27. gesel-0.1.0/src/gesel/__init__.py +48 -0
  28. gesel-0.1.0/src/gesel/_download_database_file.py +79 -0
  29. gesel-0.1.0/src/gesel/_download_database_ranges.py +254 -0
  30. gesel-0.1.0/src/gesel/_download_gene_file.py +79 -0
  31. gesel-0.1.0/src/gesel/_fetch_all_collections.py +79 -0
  32. gesel-0.1.0/src/gesel/_fetch_all_genes.py +70 -0
  33. gesel-0.1.0/src/gesel/_fetch_all_sets.py +81 -0
  34. gesel-0.1.0/src/gesel/_fetch_genes_for_all_sets.py +56 -0
  35. gesel-0.1.0/src/gesel/_fetch_genes_for_some_sets.py +94 -0
  36. gesel-0.1.0/src/gesel/_fetch_sets_for_all_genes.py +55 -0
  37. gesel-0.1.0/src/gesel/_fetch_sets_for_some_genes.py +136 -0
  38. gesel-0.1.0/src/gesel/_fetch_some_collections.py +158 -0
  39. gesel-0.1.0/src/gesel/_fetch_some_sets.py +149 -0
  40. gesel-0.1.0/src/gesel/_find_overlapping_sets.py +129 -0
  41. gesel-0.1.0/src/gesel/_map_genes_by_name.py +95 -0
  42. gesel-0.1.0/src/gesel/_new_config.py +183 -0
  43. gesel-0.1.0/src/gesel/_search_genes.py +65 -0
  44. gesel-0.1.0/src/gesel/_search_set_text.py +210 -0
  45. gesel-0.1.0/src/gesel/_utils.py +98 -0
  46. gesel-0.1.0/src/gesel.egg-info/PKG-INFO +229 -0
  47. gesel-0.1.0/src/gesel.egg-info/SOURCES.txt +69 -0
  48. gesel-0.1.0/src/gesel.egg-info/dependency_links.txt +1 -0
  49. gesel-0.1.0/src/gesel.egg-info/not-zip-safe +1 -0
  50. gesel-0.1.0/src/gesel.egg-info/requires.txt +12 -0
  51. gesel-0.1.0/src/gesel.egg-info/top_level.txt +1 -0
  52. gesel-0.1.0/tests/conftest.py +10 -0
  53. gesel-0.1.0/tests/test_download_database_file.py +29 -0
  54. gesel-0.1.0/tests/test_download_database_ranges.py +149 -0
  55. gesel-0.1.0/tests/test_download_gene_file.py +29 -0
  56. gesel-0.1.0/tests/test_fetch_all_collections.py +19 -0
  57. gesel-0.1.0/tests/test_fetch_all_genes.py +26 -0
  58. gesel-0.1.0/tests/test_fetch_all_sets.py +20 -0
  59. gesel-0.1.0/tests/test_fetch_genes_for_all_sets.py +21 -0
  60. gesel-0.1.0/tests/test_fetch_genes_for_some_sets.py +37 -0
  61. gesel-0.1.0/tests/test_fetch_sets_for_all_genes.py +21 -0
  62. gesel-0.1.0/tests/test_fetch_sets_for_some_genes.py +45 -0
  63. gesel-0.1.0/tests/test_fetch_some_collections.py +43 -0
  64. gesel-0.1.0/tests/test_fetch_some_sets.py +43 -0
  65. gesel-0.1.0/tests/test_find_overlapping_sets.py +34 -0
  66. gesel-0.1.0/tests/test_map_genes_by_name.py +25 -0
  67. gesel-0.1.0/tests/test_search_genes.py +23 -0
  68. gesel-0.1.0/tests/test_search_set_text.py +43 -0
  69. gesel-0.1.0/tests/test_utils.py +9 -0
  70. gesel-0.1.0/tox.ini +93 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = gesel
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
@@ -0,0 +1,41 @@
1
+ name: Build documentation
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ test:
10
+ name: Build docs
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v6
18
+ with:
19
+ python-version: 3.14
20
+ cache: 'pip'
21
+
22
+ - name: Get latest CMake
23
+ uses: lukka/get-cmake@latest
24
+
25
+ - name: Build docs
26
+ run: |
27
+ pip install tox
28
+ tox -e docs
29
+
30
+ - name: Edit CSS
31
+ run: |
32
+ CSSPATH=./docs/_build/html/_static/styles/furo.css
33
+ cat ${CSSPATH} | sed "s/ol,ul{\\([^}]*\\);padding-left:1\\.2rem}/ol,ul{\\1}/" > tmp.css
34
+ mv tmp.css ${CSSPATH}
35
+
36
+ - name: GH Pages Deployment
37
+ uses: JamesIves/github-pages-deploy-action@v4
38
+ with:
39
+ branch: gh-pages # The branch the action should deploy to.
40
+ folder: ./docs/_build/html
41
+ clean: true # Automatically remove deleted files from the deploy branch
@@ -0,0 +1,39 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags: "*"
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
+ repository-projects: write
13
+ contents: write
14
+ pages: write
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v6
21
+ with:
22
+ python-version: 3.14
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install tox
28
+
29
+ - name: Test with tox
30
+ run: |
31
+ tox
32
+
33
+ - name: Build Project and Publish
34
+ run: |
35
+ python -m tox -e clean,build
36
+
37
+ # This uses the trusted publisher workflow so no token is required.
38
+ - name: Publish to PyPI
39
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,73 @@
1
+ name: Test the library
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master # for legacy repos
7
+ - main
8
+ pull_request:
9
+ branches:
10
+ - master # for legacy repos
11
+ - main
12
+ workflow_dispatch: # Allow manually triggering the workflow
13
+ schedule:
14
+ # Run roughly every 15 days at 00:00 UTC
15
+ # (useful to check if updates on dependencies break the package)
16
+ - cron: "0 0 1,16 * *"
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ concurrency:
22
+ group: >-
23
+ ${{ github.workflow }}-${{ github.ref_type }}-
24
+ ${{ github.event.pull_request.number || github.sha }}
25
+ cancel-in-progress: true
26
+
27
+ jobs:
28
+ test:
29
+ strategy:
30
+ matrix:
31
+ python: ["3.10", "3.14"] # only testing the extreme versions, for brevity.
32
+ platform:
33
+ - ubuntu-latest
34
+ - macos-latest
35
+ - windows-latest
36
+ runs-on: ${{ matrix.platform }}
37
+ name: Python ${{ matrix.python }}, ${{ matrix.platform }}
38
+ steps:
39
+ - uses: actions/checkout@v4
40
+
41
+ - uses: actions/setup-python@v6
42
+ id: setup-python
43
+ with:
44
+ python-version: ${{ matrix.python }}
45
+
46
+ - name: Install dependencies
47
+ run: |
48
+ python -m pip install --upgrade pip
49
+ pip install tox coverage
50
+
51
+ - name: Run tests
52
+ run: >-
53
+ pipx run --python '${{ steps.setup-python.outputs.python-path }}'
54
+ tox
55
+ -- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args
56
+
57
+ - name: Check for codecov token availability
58
+ id: codecov-check
59
+ shell: bash
60
+ run: |
61
+ if [ ${{ secrets.CODECOV_TOKEN }} != '' ]; then
62
+ echo "codecov=true" >> $GITHUB_OUTPUT;
63
+ else
64
+ echo "codecov=false" >> $GITHUB_OUTPUT;
65
+ fi
66
+
67
+ - name: Upload coverage reports to Codecov with GitHub Action
68
+ uses: codecov/codecov-action@v5
69
+ if: ${{ steps.codecov-check.outputs.codecov == 'true' }}
70
+ env:
71
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
72
+ slug: ${{ github.repository }}
73
+ flags: ${{ matrix.platform }} - py${{ matrix.python }}
gesel-0.1.0/.gitignore ADDED
@@ -0,0 +1,54 @@
1
+ # Temporary and binary files
2
+ *~
3
+ *.py[cod]
4
+ *.so
5
+ *.cfg
6
+ !.isort.cfg
7
+ !setup.cfg
8
+ *.orig
9
+ *.log
10
+ *.pot
11
+ __pycache__/*
12
+ .cache/*
13
+ .*.swp
14
+ */.ipynb_checkpoints/*
15
+ .DS_Store
16
+
17
+ # Project files
18
+ .ropeproject
19
+ .project
20
+ .pydevproject
21
+ .settings
22
+ .idea
23
+ .vscode
24
+ tags
25
+
26
+ # Package files
27
+ *.egg
28
+ *.eggs/
29
+ .installed.cfg
30
+ *.egg-info
31
+
32
+ # Unittest and coverage
33
+ htmlcov/*
34
+ .coverage
35
+ .coverage.*
36
+ .tox
37
+ junit*.xml
38
+ coverage.xml
39
+ .pytest_cache/
40
+
41
+ # Build and docs folder/files
42
+ build/*
43
+ dist/*
44
+ sdist/*
45
+ docs/api/*
46
+ docs/_rst/*
47
+ docs/_build/*
48
+ cover/*
49
+ MANIFEST
50
+
51
+ # Per-project virtualenvs
52
+ .venv*/
53
+ .conda*/
54
+ .python-version
@@ -0,0 +1,32 @@
1
+ exclude: '^docs/conf.py'
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-added-large-files
9
+ - id: check-ast
10
+ - id: check-json
11
+ - id: check-merge-conflict
12
+ - id: check-xml
13
+ - id: check-yaml
14
+ - id: debug-statements
15
+ - id: end-of-file-fixer
16
+ - id: requirements-txt-fixer
17
+ - id: mixed-line-ending
18
+ args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19
+
20
+ - repo: https://github.com/astral-sh/ruff-pre-commit
21
+ # Ruff version.
22
+ rev: v0.8.2
23
+ hooks:
24
+ - id: ruff
25
+ args: [--fix, --exit-non-zero-on-fix]
26
+ - id: ruff-format
27
+
28
+ ## Check for misspells in documentation files:
29
+ # - repo: https://github.com/codespell-project/codespell
30
+ # rev: v2.2.5
31
+ # hooks:
32
+ # - id: codespell
@@ -0,0 +1,27 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Build documentation in the docs/ directory with Sphinx
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ # Build documentation with MkDocs
12
+ #mkdocs:
13
+ # configuration: mkdocs.yml
14
+
15
+ # Optionally build your docs in additional formats such as PDF
16
+ formats:
17
+ - pdf
18
+
19
+ build:
20
+ os: ubuntu-22.04
21
+ tools:
22
+ python: "3.11"
23
+
24
+ python:
25
+ install:
26
+ - requirements: docs/requirements.txt
27
+ - {path: ., method: pip}
gesel-0.1.0/AUTHORS.md ADDED
@@ -0,0 +1,3 @@
1
+ # Contributors
2
+
3
+ * LTLA [infinite.monkeys.with.keyboards@gmail.com](mailto:infinite.monkeys.with.keyboards@gmail.com)
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## Version 0.1
4
+
5
+ - First release of the **gesel** client package.
@@ -0,0 +1,339 @@
1
+ # Contributing
2
+
3
+ Welcome to `gesel` contributor's guide.
4
+
5
+ This document focuses on getting any potential contributor familiarized with
6
+ the development processes, but [other kinds of contributions] are also appreciated.
7
+
8
+ If you are new to using [git] or have never collaborated in a project previously,
9
+ please have a look at [contribution-guide.org]. Other resources are also
10
+ listed in the excellent [guide created by FreeCodeCamp] [^contrib1].
11
+
12
+ Please notice, all users and contributors are expected to be **open,
13
+ considerate, reasonable, and respectful**. When in doubt,
14
+ [Python Software Foundation's Code of Conduct] is a good reference in terms of
15
+ behavior guidelines.
16
+
17
+ ## Issue Reports
18
+
19
+ If you experience bugs or general issues with `gesel`, please have a look
20
+ on the [issue tracker].
21
+ If you don't see anything useful there, please feel free to fire an issue report.
22
+
23
+ :::{tip}
24
+ Please don't forget to include the closed issues in your search.
25
+ Sometimes a solution was already reported, and the problem is considered
26
+ **solved**.
27
+ :::
28
+
29
+ New issue reports should include information about your programming environment
30
+ (e.g., operating system, Python version) and steps to reproduce the problem.
31
+ Please try also to simplify the reproduction steps to a very minimal example
32
+ that still illustrates the problem you are facing. By removing other factors,
33
+ you help us to identify the root cause of the issue.
34
+
35
+ ## Documentation Improvements
36
+
37
+ You can help improve `gesel` docs by making them more readable and coherent, or
38
+ by adding missing information and correcting mistakes.
39
+
40
+ `gesel` documentation uses [Sphinx] as its main documentation compiler.
41
+ This means that the docs are kept in the same repository as the project code, and
42
+ that any documentation update is done in the same way was a code contribution.
43
+
44
+ ```{todo} Don't forget to mention which markup language you are using.
45
+
46
+ e.g., [reStructuredText] or [CommonMark] with [MyST] extensions.
47
+ ```
48
+
49
+ ```{todo} If your project is hosted on GitHub, you can also mention the following tip:
50
+
51
+ :::{tip}
52
+ Please notice that the [GitHub web interface] provides a quick way of
53
+ propose changes in `gesel`'s files. While this mechanism can
54
+ be tricky for normal code contributions, it works perfectly fine for
55
+ contributing to the docs, and can be quite handy.
56
+
57
+ If you are interested in trying this method out, please navigate to
58
+ the `docs` folder in the source [repository], find which file you
59
+ would like to propose changes and click in the little pencil icon at the
60
+ top, to open [GitHub's code editor]. Once you finish editing the file,
61
+ please write a message in the form at the bottom of the page describing
62
+ which changes have you made and what are the motivations behind them and
63
+ submit your proposal.
64
+ :::
65
+ ```
66
+
67
+ When working on documentation changes in your local machine, you can
68
+ compile them using [tox] :
69
+
70
+ ```
71
+ tox -e docs
72
+ ```
73
+
74
+ and use Python's built-in web server for a preview in your web browser
75
+ (`http://localhost:8000`):
76
+
77
+ ```
78
+ python3 -m http.server --directory 'docs/_build/html'
79
+ ```
80
+
81
+ ## Code Contributions
82
+
83
+ ```{todo} Please include a reference or explanation about the internals of the project.
84
+
85
+ An architecture description, design principles or at least a summary of the
86
+ main concepts will make it easy for potential contributors to get started
87
+ quickly.
88
+ ```
89
+
90
+ ### Submit an issue
91
+
92
+ Before you work on any non-trivial code contribution it's best to first create
93
+ a report in the [issue tracker] to start a discussion on the subject.
94
+ This often provides additional considerations and avoids unnecessary work.
95
+
96
+ ### Create an environment
97
+
98
+ Before you start coding, we recommend creating an isolated [virtual environment]
99
+ to avoid any problems with your installed Python packages.
100
+ This can easily be done via either [virtualenv]:
101
+
102
+ ```
103
+ virtualenv <PATH TO VENV>
104
+ source <PATH TO VENV>/bin/activate
105
+ ```
106
+
107
+ or [Miniconda]:
108
+
109
+ ```
110
+ conda create -n gesel python=3 six virtualenv pytest pytest-cov
111
+ conda activate gesel
112
+ ```
113
+
114
+ ### Clone the repository
115
+
116
+ 1. Create an user account on GitHub if you do not already have one.
117
+
118
+ 2. Fork the project [repository]: click on the *Fork* button near the top of the
119
+ page. This creates a copy of the code under your account on GitHub.
120
+
121
+ 3. Clone this copy to your local disk:
122
+
123
+ ```
124
+ git clone git@github.com:YourLogin/gesel.git
125
+ cd gesel
126
+ ```
127
+
128
+ 4. You should run:
129
+
130
+ ```
131
+ pip install -U pip setuptools -e .
132
+ ```
133
+
134
+ to be able to import the package under development in the Python REPL.
135
+
136
+ ```{todo} if you are not using pre-commit, please remove the following item:
137
+ ```
138
+
139
+ 5. Install [pre-commit]:
140
+
141
+ ```
142
+ pip install pre-commit
143
+ pre-commit install
144
+ ```
145
+
146
+ `gesel` comes with a lot of hooks configured to automatically help the
147
+ developer to check the code being written.
148
+
149
+ ### Implement your changes
150
+
151
+ 1. Create a branch to hold your changes:
152
+
153
+ ```
154
+ git checkout -b my-feature
155
+ ```
156
+
157
+ and start making changes. Never work on the main branch!
158
+
159
+ 2. Start your work on this branch. Don't forget to add [docstrings] to new
160
+ functions, modules and classes, especially if they are part of public APIs.
161
+
162
+ 3. Add yourself to the list of contributors in `AUTHORS.rst`.
163
+
164
+ 4. When you’re done editing, do:
165
+
166
+ ```
167
+ git add <MODIFIED FILES>
168
+ git commit
169
+ ```
170
+
171
+ to record your changes in [git].
172
+
173
+ ```{todo} if you are not using pre-commit, please remove the following item:
174
+ ```
175
+
176
+ Please make sure to see the validation messages from [pre-commit] and fix
177
+ any eventual issues.
178
+ This should automatically use [flake8]/[black] to check/fix the code style
179
+ in a way that is compatible with the project.
180
+
181
+ :::{important}
182
+ Don't forget to add unit tests and documentation in case your
183
+ contribution adds an additional feature and is not just a bugfix.
184
+
185
+ Moreover, writing a [descriptive commit message] is highly recommended.
186
+ In case of doubt, you can check the commit history with:
187
+
188
+ ```
189
+ git log --graph --decorate --pretty=oneline --abbrev-commit --all
190
+ ```
191
+
192
+ to look for recurring communication patterns.
193
+ :::
194
+
195
+ 5. Please check that your changes don't break any unit tests with:
196
+
197
+ ```
198
+ tox
199
+ ```
200
+
201
+ (after having installed [tox] with `pip install tox` or `pipx`).
202
+
203
+ You can also use [tox] to run several other pre-configured tasks in the
204
+ repository. Try `tox -av` to see a list of the available checks.
205
+
206
+ ### Submit your contribution
207
+
208
+ 1. If everything works fine, push your local branch to the remote server with:
209
+
210
+ ```
211
+ git push -u origin my-feature
212
+ ```
213
+
214
+ 2. Go to the web page of your fork and click "Create pull request"
215
+ to send your changes for review.
216
+
217
+ ```{todo} if you are using GitHub, you can uncomment the following paragraph
218
+
219
+ Find more detailed information in [creating a PR]. You might also want to open
220
+ the PR as a draft first and mark it as ready for review after the feedbacks
221
+ from the continuous integration (CI) system or any required fixes.
222
+
223
+ ```
224
+
225
+ ### Troubleshooting
226
+
227
+ The following tips can be used when facing problems to build or test the
228
+ package:
229
+
230
+ 1. Make sure to fetch all the tags from the upstream [repository].
231
+ The command `git describe --abbrev=0 --tags` should return the version you
232
+ are expecting. If you are trying to run CI scripts in a fork repository,
233
+ make sure to push all the tags.
234
+ You can also try to remove all the egg files or the complete egg folder, i.e.,
235
+ `.eggs`, as well as the `*.egg-info` folders in the `src` folder or
236
+ potentially in the root of your project.
237
+
238
+ 2. Sometimes [tox] misses out when new dependencies are added, especially to
239
+ `setup.cfg` and `docs/requirements.txt`. If you find any problems with
240
+ missing dependencies when running a command with [tox], try to recreate the
241
+ `tox` environment using the `-r` flag. For example, instead of:
242
+
243
+ ```
244
+ tox -e docs
245
+ ```
246
+
247
+ Try running:
248
+
249
+ ```
250
+ tox -r -e docs
251
+ ```
252
+
253
+ 3. Make sure to have a reliable [tox] installation that uses the correct
254
+ Python version (e.g., 3.7+). When in doubt you can run:
255
+
256
+ ```
257
+ tox --version
258
+ # OR
259
+ which tox
260
+ ```
261
+
262
+ If you have trouble and are seeing weird errors upon running [tox], you can
263
+ also try to create a dedicated [virtual environment] with a [tox] binary
264
+ freshly installed. For example:
265
+
266
+ ```
267
+ virtualenv .venv
268
+ source .venv/bin/activate
269
+ .venv/bin/pip install tox
270
+ .venv/bin/tox -e all
271
+ ```
272
+
273
+ 4. [Pytest can drop you] in an interactive session in the case an error occurs.
274
+ In order to do that you need to pass a `--pdb` option (for example by
275
+ running `tox -- -k <NAME OF THE FALLING TEST> --pdb`).
276
+ You can also setup breakpoints manually instead of using the `--pdb` option.
277
+
278
+ ## Maintainer tasks
279
+
280
+ ### Releases
281
+
282
+ ```{todo} This section assumes you are using PyPI to publicly release your package.
283
+
284
+ If instead you are using a different/private package index, please update
285
+ the instructions accordingly.
286
+ ```
287
+
288
+ If you are part of the group of maintainers and have correct user permissions
289
+ on [PyPI], the following steps can be used to release a new version for
290
+ `gesel`:
291
+
292
+ 1. Make sure all unit tests are successful.
293
+ 2. Tag the current commit on the main branch with a release tag, e.g., `v1.2.3`.
294
+ 3. Push the new tag to the upstream [repository],
295
+ e.g., `git push upstream v1.2.3`
296
+ 4. Clean up the `dist` and `build` folders with `tox -e clean`
297
+ (or `rm -rf dist build`)
298
+ to avoid confusion with old builds and Sphinx docs.
299
+ 5. Run `tox -e build` and check that the files in `dist` have
300
+ the correct version (no `.dirty` or [git] hash) according to the [git] tag.
301
+ Also check the sizes of the distributions, if they are too big (e.g., >
302
+ 500KB), unwanted clutter may have been accidentally included.
303
+ 6. Run `tox -e publish -- --repository pypi` and check that everything was
304
+ uploaded to [PyPI] correctly.
305
+
306
+ [^contrib1]: Even though, these resources focus on open source projects and
307
+ communities, the general ideas behind collaborating with other developers
308
+ to collectively create software are general and can be applied to all sorts
309
+ of environments, including private companies and proprietary code bases.
310
+
311
+
312
+ [black]: https://pypi.org/project/black/
313
+ [commonmark]: https://commonmark.org/
314
+ [contribution-guide.org]: http://www.contribution-guide.org/
315
+ [creating a pr]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
316
+ [descriptive commit message]: https://chris.beams.io/posts/git-commit
317
+ [docstrings]: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
318
+ [first-contributions tutorial]: https://github.com/firstcontributions/first-contributions
319
+ [flake8]: https://flake8.pycqa.org/en/stable/
320
+ [git]: https://git-scm.com
321
+ [github web interface]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
322
+ [github's code editor]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
323
+ [github's fork and pull request workflow]: https://guides.github.com/activities/forking/
324
+ [guide created by freecodecamp]: https://github.com/freecodecamp/how-to-contribute-to-open-source
325
+ [miniconda]: https://docs.conda.io/en/latest/miniconda.html
326
+ [myst]: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html
327
+ [other kinds of contributions]: https://opensource.guide/how-to-contribute
328
+ [pre-commit]: https://pre-commit.com/
329
+ [pypi]: https://pypi.org/
330
+ [pyscaffold's contributor's guide]: https://pyscaffold.org/en/stable/contributing.html
331
+ [pytest can drop you]: https://docs.pytest.org/en/stable/usage.html#dropping-to-pdb-python-debugger-at-the-start-of-a-test
332
+ [python software foundation's code of conduct]: https://www.python.org/psf/conduct/
333
+ [restructuredtext]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/
334
+ [sphinx]: https://www.sphinx-doc.org/en/master/
335
+ [tox]: https://tox.readthedocs.io/en/stable/
336
+ [virtual environment]: https://realpython.com/python-virtual-environments-a-primer/
337
+ [virtualenv]: https://virtualenv.pypa.io/en/stable/
338
+ [repository]: https://github.com/gesel-inc/gesel-py
339
+ [issue tracker]: https://github.com/gesel-inc/gesel-py/issues
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 LTLA
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.