Skip to content

Commit

Permalink
Start using Poetry (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
wavenator authored Mar 28, 2022
1 parent 6c856b2 commit 89ea12d
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 68 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Dependencies
run: >-
python -m pip install --upgrade -r requirements.txt;
python -m pip install --upgrade pytest;
- name: Test module
run: pytest
- name: Install Poetry
uses: abatilo/[email protected]
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Build a source tarball
run: >-
python -m pip install --user --upgrade setuptools; python setup.py
sdist;
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Build and publish to PYPI
uses: JRubics/[email protected]
with:
user: __token__
password: '${{ secrets.pypi_password }}'
pypi_token: '${{ secrets.pypi_password }}'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ target/
.vscode/

site/

poetry.lock
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

45 changes: 42 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@
[project]
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sergeant"
version = "0.23.0"
version = "0.24.0"
readme = "README.md"
homepage = "https://github.com/Intsights/sergeant"
repository = "https://github.com/Intsights/sergeant"
description = "Fast, Safe & Simple Asynchronous Task Queues Written In Pure Python"
authors = ["Gal Ben David <[email protected]>"]
license = "MIT"
documentation = "https://intsights.github.io/sergeant/"
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
keywords = [
"tasks",
"worker",
"queue",
"redis",
"celery",
]
packages = [
{ include = "sergeant" },
]

[tool.poetry.dependencies]
python = "^3.7"
hiredis = "^2"
msgpack = "^1"
orjson = "^3"
psutil = "^5"
pymongo = ">=3.0,<5.0"
redis = "^4"

[tool.poetry.dev-dependencies]
pytest = "^7"

[tool.isort]
skip_gitignore = true
Expand All @@ -25,7 +64,7 @@ sections = [
default_section = "THIRDPARTY"

[tool.pytest.ini_options]
minversion = "6.0"
minversion = "7.0"
addopts = [
"--tb=native",
"--show-capture=stdout",
Expand Down
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

0 comments on commit 89ea12d

Please sign in to comment.