Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel twine
pip install --upgrade setuptools setuptools-scm wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build -nwsx
twine upload dist/*
5 changes: 2 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pycodestyle isort pylint yapf
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --upgrade pycodestyle isort pylint yapf pytest setuptools setuptools-scm wheel build
- name: Check pycodestyle
run: |
pycodestyle --ignore E501,E402 --exclude=.git,dev3 sshpubkeys tests
Expand All @@ -29,7 +28,7 @@ jobs:
pylint sshpubkeys tests
- name: Run tests
run: |
python3 setup.py test
pytest tests
- name: Check formatting
run: |
isort --recursive sshpubkeys tests; yapf --recursive -i .
Expand Down
41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[project]
name = "sshpubkeys"
authors = [{name = "Olli Jarva", email = "[email protected]"}]
license = {text = "BSD"}
description = "SSH public key parser"
keywords = ["ssh", "pubkey", "public", "key", "openssh", "ssh-rsa", "ssh-dss", "ssh-ed25519"]
readme = "README.rst"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Security",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3"
dependencies = ["cryptography>=2.5"]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/ojarva/python-sshpubkeys"

[project.optional-dependencies]
dev = ["twine", "wheel", "yapf"]

[tool.setuptools]
packages = ["sshpubkeys"]
include-package-data = false

[tool.setuptools_scm]

32 changes: 32 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
[metadata]
name = sshpubkeys
author = Olli Jarva
author_email = [email protected]
license = BSD
description = SSH public key parser
keywords = ssh, pubkey, public, key, openssh, ssh-rsa, ssh-dss, ssh-ed25519
url = https://github.com/ojarva/python-sshpubkeys
long_description = file: README.rst
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: System Administrators
Topic :: Security
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: PyPy

[options]
packages = sshpubkeys
install_requires = cryptography>=2.5
python_requires = >=3
test_suite = tests

[options.extras_require]
dev = twine; wheel; yapf

[bdist_wheel]
universal=1
41 changes: 0 additions & 41 deletions setup.py

This file was deleted.