Skip to content

Commit

Permalink
Merge pull request #43 from cryptomilk/asn-pyproject
Browse files Browse the repository at this point in the history
Migrate from setup.py to pyproject
  • Loading branch information
cryptomilk authored Oct 25, 2024
2 parents 622b1f1 + c4ebc71 commit ed7d87c
Show file tree
Hide file tree
Showing 33 changed files with 82 additions and 88 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Run Python Tests
on:
push:
Expand All @@ -10,16 +11,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libkrb5-dev
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
- name: Run tests
run: pushd tests; python3 runner.py; popd
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "cepces"
version = "0.3.9"
requires-python = ">=3.8"
dependencies = [
"cryptography >= 1.2",
"requests",
"requests_gssapi >= 1.2.2"
]
license = { file = "LICENSE" }
authors = [
{ name = "Daniel Uvehag", email = "[email protected]" }
]
keywords = ["certificate ca cep ces adcs wstep xcep"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Topic :: System :: Systems Administration",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
description = "CEP/CES library."
readme = "README.rst"

[project.urls]
"Homepage" = "https://github.com/openSUSE/cepces"
"Bug Tracker" = "https://github.com/openSUSE/cepces/issues"

[tool.setuptools.data-files]
"libexec/certmonger" = ["bin/cepces-submit"]
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tox]
requires =
tox>=4
env_list = lint, type, 3.9, 3.10, 3.11, 3.12, 3.13

[gh-actions]
python =
3.9: py39
3.10: py310, mypy
3.11: py311, mypy
3.12: py312, mypy
3.13: py313, mypy

[testenv]
description = run unit tests
changedir = tests
commands = {envpython} runner.py

; [testenv:lint]
; description = run linters
; skip_install = true
; deps =
; black
; commands = black {posargs:.}
;
; [testenv:type]
; description = run type checks
; deps =
; mypy
; commands =
; mypy {posargs:src tests}

0 comments on commit ed7d87c

Please sign in to comment.