Skip to content

Commit 9b1f9c8

Browse files
authored
Merge pull request #139 from rsocket/pyproject
implemented build using pyporject.toml and setup.cfg
2 parents 5ec09be + b160f05 commit 9b1f9c8

File tree

5 files changed

+82
-67
lines changed

5 files changed

+82
-67
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"

rsocket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.4.1'
1+
__version__ = '0.4.10'

setup.cfg

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,66 @@
22
universal = 0
33

44
[metadata]
5-
license_file = LICENSE
5+
name = rsocket
6+
version = attr: rsocket.__version__
7+
license = MIT
8+
url = https://github.com/rsocket/rsocket-py
9+
author = Gabriel Shaar
10+
author_email = workofishi@pm.me
11+
long_description = file: README.md
12+
long_description_content_type = text/markdown
13+
description = Python RSocket library
14+
zip_safe = True
15+
classifiers =
16+
Development Status :: 3 - Beta
17+
Programming Language :: Python
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
22+
Environment :: Web Environment
23+
License :: OSI Approved :: MIT License
24+
Natural Language :: English
25+
Topic :: Internet :: WWW/HTTP :: Dynamic Content
26+
Topic :: Internet :: WWW/HTTP
27+
Topic :: Internet
28+
Topic :: Software Development :: Libraries :: Application Frameworks
29+
Topic :: Software Development :: Libraries :: Python Modules
30+
31+
[options]
32+
packages = find:
33+
python_requires = >=3.8
34+
35+
[options.packages.find]
36+
where = .
37+
include =
38+
rsocket*
39+
reactivestreams*
640

741
[aliases]
842
test = pytest
943

44+
[project_urls]
45+
Documentation = https://rsocket.io/guides/rsocket-py
46+
Changelog = https://github.com/rsocket/rsocket-py/blob/master/CHANGELOG.rst
47+
48+
49+
[options.extras_require]
50+
rx = Rx>=3.0.0
51+
reactivex = reactivex>=4.0.0
52+
aiohttp = aiohttp>=3.0.0
53+
quart = quart>=0.15.0
54+
quic = aioquic>=0.9.0
55+
cli = asyncclick>=8.0.0
56+
optimized = cbitstruct>=1.0.9
57+
cloudevents =
58+
cloudevents>=1.9.0
59+
pydantic>=1.10.0
60+
61+
[options.entry_points]
62+
cli.console_scripts =
63+
rsocket-py = rsocket.cli.command:command
64+
1065
[tool:pytest]
1166
addopts = --verbose
1267
asyncio_mode = auto

setup.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

tox.ini

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
[tox]
2-
envlist = py38,py39,py310
2+
envlist = py38,py39,py310,py311
33

44
[testenv]
5-
deps = flake8==4.0.1
6-
pytest==7.1.0
7-
pytest-asyncio==0.18.2
8-
pytest-timeout==2.1.0
9-
asyncstdlib==3.10.3
10-
pytest-cov==3.0.0
11-
coverage==6.3.2
12-
Rx==3.2.0
13-
aiohttp==3.8.1
14-
quart==0.17.0
5+
deps = Rx==3.2.0
6+
aiohttp==3.8.4
7+
aioquic==0.9.20
8+
asyncclick==8.1.3.4
9+
asyncstdlib==3.10.6
10+
coverage==6.5.0
1511
coveralls==3.3.1
16-
aioquic==0.9.19
12+
decoy==2.0.1
13+
flake8==5.0.4
14+
pytest-asyncio==0.21.0
15+
pytest-cov==4.0.0
16+
pytest-profiling==1.7.0
17+
pytest-rerunfailures==11.1.2
18+
pytest-timeout==2.1.0
19+
pytest-xdist==3.2.1
20+
pytest==7.3.1
21+
quart==0.18.4
22+
reactivex==4.0.4
23+
starlette==0.26.1
24+
cbitstruct==1.0.9
25+
cloudevents==1.9.0
26+
pydantic==1.10.7
1727

1828
commands = pytest --cov-report=html --cov --ignore=examples

0 commit comments

Comments
 (0)