Skip to content

Commit bb1b9b4

Browse files
authored
Merge pull request #120 from release-engineering/replace_poetry_with_pip
Replace poetry with pip
2 parents 2249c65 + b925f39 commit bb1b9b4

File tree

12 files changed

+1533
-1902
lines changed

12 files changed

+1533
-1902
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install poetry
20+
pip install setuptools wheel twine
2121
- name: Build and publish
22+
env:
23+
TWINE_USERNAME: __token__
24+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
2225
run: |
23-
poetry config pypi-token.pypi ${{secrets.PYPI_PASSWORD}}
24-
poetry publish --build
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

.github/workflows/tox-test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
python-version: "3.9"
1414
- name: Install Tox
1515
run: pip install tox
16-
- name: Install Poetry
17-
run: pip install poetry
1816
- name: Run Tox
1917
run: tox -e py39
2018
py313:
@@ -27,8 +25,6 @@ jobs:
2725
python-version: "3.13"
2826
- name: Install Tox
2927
run: pip install tox
30-
- name: Install Poetry
31-
run: pip install poetry
3228
- name: Run Tox
3329
run: tox -e py313
3430
static:
@@ -41,8 +37,6 @@ jobs:
4137
python-version: "3.13"
4238
- name: Install Tox
4339
run: pip install tox
44-
- name: Install Poetry
45-
run: pip install poetry
4640
- name: Run Tox
4741
run: tox -e static
4842
coverage:
@@ -55,8 +49,6 @@ jobs:
5549
python-version: "3.13"
5650
- name: Install Tox
5751
run: pip install tox
58-
- name: Install Poetry
59-
run: pip install poetry
6052
- name: Run Tox
6153
run: tox -e cov
6254
# Codecov Action required installing pytest-cov as it needs coverage.
@@ -80,7 +72,5 @@ jobs:
8072
python-version: "3.13"
8173
- name: Install Tox
8274
run: pip install tox
83-
- name: Install Poetry
84-
run: pip install poetry
8575
- name: Run Tox
8676
run: tox -e docs

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.md
22
include CHANGELOG.md
33
include LICENSE
4+
include requirements.in

poetry.lock

Lines changed: 0 additions & 1826 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
[tool.poetry]
2-
name = "ubi-config"
3-
version = "3.2.1"
4-
description = "A Python Library for accessing Universal Base Image configuration"
5-
license = "GPL-3.0-or-later"
6-
readme = "README.md"
7-
authors = []
8-
repository = "https://github.com/release-engineering/ubi-config"
9-
documentation = "https://release-engineering.github.io/ubi-config"
10-
packages = [{include = "ubiconfig"}]
11-
include = ["ubiconfig/utils/config_schema.json"]
12-
classifiers = [
13-
"Development Status :: 4 - Beta",
14-
"Intended Audience :: Developers",
15-
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
16-
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.9",
18-
"Topic :: Software Development :: Libraries :: Python Modules",
19-
]
20-
211
[build-system]
22-
requires = ["poetry-core>=1.0.0"]
23-
build-backend = "poetry.core.masonry.api"
24-
25-
[tool.poetry.dependencies]
26-
python = ">=3.9,<4.0"
27-
jsonschema = "*"
28-
PyYAML = "*"
29-
requests = "*"
30-
31-
[tool.poetry.group.test]
32-
optional = true
33-
34-
[tool.poetry.group.test.dependencies]
35-
pytest = "*"
36-
mock = "*"
37-
requests-mock = "*"
38-
39-
[tool.poetry.group.dev]
40-
optional = true
41-
42-
[tool.poetry.group.dev.dependencies]
43-
black = "==25.9.0"
44-
pre-commit = "4.3.0"
45-
mypy = "1.18.2"
46-
pylint = "==3.3.9"
47-
pytest-cov = "7.0.0"
48-
bandit = "1.8.6"
49-
# dependencies of dependencies for python 3.6 compatibility
50-
wrapt = "==2.0.0"
51-
52-
[tool.poetry.group.docs]
53-
optional = true
54-
55-
[tool.poetry.group.docs.dependencies]
56-
sphinx = "*"
57-
alabaster = "*"
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

renovate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
"extends": [
44
"config:best-practices", "group:all"
55
],
6+
"pip_requirements": {
7+
"enabled": false
8+
},
9+
"pip-compile": {
10+
"enabled": true,
11+
"managerFilePatterns": ["requirements[^/]*\\.txt$"]
12+
},
613
"packageRules": [
714
{
815
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],

requirements-dev-py313.txt

Lines changed: 743 additions & 0 deletions
Large diffs are not rendered by default.

requirements-dev-py39.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

requirements-dev.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
black == 25.9.0
2+
mock == 5.2.0
3+
pre-commit == 4.3.0
4+
pylint == 3.3.9
5+
pytest-cov == 7.0.0
6+
pytest == 8.4.2
7+
requests-mock == 1.12.1
8+
typing-extensions == 4.13.0
9+
alabaster == 1.0.0; python_version >= '3.10'
10+
sphinx == 8.2.3; python_version >= '3.10'

requirements.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
jsonschema
2+
PyYAML
3+
requests

0 commit comments

Comments
 (0)