devpi-process 1.0.1__tar.gz → 1.0.2__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 (24) hide show
  1. devpi_process-1.0.2/.github/workflows/check.yaml +51 -0
  2. devpi_process-1.0.2/.github/workflows/release.yaml +48 -0
  3. {devpi_process-1.0.1 → devpi_process-1.0.2}/.pre-commit-config.yaml +3 -3
  4. {devpi_process-1.0.1 → devpi_process-1.0.2}/PKG-INFO +7 -9
  5. {devpi_process-1.0.1 → devpi_process-1.0.2}/README.md +1 -3
  6. {devpi_process-1.0.1 → devpi_process-1.0.2}/pyproject.toml +1 -1
  7. {devpi_process-1.0.1 → devpi_process-1.0.2}/src/devpi_process/_version.py +2 -2
  8. {devpi_process-1.0.1 → devpi_process-1.0.2}/tox.ini +19 -24
  9. devpi_process-1.0.1/.github/workflows/check.yml +0 -78
  10. devpi_process-1.0.1/.github/workflows/release.yml +0 -32
  11. {devpi_process-1.0.1 → devpi_process-1.0.2}/.github/FUNDING.yml +0 -0
  12. {devpi_process-1.0.1 → devpi_process-1.0.2}/.github/SECURITY.md +0 -0
  13. {devpi_process-1.0.1 → devpi_process-1.0.2}/.github/dependabot.yml +0 -0
  14. {devpi_process-1.0.1 → devpi_process-1.0.2}/.github/release.yml +0 -0
  15. {devpi_process-1.0.1 → devpi_process-1.0.2}/.gitignore +0 -0
  16. {devpi_process-1.0.1 → devpi_process-1.0.2}/.markdownlint.yaml +0 -0
  17. {devpi_process-1.0.1 → devpi_process-1.0.2}/CHANGELOG.md +0 -0
  18. {devpi_process-1.0.1 → devpi_process-1.0.2}/CODE_OF_CONDUCT.md +0 -0
  19. {devpi_process-1.0.1 → devpi_process-1.0.2}/LICENSE.txt +0 -0
  20. {devpi_process-1.0.1 → devpi_process-1.0.2}/src/devpi_process/__init__.py +0 -0
  21. {devpi_process-1.0.1 → devpi_process-1.0.2}/src/devpi_process/py.typed +0 -0
  22. {devpi_process-1.0.1 → devpi_process-1.0.2}/tests/demo_pkg_inline/build.py +0 -0
  23. {devpi_process-1.0.1 → devpi_process-1.0.2}/tests/demo_pkg_inline/pyproject.toml +0 -0
  24. {devpi_process-1.0.1 → devpi_process-1.0.2}/tests/test_devpi_process.py +0 -0
@@ -0,0 +1,51 @@
1
+ name: check
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches: ["main"]
6
+ tags-ignore: ["**"]
7
+ pull_request:
8
+ schedule:
9
+ - cron: "0 8 * * *"
10
+
11
+ concurrency:
12
+ group: check-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ env:
22
+ - "3.13"
23
+ - "3.12"
24
+ - "3.11"
25
+ - "3.10"
26
+ - "3.9"
27
+ - "3.8"
28
+ - type
29
+ - dev
30
+ - pkg_meta
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ with:
34
+ fetch-depth: 0
35
+ - name: Install the latest version of uv
36
+ uses: astral-sh/setup-uv@v3
37
+ with:
38
+ enable-cache: true
39
+ cache-dependency-glob: "pyproject.toml"
40
+ github-token: ${{ secrets.GITHUB_TOKEN }}
41
+ - name: Install tox
42
+ run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
43
+ - name: Install Python
44
+ if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
45
+ run: uv python install --python-preference only-managed ${{ matrix.env }}
46
+ - name: Setup test suite
47
+ run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
48
+ - name: Run test suite
49
+ run: tox run --skip-pkg-install -e ${{ matrix.env }}
50
+ env:
51
+ PYTEST_ADDOPTS: "-vv --durations=5"
@@ -0,0 +1,48 @@
1
+ name: Release to PyPI
2
+ on:
3
+ push:
4
+ tags: ["*"]
5
+
6
+ env:
7
+ dists-artifact-name: python-package-distributions
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
+ - name: Install the latest version of uv
17
+ uses: astral-sh/setup-uv@v3
18
+ with:
19
+ enable-cache: true
20
+ cache-dependency-glob: "pyproject.toml"
21
+ github-token: ${{ secrets.GITHUB_TOKEN }}
22
+ - name: Build package
23
+ run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
24
+ - name: Store the distribution packages
25
+ uses: actions/upload-artifact@v4
26
+ with:
27
+ name: ${{ env.dists-artifact-name }}
28
+ path: dist/*
29
+
30
+ release:
31
+ needs:
32
+ - build
33
+ runs-on: ubuntu-latest
34
+ environment:
35
+ name: release
36
+ url: https://pypi.org/project/devpi-process/${{ github.ref_name }}
37
+ permissions:
38
+ id-token: write
39
+ steps:
40
+ - name: Download all the dists
41
+ uses: actions/download-artifact@v4
42
+ with:
43
+ name: ${{ env.dists-artifact-name }}
44
+ path: dist/
45
+ - name: Publish to PyPI
46
+ uses: pypa/gh-action-pypi-publish@v1.10.1
47
+ with:
48
+ attestations: true
@@ -15,16 +15,16 @@ repos:
15
15
  - id: codespell
16
16
  additional_dependencies: ["tomli>=2.0.1"]
17
17
  - repo: https://github.com/tox-dev/tox-ini-fmt
18
- rev: "1.3.2"
18
+ rev: "1.4.0"
19
19
  hooks:
20
20
  - id: tox-ini-fmt
21
21
  args: ["-p", "fix"]
22
22
  - repo: https://github.com/tox-dev/pyproject-fmt
23
- rev: "2.2.1"
23
+ rev: "2.2.3"
24
24
  hooks:
25
25
  - id: pyproject-fmt
26
26
  - repo: https://github.com/astral-sh/ruff-pre-commit
27
- rev: "v0.6.4"
27
+ rev: "v0.6.5"
28
28
  hooks:
29
29
  - id: ruff-format
30
30
  - id: ruff
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: devpi-process
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: devpi process provides a programmatic API to create and use a devpi server process
5
5
  Project-URL: Homepage, https://github.com/tox-dev/devpi-process#readme
6
6
  Project-URL: Source, https://github.com/tox-dev/devpi-process
@@ -31,11 +31,11 @@ Requires-Python: >=3.8
31
31
  Requires-Dist: devpi-client>=7.1
32
32
  Requires-Dist: devpi-server>=6.12.1
33
33
  Requires-Dist: typing-extensions>=4.12.2; python_version < '3.11'
34
- Provides-Extra: test
35
- Requires-Dist: covdefaults>=2.3; extra == 'test'
36
- Requires-Dist: httpx>=0.27.2; extra == 'test'
37
- Requires-Dist: pytest-cov>=5; extra == 'test'
38
- Requires-Dist: pytest>=8.3.2; extra == 'test'
34
+ Provides-Extra: testing
35
+ Requires-Dist: covdefaults>=2.3; extra == 'testing'
36
+ Requires-Dist: httpx>=0.27.2; extra == 'testing'
37
+ Requires-Dist: pytest-cov>=5; extra == 'testing'
38
+ Requires-Dist: pytest>=8.3.2; extra == 'testing'
39
39
  Description-Content-Type: text/markdown
40
40
 
41
41
  # devpi-process
@@ -45,9 +45,7 @@ Description-Content-Type: text/markdown
45
45
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)
46
46
  [![Downloads](https://static.pepy.tech/badge/devpi-process/month)](https://pepy.tech/project/devpi-process)
47
47
  [![PyPI - License](https://img.shields.io/pypi/l/devpi-process?style=flat-square)](https://opensource.org/licenses/MIT)
48
- [![check](https://github.com/tox-dev/devpi-process/workflows/check/badge.svg)](https://github.com/tox-dev/devpi-process/actions?query=workflow%3Acheck)
49
- [![Code style:
50
- black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
48
+ [![check](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml)
51
49
 
52
50
  Allows you to create [devpi](https://devpi.net/docs/devpi/devpi/stable/+d/index.html) server process with indexes, and
53
51
  upload artifacts to that programmatically.
@@ -5,9 +5,7 @@
5
5
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/devpi-process?style=flat-square)](https://pypi.org/project/devpi-process)
6
6
  [![Downloads](https://static.pepy.tech/badge/devpi-process/month)](https://pepy.tech/project/devpi-process)
7
7
  [![PyPI - License](https://img.shields.io/pypi/l/devpi-process?style=flat-square)](https://opensource.org/licenses/MIT)
8
- [![check](https://github.com/tox-dev/devpi-process/workflows/check/badge.svg)](https://github.com/tox-dev/devpi-process/actions?query=workflow%3Acheck)
9
- [![Code style:
10
- black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
8
+ [![check](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/devpi-process/actions/workflows/check.yaml)
11
9
 
12
10
  Allows you to create [devpi](https://devpi.net/docs/devpi/devpi/stable/+d/index.html) server process with indexes, and
13
11
  upload artifacts to that programmatically.
@@ -51,7 +51,7 @@ dependencies = [
51
51
  "devpi-server>=6.12.1",
52
52
  "typing-extensions>=4.12.2; python_version<'3.11'",
53
53
  ]
54
- optional-dependencies.test = [
54
+ optional-dependencies.testing = [
55
55
  "covdefaults>=2.3",
56
56
  "httpx>=0.27.2",
57
57
  "pytest>=8.3.2",
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.0.1'
16
- __version_tuple__ = version_tuple = (1, 0, 1)
15
+ __version__ = version = '1.0.2'
16
+ __version_tuple__ = version_tuple = (1, 0, 2)
@@ -4,42 +4,40 @@ requires =
4
4
  tox-uv>=1.11.3
5
5
  env_list =
6
6
  fix
7
- type
8
- readme
9
7
  3.13
10
8
  3.12
11
9
  3.11
12
10
  3.10
13
11
  3.9
14
12
  3.8
13
+ type
14
+ pkg_meta
15
15
  skip_missing_interpreters = true
16
16
 
17
17
  [testenv]
18
- description = run the unit tests with pytest under {basepython}
18
+ description = run the unit tests with pytest under {base_python}
19
19
  package = wheel
20
20
  wheel_build_env = .pkg
21
21
  extras =
22
- test
22
+ testing
23
+ pass_env =
24
+ DIFF_AGAINST
25
+ PYTEST_*
23
26
  set_env =
24
- COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
25
- COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
26
- _COVERAGE_SRC = {envsitepackagesdir}/devpi_process
27
+ COVERAGE_FILE = {work_dir}/.coverage.{env_name}
27
28
  commands =
28
- pytest {tty:--color=yes} {posargs: \
29
- --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}devpi_process \
30
- --cov {toxinidir}{/}tests --cov-fail-under=100 \
29
+ python -m pytest {tty:--color=yes} {posargs: \
30
+ --cov {env_site_packages_dir}{/}devpi_process --cov {tox_root}{/}tests \
31
31
  --cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
32
- --cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
32
+ --cov-report html:{env_tmp_dir}{/}htmlcov --cov-report xml:{work_dir}{/}coverage.{env_name}.xml \
33
+ --junitxml {work_dir}{/}junit.{env_name}.xml \
33
34
  tests}
34
35
 
35
36
  [testenv:fix]
36
- description = run static analysis and style check using flake8
37
+ description = format the code base to adhere to our styles, and complain about what we cannot do automatically
37
38
  skip_install = true
38
39
  deps =
39
- pre-commit-uv>=4.1
40
- pass_env =
41
- HOMEPATH
42
- PROGRAMDATA
40
+ pre-commit-uv>=4.1.1
43
41
  commands =
44
42
  pre-commit run --all-files --show-diff-on-failure
45
43
 
@@ -51,24 +49,21 @@ commands =
51
49
  mypy src
52
50
  mypy tests
53
51
 
54
- [testenv:readme]
52
+ [testenv:pkg_meta]
55
53
  description = check that the long description is valid
56
54
  skip_install = true
57
55
  deps =
58
- build[uv]>=1.2.2
59
56
  check-wheel-contents>=0.6
60
57
  twine>=5.1.1
58
+ uv>=0.4.10
61
59
  commands =
62
- pyproject-build --installer uv --outdir {envtmpdir} --sdist --wheel .
63
- twine check {envtmpdir}{/}*
64
- check-wheel-contents --no-config {envtmpdir}
60
+ uv build --sdist --wheel --out-dir {env_tmp_dir} .
61
+ twine check {env_tmp_dir}{/}*
62
+ check-wheel-contents --no-config {env_tmp_dir}
65
63
 
66
64
  [testenv:dev]
67
65
  description = generate a DEV environment
68
66
  package = editable
69
- extras =
70
- docs
71
- test
72
67
  commands =
73
68
  uv pip tree
74
69
  python -c 'import sys; print(sys.executable)'
@@ -1,78 +0,0 @@
1
- name: check
2
- on:
3
- workflow_dispatch:
4
- push:
5
- branches: ["main"]
6
- tags-ignore: ["**"]
7
- pull_request:
8
- schedule:
9
- - cron: "0 8 * * *"
10
-
11
- concurrency:
12
- group: check-${{ github.ref }}
13
- cancel-in-progress: true
14
-
15
- jobs:
16
- test:
17
- name: test ${{ matrix.py }}
18
- runs-on: ubuntu-latest
19
- strategy:
20
- fail-fast: false
21
- matrix:
22
- py:
23
- - "3.13"
24
- - "3.12"
25
- - "3.11"
26
- - "3.10"
27
- - "3.9"
28
- - "3.8"
29
- steps:
30
- - name: Install the latest version of uv
31
- uses: astral-sh/setup-uv@v2
32
- with:
33
- enable-cache: true
34
- github-token: ${{ secrets.GITHUB_TOKEN }}
35
- - name: setup python for tox
36
- uses: actions/setup-python@v5
37
- with:
38
- python-version: "3.12"
39
- - name: install tox
40
- run: uv pip install tox tox-uv --system
41
- - uses: actions/checkout@v4
42
- - name: setup python for test ${{ matrix.py }}
43
- uses: actions/setup-python@v5
44
- with:
45
- python-version: ${{ matrix.py }}
46
- allow-prereleases: true
47
- - name: setup test suite
48
- run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }}
49
- - name: run test suite
50
- run: tox run --skip-pkg-install -e ${{ matrix.py }}
51
-
52
- check:
53
- name: tox env ${{ matrix.tox_env }}
54
- runs-on: ubuntu-latest
55
- strategy:
56
- fail-fast: false
57
- matrix:
58
- tox_env:
59
- - type
60
- - dev
61
- - readme
62
- steps:
63
- - name: Install the latest version of uv
64
- uses: astral-sh/setup-uv@v2
65
- with:
66
- enable-cache: true
67
- github-token: ${{ secrets.GITHUB_TOKEN }}
68
- - uses: actions/checkout@v4
69
- - name: setup Python 3.12
70
- uses: actions/setup-python@v5
71
- with:
72
- python-version: "3.12"
73
- - name: install tox
74
- run: uv pip install tox tox-uv --system
75
- - name: Setup test suite
76
- run: tox -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }}
77
- - name: Run test suite
78
- run: tox --skip-pkg-install -e ${{ matrix.tox_env }}
@@ -1,32 +0,0 @@
1
- name: Release to PyPI
2
- on:
3
- push:
4
- tags: ["*"]
5
-
6
- jobs:
7
- release:
8
- runs-on: ubuntu-latest
9
- environment:
10
- name: release
11
- url: https://pypi.org/p/devpi-process
12
- permissions:
13
- id-token: write
14
- steps:
15
- - name: Setup python to build package
16
- uses: actions/setup-python@v5
17
- with:
18
- python-version: "3.12"
19
- - name: Install the latest version of uv
20
- uses: astral-sh/setup-uv@v2
21
- with:
22
- enable-cache: true
23
- github-token: ${{ secrets.GITHUB_TOKEN }}
24
- - name: Install build
25
- run: uv pip install build[uv] --system
26
- - uses: actions/checkout@v4
27
- with:
28
- fetch-depth: 0
29
- - name: Build package
30
- run: pyproject-build --installer uv --sdist --wheel . --outdir dist
31
- - name: Publish to PyPI
32
- uses: pypa/gh-action-pypi-publish@v1.10.1
File without changes
File without changes