julio 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.
- julio-0.0.0/.github/CONTRIBUTING.md +90 -0
- julio-0.0.0/.github/MAINTAINING.md +62 -0
- julio-0.0.0/.github/dependabot.yml +11 -0
- julio-0.0.0/.github/workflows/lint.yml +21 -0
- julio-0.0.0/.github/workflows/publish.yml +39 -0
- julio-0.0.0/.gitignore +210 -0
- julio-0.0.0/.pre-commit-config.yml +38 -0
- julio-0.0.0/.python-version +1 -0
- julio-0.0.0/CHANGELOG.md +5 -0
- julio-0.0.0/LICENSE +661 -0
- julio-0.0.0/PKG-INFO +39 -0
- julio-0.0.0/README.md +2 -0
- julio-0.0.0/julio/__init__.py +9 -0
- julio-0.0.0/julio/__init__.pyi +0 -0
- julio-0.0.0/julio/_version.py +34 -0
- julio-0.0.0/julio/py.typed +0 -0
- julio-0.0.0/julio.egg-info/PKG-INFO +39 -0
- julio-0.0.0/julio.egg-info/SOURCES.txt +24 -0
- julio-0.0.0/julio.egg-info/dependency_links.txt +1 -0
- julio-0.0.0/julio.egg-info/entry_points.txt +5 -0
- julio-0.0.0/julio.egg-info/requires.txt +9 -0
- julio-0.0.0/julio.egg-info/top_level.txt +1 -0
- julio-0.0.0/pyproject.toml +178 -0
- julio-0.0.0/setup.cfg +4 -0
- julio-0.0.0/tox.ini +44 -0
- julio-0.0.0/uv.lock +1140 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# How To Contribute
|
|
2
|
+
|
|
3
|
+
## Setting up the local development environment
|
|
4
|
+
|
|
5
|
+
1. Fork the https://github.com/juaml/junifer-julio repository on GitHub. If you
|
|
6
|
+
have never done this before,
|
|
7
|
+
[follow the official guide](https://guides.github.com/activities/forking/).
|
|
8
|
+
|
|
9
|
+
2. Clone your fork locally as described in the same guide.
|
|
10
|
+
|
|
11
|
+
3. Install your local copy into a Python virtual environment. You can
|
|
12
|
+
[read this guide to learn more](https://realpython.com/python-virtual-environments-a-primer/)
|
|
13
|
+
about them and how to create one.
|
|
14
|
+
|
|
15
|
+
```console
|
|
16
|
+
$ pip install -e ".[dev]"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
4. Create a branch for local development using the `main` branch as a
|
|
20
|
+
starting point. Use `fix`, `refactor`, `chore`, or `feat` as a prefix.
|
|
21
|
+
|
|
22
|
+
```console
|
|
23
|
+
$ git checkout main
|
|
24
|
+
$ git checkout -b <prefix>/<name-of-your-branch>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Now you can make your changes locally.
|
|
28
|
+
|
|
29
|
+
5. Make sure you install git pre-commit hooks like so:
|
|
30
|
+
|
|
31
|
+
```console
|
|
32
|
+
$ pre-commit install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
6. When making changes locally, it is helpful to `git commit` your work
|
|
36
|
+
regularly. On one hand to save your work and on the other hand, the smaller
|
|
37
|
+
the steps, the easier it is to review your work later. Please use
|
|
38
|
+
[semantic commit messages](http://karma-runner.github.io/2.0/dev/git-commit-msg.html).
|
|
39
|
+
|
|
40
|
+
```console
|
|
41
|
+
$ git add .
|
|
42
|
+
$ git commit -m "<prefix>: <summary of changes>"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
In case, you want to commit some WIP (work-in-progress) code, please indicate
|
|
46
|
+
that in the commit message and use the flag `--no-verify` with
|
|
47
|
+
`git commit` like so:
|
|
48
|
+
|
|
49
|
+
```console
|
|
50
|
+
$ git commit --no-verify -m "WIP: <summary of changes>"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
7. When you're done making changes, check that your changes pass our linting.
|
|
54
|
+
This is all included with `tox`.
|
|
55
|
+
|
|
56
|
+
```console
|
|
57
|
+
$ tox -e ruff
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
8. Push your branch to GitHub.
|
|
61
|
+
|
|
62
|
+
```console
|
|
63
|
+
$ git push origin <prefix>/<name-of-your-branch>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
9. Open the link displayed in the message when pushing your new branch in order
|
|
67
|
+
to submit a pull request. Please follow the template presented to you in the
|
|
68
|
+
web interface to complete your pull request.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## GitHub Pull Request guidelines
|
|
72
|
+
|
|
73
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
74
|
+
|
|
75
|
+
1. If the pull request adds functionality, the `README.md` should be
|
|
76
|
+
updated accordingly.
|
|
77
|
+
|
|
78
|
+
2. Make sure to create a Draft Pull Request. If you are not sure how to do it,
|
|
79
|
+
check
|
|
80
|
+
[here](https://github.blog/2019-02-14-introducing-draft-pull-requests/).
|
|
81
|
+
|
|
82
|
+
3. Note the pull request ID assigned after completing the previous step and
|
|
83
|
+
create a *newsfragment* for letting
|
|
84
|
+
[towncrier](https://towncrier.readthedocs.io/en/stable/index.html) know to update
|
|
85
|
+
the `CHANGELOG.md` on release. Check
|
|
86
|
+
[here](https://towncrier.readthedocs.io/en/stable/markdown.html) on how to go
|
|
87
|
+
about it.
|
|
88
|
+
|
|
89
|
+
4. Someone from the core team will review your work and guide you to a successful
|
|
90
|
+
contribution.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# How To Maintain
|
|
2
|
+
|
|
3
|
+
## Versioning
|
|
4
|
+
|
|
5
|
+
Semantic versioning is followed and automatically controlled by `setuptools_scm`.
|
|
6
|
+
|
|
7
|
+
The CI will publish every tag with the format *v.X.Y.Z* to PyPI as version "X.Y.Z".
|
|
8
|
+
|
|
9
|
+
## Releasing a new version
|
|
10
|
+
|
|
11
|
+
Make sure you have [towncrier](https://towncrier.readthedocs.io/en/stable/index.html)
|
|
12
|
+
installed before proceeding.
|
|
13
|
+
|
|
14
|
+
1. Make sure you are in sync with the `main` branch.
|
|
15
|
+
|
|
16
|
+
```console
|
|
17
|
+
$ git checkout main
|
|
18
|
+
$ git pull --rebase origin main
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
2. Run the following to check changelog is properly generated:
|
|
22
|
+
|
|
23
|
+
```console
|
|
24
|
+
$ tox -e changelog
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. Then, run:
|
|
28
|
+
|
|
29
|
+
```console
|
|
30
|
+
$ towncrier
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
to generate the proper changelog that should be reflected in
|
|
34
|
+
`CHANGELOG.md`.
|
|
35
|
+
|
|
36
|
+
4. Commit the changes, make a PR and merge via a merge commit.
|
|
37
|
+
|
|
38
|
+
5. Make sure you are in sync with the main branch.
|
|
39
|
+
|
|
40
|
+
```console
|
|
41
|
+
$ git checkout main
|
|
42
|
+
$ git pull --rebase origin main
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
6. Create tag (replace `X.Y.Z` with the proper version) on the merged PR's
|
|
46
|
+
merge commit.
|
|
47
|
+
|
|
48
|
+
```console
|
|
49
|
+
$ git tag -a vX.Y.Z -m "Release X.Y.Z"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
7. Check that the build system is creating the proper version
|
|
53
|
+
|
|
54
|
+
```console
|
|
55
|
+
$ SETUPTOOLS_SCM_DEBUG=1 python -m build --outdir dist/ .
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
8. Push the tag
|
|
59
|
+
|
|
60
|
+
```console
|
|
61
|
+
$ git push origin --follow-tags
|
|
62
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
lint:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v6
|
|
12
|
+
- name: Install Python
|
|
13
|
+
uses: actions/setup-python@v6
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.x"
|
|
16
|
+
- name: Install dependencies
|
|
17
|
+
run: |
|
|
18
|
+
python -m pip install --upgrade pip
|
|
19
|
+
python -m pip install ruff
|
|
20
|
+
- name: Run ruff
|
|
21
|
+
run: ruff check --output-format=github julio/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Build and publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-publish:
|
|
10
|
+
name: Build and publish
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
# Needed for PyPI publishing
|
|
14
|
+
id-token: write
|
|
15
|
+
# Needed for GitHub releases
|
|
16
|
+
contents: write
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout source
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v6
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.x"
|
|
24
|
+
- name: Install build
|
|
25
|
+
run: |
|
|
26
|
+
python -m pip install --upgrade pip
|
|
27
|
+
python -m pip install build
|
|
28
|
+
- name: Build package
|
|
29
|
+
run: python -m build
|
|
30
|
+
- name: Publish package to PyPI
|
|
31
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
32
|
+
- name: Make release on GitHub
|
|
33
|
+
uses: softprops/action-gh-release@v2
|
|
34
|
+
with:
|
|
35
|
+
files: |
|
|
36
|
+
dist/*.tar.gz
|
|
37
|
+
dist/*.whl
|
|
38
|
+
generate_release_notes: true
|
|
39
|
+
make_latest: true
|
julio-0.0.0/.gitignore
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
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
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Setuptools SCM
|
|
210
|
+
_version.py
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-ast
|
|
6
|
+
- id: check-docstring-first
|
|
7
|
+
- id: check-executables-have-shebangs
|
|
8
|
+
- id: check-merge-conflict
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: check-toml
|
|
11
|
+
- id: debug-statements
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: trailing-whitespace
|
|
14
|
+
args: [--markdown-linebreak-ext=md]
|
|
15
|
+
- repo: https://github.com/abravalheri/validate-pyproject
|
|
16
|
+
rev: v0.24.1
|
|
17
|
+
hooks:
|
|
18
|
+
- id: validate-pyproject
|
|
19
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
20
|
+
rev: v0.14.8
|
|
21
|
+
hooks:
|
|
22
|
+
- id: ruff-format
|
|
23
|
+
types_or: [python, pyi]
|
|
24
|
+
- id: ruff
|
|
25
|
+
types_or: [python, pyi]
|
|
26
|
+
args: [--output-format, grouped, --show-fixes]
|
|
27
|
+
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
28
|
+
rev: v1.10.0
|
|
29
|
+
hooks:
|
|
30
|
+
- id: python-no-eval
|
|
31
|
+
- id: python-no-log-warn
|
|
32
|
+
- id: rst-backticks
|
|
33
|
+
- id: rst-directive-colons
|
|
34
|
+
- id: rst-inline-touching-normal
|
|
35
|
+
- repo: https://github.com/twisted/towncrier
|
|
36
|
+
rev: 25.8.0
|
|
37
|
+
hooks:
|
|
38
|
+
- id: towncrier-check
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|