Skip to content

Commit cf5c641

Browse files
committed
Merge branch 'master' of https://github.com/inventree/inventree-python into add-oauth2
2 parents ef32133 + 1c8b006 commit cf5c641

File tree

5 files changed

+57
-46
lines changed

5 files changed

+57
-46
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
pip install -U -r requirements.txt
2424
- name: Build Python Package
2525
run: |
26-
pip install --upgrade pip wheel setuptools
27-
python setup.py bdist_wheel --universal
26+
pip install --upgrade pip wheel setuptools build
27+
python3 -m build

.github/workflows/pypi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Install Python Dependencies
2626
run: |
2727
pip install -U -r requirements.txt
28-
pip install --upgrade wheel setuptools twine
28+
pip install --upgrade wheel setuptools twine build
2929
- name: Build Binary
3030
run: |
31-
python3 setup.py sdist bdist_wheel --universal
31+
python3 -m build
3232
- name: Publish
3333
run: |
3434
python3 -m twine upload dist/*

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[build-system]
2+
requires = ["setuptools >= 75.3.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "inventree"
7+
dynamic = ["version"]
8+
description = "Python interface for InvenTree inventory management system"
9+
readme = "README.md"
10+
license = { file = "LICENSE" }
11+
requires-python = ">=3.9"
12+
authors = [
13+
{ name = "Oliver Walters", email = "[email protected]" },
14+
]
15+
keywords = [
16+
"barcode",
17+
"bill",
18+
"bom",
19+
"inventory",
20+
"management",
21+
"materials",
22+
"of",
23+
"stock",
24+
]
25+
dependencies = [
26+
"pip-system-certs>=4.0",
27+
"requests>=2.27.0",
28+
"urllib3>=2.3.0",
29+
"requests-oauthlib",
30+
]
31+
32+
[project.urls]
33+
Homepage = "https://github.com/inventree/inventree-python/"
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "inventree.base.INVENTREE_PYTHON_VERSION"}
37+
38+
[tool.setuptools]
39+
packages = ["inventree"]
40+
41+
[tool.flake8]
42+
ignore =[
43+
'C901',
44+
# - W293 - blank lines contain whitespace
45+
'W293',
46+
# - E501 - line too long (82 characters)
47+
'E501',
48+
'N802']
49+
exclude = ['.git','__pycache__','inventree_server','dist','build','test.py']
50+
max-complexity = 20
51+

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
requests[socks]>=2.21.0 # Python HTTP for humans with proxy support
2-
flake8==3.8.4 # PEP checking
2+
flake8==7.1.2 # PEP checking
3+
flake8-pyproject==1.2.3 # PEP 621 support
34
wheel>=0.34.2 # Building package
45
invoke>=1.4.0
56
coverage>=6.4.1 # Run tests, measure coverage

setup.py

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

0 commit comments

Comments
 (0)