Skip to content

Commit c154749

Browse files
committed
Update package metadata
Signed-off-by: wiseaidev <[email protected]>
1 parent 5c770aa commit c154749

11 files changed

+121
-132
lines changed

.bumpversion.cfg

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[bumpversion]
2+
current_version = 1.2.4
3+
commit = True
4+
tag = True
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*))?
6+
serialize =
7+
{major}.{minor}.{patch}-{stage}
8+
{major}.{minor}.{patch}
9+
10+
[bumpversion:part:stage]
11+
optional_value = stable
12+
first_value = stable
13+
values =
14+
alpha
15+
beta
16+
stable
17+
18+
[bumpversion:file:b_rabbit/__init__.py]
19+
search = __version__ = '{current_version}'
20+
replace = __version__ = '{new_version}'

CONTRIBUTING.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Ready to contribute? Here's how to set up `b_rabbit` for local development.
6868

6969
$ mkvirtualenv b_rabbit
7070
$ cd b_rabbit/
71-
$ python setup.py develop
71+
$ python -m pip install -e ".[dev]"
7272

7373
4. Create a branch for local development::
7474

@@ -80,8 +80,8 @@ Ready to contribute? Here's how to set up `b_rabbit` for local development.
8080
tests, including testing other Python versions with tox::
8181

8282
$ flake8 b_rabbit tests
83-
$ python setup.py test or pytest
84-
$ tox
83+
$ python -m pip install -e ".[test]"
84+
$ tox -e py38
8585

8686
To get flake8 and tox, just pip install them into your virtualenv.
8787

MANIFEST.in

-11
This file was deleted.

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ release: dist ## package and upload a release
7777
twine upload dist/*
7878

7979
dist: clean ## builds source and wheel package
80-
python setup.py sdist
81-
python setup.py bdist_wheel
80+
python -m build
8281
ls -l dist
8382

8483
install: clean ## install the package to the active Python's site-packages
85-
python setup.py install
84+
python -m pip install .

docs/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Once you have a copy of the source, you can install it with:
4444

4545
.. code-block:: console
4646
47-
$ python setup.py install
47+
$ python -m pip install .
4848
4949
5050
.. _Github repo: https://github.com/nidhaloff/b_rabbit

pyproject.toml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
[build-system]
2+
requires = ["hatchling>=1.8.0"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "b_rabbit"
7+
dynamic = ["version"]
8+
description = "An abstract interface for RabbitMQ communication"
9+
readme = "README.rst"
10+
license = "MIT"
11+
requires-python = ">=3.4"
12+
authors = [
13+
{ name = "Nidhal Baccouri", email = "[email protected]" },
14+
]
15+
keywords = [
16+
"b_rabbit",
17+
"rabbitmq",
18+
"RabbitMQ",
19+
"Microservices",
20+
"SOA",
21+
"MQTT",
22+
"AMQP",
23+
"Queues",
24+
"Messaging queue",
25+
"queue messaging",
26+
"publish-subscribe",
27+
"publish-pattern",
28+
"subscribe-pattern",
29+
"publish messaging",
30+
"subscribe messaging",
31+
"remote procedure call",
32+
"RPC"
33+
]
34+
classifiers = [
35+
"Development Status :: 4 - Beta",
36+
"Intended Audience :: Developers",
37+
"Intended Audience :: Education",
38+
"Intended Audience :: Information Technology",
39+
"Intended Audience :: System Administrators",
40+
"Intended Audience :: Telecommunications Industry",
41+
"Operating System :: OS Independent",
42+
"Topic :: Communications",
43+
"Topic :: Home Automation",
44+
"Topic :: Internet :: Log Analysis",
45+
"Topic :: Software Development",
46+
"Topic :: System :: Networking",
47+
"License :: OSI Approved :: MIT License",
48+
"Natural Language :: English",
49+
"Programming Language :: Python :: 3",
50+
"Programming Language :: Python :: 3.5",
51+
"Programming Language :: Python :: 3.6",
52+
"Programming Language :: Python :: 3.7",
53+
"Programming Language :: Python :: 3.8"
54+
]
55+
dependencies = [
56+
"rabbitpy~=2.0.1",
57+
]
58+
59+
[project.optional-dependencies]
60+
dev = [
61+
"pip",
62+
"bump2version",
63+
"wheel",
64+
"watchdog",
65+
"flake8",
66+
"tox",
67+
"coverage",
68+
"Sphinx",
69+
"twine",
70+
"rabbitpy",
71+
"pytest",
72+
"pytest-runner",
73+
"build",
74+
]
75+
test = [
76+
"pytest",
77+
]
78+
79+
[project.urls]
80+
Homepage = "https://github.com/nidhaloff/b_rabbit"
81+
82+
[tool.hatch.version]
83+
path = "b_rabbit/__init__.py"
84+
85+
[tool.hatch.build.targets.sdist]
86+
include = [
87+
"/b_rabbit",
88+
]
89+
90+
[tool.hatch.build.targets.wheel]
91+
packages = [
92+
"/b_rabbit",
93+
]

requirements.txt

-1
This file was deleted.

requirements_dev.txt

-12
This file was deleted.

setup.cfg

-26
This file was deleted.

setup.py

-70
This file was deleted.

tox.ini

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
isolated_build = true
23
envlist = py37, py38, flake8
34

45
[travis]
@@ -15,11 +16,7 @@ commands = flake8 b_rabbit tests
1516
setenv =
1617
PYTHONPATH = {toxinidir}
1718
deps =
18-
-r{toxinidir}/requirements_dev.txt
19-
; If you want to make tox run the tests with the same versions, create a
20-
; requirements.txt with the pinned versions and uncomment the following line:
21-
; -r{toxinidir}/requirements.txt
22-
;commands_pre= python -m pip install -U {opts} {packages}
19+
.[dev]
2320
commands =
2421
pip install -U pip
2522
pytest --basetemp={envtmpdir}

0 commit comments

Comments
 (0)