Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Move to pyproject.toml (#516)
Browse files Browse the repository at this point in the history
Co-authored-by: Siddharth Sharma <[email protected]>
  • Loading branch information
vfreex and thegreyd authored Mar 21, 2023
1 parent cbd9695 commit f5c0299
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 113 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: venv tox lint test

install:
./venv/bin/pip install -r requirements-dev.txt -r requirements.txt
./venv/bin/pip install .[tests]

venv:
python3.8 -m venv venv
Expand Down
23 changes: 0 additions & 23 deletions bump-elliott

This file was deleted.

86 changes: 86 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[build-system]
requires = [
"setuptools>=65.5.1", # not directly required, pinned by Snyk to avoid a vulnerability
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["elliottlib"]

[tool.setuptools_scm]
write_to = "elliottlib/_version.py"

[project]
dynamic = ["version"]
name="rh-elliott"
authors = [
{name = "AOS ART Team", email = "[email protected]"},
]
description = "CLI tool for managing and automating Red Hat software releases"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["openshift", "errata", "advisory"]
license.file = "LICENSE"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Environment :: Console",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities",
"Natural Language :: English",
]
dependencies = [
"aiohttp[speedups] >= 3.6",
"click >= 8.1.3",
"errata-tool >= 1.29.0",
"future",
"koji >= 1.18",
"semver",
"pygit2 == 1.10.1", # https://github.com/libgit2/pygit2/issues/1176
"python-bugzilla >= 3.2",
"pyyaml",
"requests",
"requests-gssapi ~= 1.2.3",
"ruamel.yaml",
"tenacity",
"jira >= 3.4.1", # https://github.com/pycontribs/jira/issues/1486
]

[project.scripts]
elliott = "elliottlib.cli.__main__:main"

[project.urls]
homepage = "https://github.com/openshift-eng/elliott"
repository = "https://github.com/openshift-eng/elliott.git"

[project.optional-dependencies]
tests = [
# test reqs
"flexmock",
"mock>=4.0.3",
"asynctest>=0.13.0",
# tox reqs
"coverage>=5.3",
"flake8>=3.8.4",
"tox>=3.20.1",
# makefile reqs
"virtualenv>=20.2.2",
"pytest>=6.2.1",
"mypy>=0.812",
"pylint",
]
16 changes: 0 additions & 16 deletions requirements-dev.txt

This file was deleted.

16 changes: 0 additions & 16 deletions requirements.txt

This file was deleted.

51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[tox]
envlist = py38
isolated_build=True

[testenv]
deps =
-r requirements-dev.txt
-r requirements.txt
deps = .[tests]
passenv = *
setenv =
PYTHONPATH={toxinidir}/elliottlib
Expand Down

0 comments on commit f5c0299

Please sign in to comment.