Skip to content

Commit

Permalink
Merge pull request #494 from nats-io/pkg-updates
Browse files Browse the repository at this point in the history
Package metadata fixes
  • Loading branch information
wallyqs authored Sep 11, 2023
2 parents db07022 + 93d9d8a commit 7e8dd94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -10,7 +10,7 @@ authors = [
description = "NATS client for Python"
dynamic = ["version"]
readme = "README.md"
license = { file="LICENSE" }
license = { text = "Apache 2 License" }
requires-python = ">=3.7"
classifiers = [
'License :: OSI Approved :: Apache Software License',
Expand All @@ -28,6 +28,11 @@ classifiers = [
"Homepage" = "https://github.com/nats-io/nats.py"
"Bug Tracker" = "https://github.com/nats-io/nats.py/issues"

[project.optional-dependencies]
nkeys = ['nkeys']
aiohttp = ['aiohttp']
fast_parse = ['fast-mail-parser']

[tool.setuptools]
zip-safe = true

Expand Down
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
from setuptools import setup

# Metadata goes in pyproject.toml.
# These are here for GitHub's dependency graph.
# These are here for GitHub's dependency graph and help with setuptools support in some environments.
setup(
name="nats-py",
version='2.4.0',
license='Apache 2 License',
extras_require={
'nkeys': ['nkeys'],
'aiohttp': ['aiohttp'],
'fast_parse': ['fast-mail-parser'],
}
'fast_parse': ['fast-mail-parser']
},
packages=['nats', 'nats.aio', 'nats.protocol', 'nats.js'],
package_data={"nats": ["py.typed"]},
zip_safe=True
)

0 comments on commit 7e8dd94

Please sign in to comment.