Skip to content

Commit

Permalink
Merge pull request #17 from wiseaidev/update-package-metadata
Browse files Browse the repository at this point in the history
Update package metadata
  • Loading branch information
nidhaloff authored Oct 6, 2022
2 parents 5c770aa + c154749 commit f71ed6e
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 132 deletions.
20 changes: 20 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[bumpversion]
current_version = 1.2.4
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*))?
serialize =
{major}.{minor}.{patch}-{stage}
{major}.{minor}.{patch}

[bumpversion:part:stage]
optional_value = stable
first_value = stable
values =
alpha
beta
stable

[bumpversion:file:b_rabbit/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
6 changes: 3 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Ready to contribute? Here's how to set up `b_rabbit` for local development.

$ mkvirtualenv b_rabbit
$ cd b_rabbit/
$ python setup.py develop
$ python -m pip install -e ".[dev]"

4. Create a branch for local development::

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

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

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

Expand Down
11 changes: 0 additions & 11 deletions MANIFEST.in

This file was deleted.

5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ release: dist ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
python setup.py sdist
python setup.py bdist_wheel
python -m build
ls -l dist

install: clean ## install the package to the active Python's site-packages
python setup.py install
python -m pip install .
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Once you have a copy of the source, you can install it with:

.. code-block:: console
$ python setup.py install
$ python -m pip install .
.. _Github repo: https://github.com/nidhaloff/b_rabbit
Expand Down
93 changes: 93 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
[build-system]
requires = ["hatchling>=1.8.0"]
build-backend = "hatchling.build"

[project]
name = "b_rabbit"
dynamic = ["version"]
description = "An abstract interface for RabbitMQ communication"
readme = "README.rst"
license = "MIT"
requires-python = ">=3.4"
authors = [
{ name = "Nidhal Baccouri", email = "nidhalbacc@gmail.com" },
]
keywords = [
"b_rabbit",
"rabbitmq",
"RabbitMQ",
"Microservices",
"SOA",
"MQTT",
"AMQP",
"Queues",
"Messaging queue",
"queue messaging",
"publish-subscribe",
"publish-pattern",
"subscribe-pattern",
"publish messaging",
"subscribe messaging",
"remote procedure call",
"RPC"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Operating System :: OS Independent",
"Topic :: Communications",
"Topic :: Home Automation",
"Topic :: Internet :: Log Analysis",
"Topic :: Software Development",
"Topic :: System :: Networking",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
]
dependencies = [
"rabbitpy~=2.0.1",
]

[project.optional-dependencies]
dev = [
"pip",
"bump2version",
"wheel",
"watchdog",
"flake8",
"tox",
"coverage",
"Sphinx",
"twine",
"rabbitpy",
"pytest",
"pytest-runner",
"build",
]
test = [
"pytest",
]

[project.urls]
Homepage = "https://github.com/nidhaloff/b_rabbit"

[tool.hatch.version]
path = "b_rabbit/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/b_rabbit",
]

[tool.hatch.build.targets.wheel]
packages = [
"/b_rabbit",
]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements_dev.txt

This file was deleted.

26 changes: 0 additions & 26 deletions setup.cfg

This file was deleted.

70 changes: 0 additions & 70 deletions setup.py

This file was deleted.

7 changes: 2 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
isolated_build = true
envlist = py37, py38, flake8

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

0 comments on commit f71ed6e

Please sign in to comment.