Skip to content

Commit

Permalink
Proper build system and requirements setup
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Nov 20, 2023
1 parent 6be4ead commit 18e72f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 50 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RUN microdnf install --nodocs -y python3.11 unzip tar git-core && \
curl -ksL https://certs.corp.redhat.com/certs/2015-IT-Root-CA.pem -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt && \
curl -ksL https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem -o /etc/pki/ca-trust/source/anchors/2022-IT-Root-CA.pem && \
update-ca-trust && \
pip install --no-cache-dir -U pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir -U pip && \
pip install --no-cache-dir . && \
microdnf remove -y git-core && \
microdnf clean all && \
rpm -e --nodeps sqlite-libs krb5-libs libxml2 readline pam openssh openssh-clients && \
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
select = ["E", "F", "W", "UP", "C", "D"]
ignore = ["D211", "C401", "D213", "UP006", "UP007", "UP009", "UP015", "UP035"]
Expand Down
39 changes: 0 additions & 39 deletions requirements.txt

This file was deleted.

16 changes: 7 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[metadata]
name = dvo-extractor
version = 0.1.0
author = Red Hat Inc.
description-file = README.md
long_description = file: README.md
license = Apache 2.0
long_description_content_type = text/markdown
home-page = https://github.com/RedHatInsights/dvo-extractor
url = https://github.com/RedHatInsights/dvo-extractor
classifier =
Intended Audience :: Information Technology
Intended Audience :: System Administrators
Expand All @@ -20,13 +21,10 @@ classifier =
zip_safe = False
packages = find:
install_requires =
app-common-python
ccx-messaging>=3.4.2
insights-core-messaging
setup_requires =
setuptools
setuptools_scm
wheel
app-common-python>=0.2.6
ccx-messaging @ git+https://github.com/RedHatInsights/insights-ccx-messaging@v3.4.2
insights-core>=3.2.23
insights-core-messaging @ git+https://github.com/RedHatInsights/insights-core-messaging

[options.packages.find]
exclude =
Expand Down

0 comments on commit 18e72f8

Please sign in to comment.