Skip to content

Commit 7e8dd94

Browse files
authored
Merge pull request #494 from nats-io/pkg-updates
Package metadata fixes
2 parents db07022 + 93d9d8a commit 7e8dd94

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = ["setuptools>=68.0"]
33
build-backend = "setuptools.build_meta"
44

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

31+
[project.optional-dependencies]
32+
nkeys = ['nkeys']
33+
aiohttp = ['aiohttp']
34+
fast_parse = ['fast-mail-parser']
35+
3136
[tool.setuptools]
3237
zip-safe = true
3338

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
from setuptools import setup
22

33
# Metadata goes in pyproject.toml.
4-
# These are here for GitHub's dependency graph.
4+
# These are here for GitHub's dependency graph and help with setuptools support in some environments.
55
setup(
66
name="nats-py",
7+
version='2.4.0',
8+
license='Apache 2 License',
79
extras_require={
810
'nkeys': ['nkeys'],
911
'aiohttp': ['aiohttp'],
10-
'fast_parse': ['fast-mail-parser'],
11-
}
12+
'fast_parse': ['fast-mail-parser']
13+
},
14+
packages=['nats', 'nats.aio', 'nats.protocol', 'nats.js'],
15+
package_data={"nats": ["py.typed"]},
16+
zip_safe=True
1217
)

0 commit comments

Comments
 (0)