Skip to content

Commit c860dc7

Browse files
committed
Add Poetry for packaging
1 parent ffeb1f5 commit c860dc7

File tree

4 files changed

+173
-5
lines changed

4 files changed

+173
-5
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
version: 2.1
2+
3+
jobs:
4+
build-test:
5+
docker:
6+
- image: circleci/python:3.5.5
7+
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- deps-{{ checksum "poetry.lock" }}
13+
- run:
14+
name: Install Dependencies
15+
command: |
16+
poetry install
17+
- save_cache:
18+
key: deps-{{ checksum "poetry.lock" }}
19+
paths:
20+
- /home/circleci/.cache/pypoetry/virtualenvs
21+
22+
- run:
23+
name: Run Tests
24+
command: |
25+
poetry run ./runtests
26+
27+
deploy:
28+
docker:
29+
- image: circleci/python:3.5.5
30+
steps:
31+
- checkout
32+
- run:
33+
name: Push to PyPI
34+
command: |
35+
poetry publish \
36+
--build \
37+
--username "${PYPI_USERNAME}" \
38+
--password "${PYPI_PASSWORD}" \
39+
--no-interaction
40+
41+
workflows:
42+
version: 2.1
43+
44+
build-test:
45+
jobs:
46+
- build-test
47+
48+
build-test-deploy:
49+
jobs:
50+
- build-test:
51+
filters:
52+
tags:
53+
only: /v[0-9]+(\.[0-9]+)*/
54+
branches:
55+
ignore: /.*/
56+
57+
- deploy:
58+
requires:
59+
- build-test
60+
filters:
61+
tags:
62+
only: /v[0-9]+(\.[0-9]+)*/
63+
branches:
64+
ignore: /.*/

poetry.lock

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[tool.poetry]
2+
name = "django-lightweight-queue"
3+
version = "0.1.0"
4+
description = "Lightweight & modular queue and cron system for Django"
5+
authors = ["Thread Engineering <[email protected]>"]
6+
license = "BSD-3-Clause"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.5"
10+
django = ">=1.11.27,<3.0"
11+
daemonize = "^2.5.0"
12+
redis = "^3.3.11"
13+
prometheus-client = "^0.7.1"
14+
15+
[tool.poetry.dev-dependencies]
16+
17+
[build-system]
18+
requires = ["poetry>=0.12"]
19+
build-backend = "poetry.masonry.api"

requirements.txt

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

0 commit comments

Comments
 (0)