package setup

This commit is contained in:
jeffthibault
2022-12-29 14:58:19 -05:00
parent c55dee5755
commit fb469bdde6
5 changed files with 41 additions and 27 deletions

4
.gitignore vendored
View File

@@ -1,3 +1,5 @@
venv/
__pycache__/
nostr.egg-info/
nostr.egg-info/
dist/
nostr/_version.py

36
pyproject.toml Normal file
View File

@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "nostr"
authors = [
{ name="Jeff Thibault", email="jdthibault2@gmail.com" },
]
description = "A Python library for making Nostr clients"
urls = { Homepage = "https://github.com/jeffthibault/python-nostr" }
readme = "README.md"
requires-python = ">3.6.0"
dependencies = [
"cffi>=1.15.0",
"cryptography>=37.0.4",
"pycparser>=2.21",
"secp256k1>=0.14.0",
"websocket-client>=1.3.3",
]
license = {file = "LICENSE"}
classifiers=[
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
]
dynamic=["version"]
[tool.setuptools_scm]
write_to = "nostr/_version.py"
[project.optional-dependencies]
test = [
"pytest >=7.2.0",
"pytest-cov[all]"
]

View File

@@ -1,5 +0,0 @@
cffi==1.15.0
cryptography==37.0.4
pycparser==2.21
secp256k1==0.14.0
websocket-client==1.3.3

View File

@@ -1,21 +1,3 @@
from setuptools import setup, find_packages
from setuptools import setup
with open("README.md", "r") as f:
long_description = f.read()
setup(
name='nostr',
version="0.0.1",
packages=find_packages(include=['nostr']),
python_requires='>3.6.0',
url='https://github.com/jeffthibault/python-nostr',
description="A Python library for making Nostr clients.",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
],
)
setup()

View File

@@ -1 +0,0 @@
pytest>=7.2.0