Skip to content

Commit

Permalink
fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky committed Nov 18, 2024
1 parent 89b8460 commit fcbc568
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/venv/
/dist/
/build/
/minisign.egg-info/
/py_minisign.egg-info/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Frank Denis <j at pureftpd dot org>
Copyright (c) 2024 Frank Denis <j at pureftpd dot org>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.PHONY: venv

NAME := minisign

venvdir := ./venv

all: venv
Expand All @@ -21,6 +19,10 @@ venv:

clean:
rm -rf $(venvdir)/
rm -rf ./build/
rm -rf ./dist/
rm -rf ./minisign.egg-info/
rm -rf ./py_minisign.egg-info/

test:
python3 -m unittest
2 changes: 1 addition & 1 deletion minisign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Minisign
"""

__version__ = '0.11.1'
__version__ = '0.12.0'

from .exceptions import (
Error,
Expand Down
32 changes: 28 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
"wheel",
[project]
name = "py-minisign"
dynamic = ["version"]
authors = [
{ name = "Frank Denis" },
{ name = "lucky" },
]
description = "Python minisign library"
readme = "README.rst"
requires-python = ">= 3.8"
dependencies = [
"cryptography >= 43.0.1",
]

classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://github.com/x13a/py-minisign"
Issues = "https://github.com/x13a/py-minisign/issues"

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = { attr = "minisign.__version__" }
11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

Empty file added tests/__init__.py
Empty file.
3 changes: 1 addition & 2 deletions minisign/test_minisign.py → tests/test_minisign.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import secrets
import unittest

from .minisign import (
from minisign.minisign import (
KEYNUM_SK_LEN,
KeyPair,
PublicKey,
Expand All @@ -13,7 +13,6 @@


class MinisignTestCase(unittest.TestCase):

def test_verify_pure(self):
sig = Signature.from_bytes(
b'untrusted comment: signature from minisign secret key\n'
Expand Down

0 comments on commit fcbc568

Please sign in to comment.