Skip to content

Commit 0af92d7

Browse files
build: move project to poetry and pytest
1 parent 20dd123 commit 0af92d7

11 files changed

Lines changed: 327 additions & 258 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
HRFLOW_API_KEY="___FILL_ME___"
2+
HRFLOW_USER_EMAIL="___FILL_ME___"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Env
2+
.env
3+
14
# Datas
25
*.png
36
*.jpg

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) [year] [fullname]
3+
Copyright (c) 2023 HrFlow.ai
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Define variables
22
ARGS :=
33

4-
install_req:
5-
pip install -U setuptools setuptools_scm wheel && python -m pip install twine
6-
74
clean:
85
rm -rf build dist *.egg-info
96

hrflow/__version__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import importlib.metadata
2+
13
__title__ = "hrflow"
24
__description__ = "Python hrflow.ai API package"
35
__url__ = "https://github.com/hrflow/python-hrflow-api"
4-
__version__ = "3.1.1"
6+
__version__ = importlib.metadata.version("hrflow")
57
__author__ = "HrFlow.ai"
68
__author_email__ = "contact@hrflow.ai"
7-
__license__ = "MIT"
9+
__license__ = "MIT"

poetry.lock

Lines changed: 284 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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[tool.poetry]
2+
name = "hrflow"
3+
version = "3.1.1"
4+
description = "Python hrflow.ai API package"
5+
authors = ["HrFlow.ai <contact@hrflow.ai>"]
6+
license = "MIT"
7+
readme = "README.md"
8+
repository = "https://github.com/hrflow/python-hrflow-api"
9+
documentation = "https://github.com/hrflow/python-hrflow-api"
10+
exclude = ["Makefile", ".pre-commit-config.yaml", "manifest.json", "tests", "poetry.lock"]
11+
packages = [{include = "hrflow"}]
12+
13+
[tool.poetry.urls]
14+
"HrFlow.ai Documentation" = "https://developers.hrflow.ai"
15+
"Changelog" = "https://github.com/Riminder/python-hrflow-api/releases"
16+
17+
[tool.poetry.dependencies]
18+
python = "^3.8"
19+
requests = "^2.31.0"
20+
python-magic = "^0.4.27"
21+
22+
[tool.poetry.group.dev.dependencies]
23+
pytest = "^7.4.3"
24+
python-dotenv = "^1.0.0"
25+
26+
[build-system]
27+
requires = ["poetry-core"]
28+
build-backend = "poetry.core.masonry.api"

setup.py

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

tests/config.py

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

tests/test_api.py

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

0 commit comments

Comments
 (0)