first commit

This commit is contained in:
Yura 2024-09-15 15:12:16 +03:00
commit 417e54da96
5696 changed files with 900003 additions and 0 deletions

View file

@ -0,0 +1,20 @@
Copyright © 2019 Filipe Laíns <filipe.lains@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,152 @@
Metadata-Version: 2.1
Name: build
Version: 1.2.2
Summary: A simple, correct Python build frontend
Author-email: Filipe Laíns <lains@riseup.net>, Bernát Gábor <gaborjbernat@gmail.com>, layday <layday@protonmail.com>, Henry Schreiner <henryschreineriii@gmail.com>
Requires-Python: >= 3.8
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: packaging >= 19.1
Requires-Dist: pyproject_hooks
Requires-Dist: colorama; os_name == "nt"
Requires-Dist: importlib-metadata >= 4.6; python_full_version < "3.10.2"
Requires-Dist: tomli >= 1.1.0; python_version < "3.11"
Requires-Dist: furo >= 2023.08.17 ; extra == "docs"
Requires-Dist: sphinx ~= 7.0 ; extra == "docs"
Requires-Dist: sphinx-argparse-cli >= 1.5 ; extra == "docs"
Requires-Dist: sphinx-autodoc-typehints >= 1.10 ; extra == "docs"
Requires-Dist: sphinx-issues >= 3.0.0 ; extra == "docs"
Requires-Dist: build[uv, virtualenv] ; extra == "test"
Requires-Dist: filelock >= 3 ; extra == "test"
Requires-Dist: pytest >= 6.2.4 ; extra == "test"
Requires-Dist: pytest-cov >= 2.12 ; extra == "test"
Requires-Dist: pytest-mock >= 2 ; extra == "test"
Requires-Dist: pytest-rerunfailures >= 9.1 ; extra == "test"
Requires-Dist: pytest-xdist >= 1.34 ; extra == "test"
Requires-Dist: wheel >= 0.36.0 ; extra == "test"
Requires-Dist: setuptools >= 42.0.0 ; extra == "test" and ( python_version < "3.10")
Requires-Dist: setuptools >= 56.0.0 ; extra == "test" and ( python_version == "3.10")
Requires-Dist: setuptools >= 56.0.0 ; extra == "test" and ( python_version == "3.11")
Requires-Dist: setuptools >= 67.8.0 ; extra == "test" and ( python_version >= "3.12")
Requires-Dist: build[uv] ; extra == "typing"
Requires-Dist: importlib-metadata >= 5.1 ; extra == "typing"
Requires-Dist: mypy ~= 1.9.0 ; extra == "typing"
Requires-Dist: tomli ; extra == "typing"
Requires-Dist: typing-extensions >= 3.7.4.3 ; extra == "typing"
Requires-Dist: uv >= 0.1.18 ; extra == "uv"
Requires-Dist: virtualenv >= 20.0.35 ; extra == "virtualenv"
Project-URL: changelog, https://build.pypa.io/en/stable/changelog.html
Project-URL: homepage, https://build.pypa.io
Project-URL: issues, https://github.com/pypa/build/issues
Project-URL: source, https://github.com/pypa/build
Provides-Extra: docs
Provides-Extra: test
Provides-Extra: typing
Provides-Extra: uv
Provides-Extra: virtualenv
# build
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pypa/build/main.svg)](https://results.pre-commit.ci/latest/github/pypa/build/main)
[![CI test](https://github.com/pypa/build/actions/workflows/test.yml/badge.svg)](https://github.com/pypa/build/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/pypa/build/branch/main/graph/badge.svg)](https://codecov.io/gh/pypa/build)
[![Documentation Status](https://readthedocs.org/projects/pypa-build/badge/?version=latest)](https://build.pypa.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/build.svg)](https://pypi.org/project/build/)
[![Discord](https://img.shields.io/discord/803025117553754132?label=Discord%20chat%20%23build)](https://discord.gg/pypa)
A simple, correct Python build frontend.
See the [documentation](https://build.pypa.io) for more information.
### Installation
`build` can be installed via `pip` or an equivalent via:
```console
$ pip install build
```
### Usage
```console
$ python -m build
```
This will build the package in an isolated environment, generating a
source-distribution and wheel in the directory `dist/`.
See the [documentation](https://build.pypa.io) for full information.
### Common arguments
- `--sdist` (`-s`): Produce just an SDist
- `--wheel` (`-w`): Produce just a wheel
- `-C<option>=<value>`: A Config-setting, the PEP 517 way of passing options to a backend. Can be passed multiple times. Matching options will make a list. Note that setuptools has very limited support.
- `--installer`: Pick an installer for the isolated build (`pip` or `uv`).
- `--no-isolation` (`-n`): Disable build isolation.
- `--skip-dependency-check` (`-x`): Disable dependency checking when not isolated; this should be done if some requirements or version ranges are not required for non-isolated builds.
- `--outdir (`-o`): The output directory (defaults to `dist`)
Some common combinations of arguments:
- `--sdist --wheel` (`-sw`): Produce and SDist and a wheel, both from the source distribution. The default (if no flag is passed) is to build an SDist and then build a wheel _from_ the SDist.
- `-nx`: Disable build isolation and dependency checking. Identical to pip and uv's `--no-build-isolation` flag.
### Integration with other tools
#### pipx
If you use [pipx][], such as in GitHub Actions, the following command will download
and run build in one step:
```console
$ pipx run build
```
#### uv
If you want to use [uv][] to speed up the virtual environment creation, you can use
`--installer=uv`. You can get a Python wheel for `uv` with the `[uv]` extra.
Combining both suggestions yields the following:
```console
$ pipx run build[uv] --installer=uv
```
#### cibuildwheel
If you are using [cibuildwheel][], build is integrated and can be use with either (in your `pyproject.toml`):
```toml
[tool.cibuildwheel]
build-frontend = "build"
```
or
```toml
[tool.cibuildwheel]
build-frontend = "build[uv]"
```
(Be sure to pre-install uv before running cibuildwheel for this one!)
### Code of Conduct
Everyone interacting in the build's codebase, issue trackers, chat rooms, and mailing lists is expected to follow
the [PSF Code of Conduct].
[psf code of conduct]: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
[pipx]: https://pipx.pypa.io
[uv]: https://docs.astral.sh/uv/
[cibuildwheel]: https://cibuildwheel.pypa.io

View file

@ -0,0 +1,35 @@
../../../bin/pyproject-build,sha256=2I64ggQIngLd7kOmnKgGElB7LZVH4lUsoFOWXyE3pl0,262
build-1.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
build-1.2.2.dist-info/LICENSE,sha256=qvminKWQeXHM8H3gJTdds0U5qNXu684gtGCZgFciEG8,1113
build-1.2.2.dist-info/METADATA,sha256=Cf_qA3nK0sUX0iRcfjfRoOFJmMTdQr9xbVin70BoPXw,6246
build-1.2.2.dist-info/RECORD,,
build-1.2.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
build-1.2.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
build-1.2.2.dist-info/entry_points.txt,sha256=MYbbM6JGYubgIjTgcLpNIZpc0PWbi9mRAW7VhtczlS8,105
build/__init__.py,sha256=V-ksyUNV9Nat75ELXGMJnIWKtvMOU9ZUhd_pwe0hFAY,837
build/__main__.py,sha256=pvzlY6-r8VXHSD3h7SgANITl5vDV1ZMdEPx8n_LysuA,14227
build/__pycache__/__init__.cpython-311.pyc,,
build/__pycache__/__main__.cpython-311.pyc,,
build/__pycache__/_builder.cpython-311.pyc,,
build/__pycache__/_ctx.cpython-311.pyc,,
build/__pycache__/_exceptions.cpython-311.pyc,,
build/__pycache__/_types.cpython-311.pyc,,
build/__pycache__/_util.cpython-311.pyc,,
build/__pycache__/env.cpython-311.pyc,,
build/__pycache__/util.cpython-311.pyc,,
build/_builder.py,sha256=Z2uDHZxil43HLfhZ6KKc3qjd5ZNiJfK1Zu6WgJLJTA4,13469
build/_compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
build/_compat/__pycache__/__init__.cpython-311.pyc,,
build/_compat/__pycache__/importlib.cpython-311.pyc,,
build/_compat/__pycache__/tarfile.cpython-311.pyc,,
build/_compat/__pycache__/tomllib.cpython-311.pyc,,
build/_compat/importlib.py,sha256=mdUYYn5ciavBQ6zFE-2ghFDotKZC4QufbKMyPg5h3WI,467
build/_compat/tarfile.py,sha256=8-sDnbG-9mZ5OsmSVPArxE6KI6dPe0wX2yf4etDSqxk,816
build/_compat/tomllib.py,sha256=JT-q9fBu_vOt4fPWKh2bIKvfko633z_74F_TP_Y17cs,255
build/_ctx.py,sha256=QEBzQYYT2Buyj0eHkTKIQ3GK3LEV6rEC-2iRiuU4sT8,2880
build/_exceptions.py,sha256=lxEYr42eG-wgfLbcMhlks4cc0u-P3zMM8sbWraINwI4,1625
build/_types.py,sha256=if2-I_0F1HGWhhufZqZiBDvAd_niCMSKaHAmWHUIseg,673
build/_util.py,sha256=D4xFxoA4PT27xalv9a-5flCtZgZHNFaKpiIM2XpdM9s,2325
build/env.py,sha256=lDe3HfqNr4BI9mMFsGYp4YbF_IJyFBfO74OftF81KmM,13473
build/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
build/util.py,sha256=iBHPpU128o3EbxdFOTSO3a4NktO9DnTWiJoXBedqmu0,1776

View file

@ -0,0 +1,4 @@
Wheel-Version: 1.0
Generator: flit 3.9.0
Root-Is-Purelib: true
Tag: py3-none-any

View file

@ -0,0 +1,6 @@
[console_scripts]
pyproject-build=build.__main__:entrypoint
[pipx.run]
build=build.__main__:entrypoint