Skip to content

Commit 0545b05

Browse files
Initial commit
1 parent 97fafc4 commit 0545b05

File tree

4 files changed

+98
-0
lines changed

4 files changed

+98
-0
lines changed

packages/celery-library/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# simcore Celery library
2+
3+
Provides a wrapper around Celery library.
4+
5+
## Installation
6+
7+
```console
8+
make help
9+
make install-dev
10+
```
11+
12+
## Test
13+
14+
```console
15+
make help
16+
make test-dev
17+
```

packages/celery-library/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

packages/celery-library/setup.cfg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[bumpversion]
2+
current_version = 0.1.0
3+
commit = True
4+
message = packages/celery-library version: {current_version} → {new_version}
5+
tag = False
6+
commit_args = --no-verify
7+
8+
[bumpversion:file:VERSION]
9+
10+
[bdist_wheel]
11+
universal = 1
12+
13+
[aliases]
14+
test = pytest
15+
16+
[tool:pytest]
17+
asyncio_mode = auto
18+
19+
[mypy]
20+
plugins =
21+
pydantic.mypy

packages/celery-library/setup.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import re
2+
import sys
3+
from pathlib import Path
4+
5+
from setuptools import find_packages, setup
6+
7+
8+
def read_reqs(reqs_path: Path) -> set[str]:
9+
return {
10+
r
11+
for r in re.findall(
12+
r"(^[^#\n-][\w\[,\]]+[-~>=<.\w]*)",
13+
reqs_path.read_text(),
14+
re.MULTILINE,
15+
)
16+
if isinstance(r, str)
17+
}
18+
19+
20+
CURRENT_DIR = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent
21+
22+
INSTALL_REQUIREMENTS = tuple(
23+
read_reqs(CURRENT_DIR / "requirements" / "_base.in")
24+
) # WEAK requirements
25+
26+
TEST_REQUIREMENTS = tuple(
27+
read_reqs(CURRENT_DIR / "requirements" / "_test.txt")
28+
) # STRICT requirements
29+
30+
31+
SETUP = {
32+
"name": "simcore-celery-library",
33+
"version": Path(CURRENT_DIR / "VERSION").read_text().strip(),
34+
"author": "Giancarlo Romeo (giancarloromeo)",
35+
"description": "Core service library for Celery",
36+
"python_requires": "~=3.11",
37+
"classifiers": [
38+
"Development Status :: 2 - Pre-Alpha",
39+
"Intended Audience :: Developers",
40+
"License :: OSI Approved :: MIT License",
41+
"Natural Language :: English",
42+
"Programming Language :: Python :: 3.10",
43+
],
44+
"long_description": Path(CURRENT_DIR / "README.md").read_text(),
45+
"license": "MIT license",
46+
"install_requires": INSTALL_REQUIREMENTS,
47+
"packages": find_packages(where="src"),
48+
"package_data": {"": ["py.typed"]},
49+
"package_dir": {"": "src"},
50+
"include_package_data": True,
51+
"test_suite": "tests",
52+
"tests_require": TEST_REQUIREMENTS,
53+
"extras_require": {"test": TEST_REQUIREMENTS},
54+
"zip_safe": False,
55+
}
56+
57+
58+
if __name__ == "__main__":
59+
setup(**SETUP)

0 commit comments

Comments
 (0)