Skip to content

Commit 931d450

Browse files
committed
update build process
1 parent a3e717e commit 931d450

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
init:
2-
pip install -r requirements.txt
2+
python3 -m pip install -r requirements.txt
3+
python3 -m pip install -r requirements-dev.txt
34

45
test:
5-
pytest tests
6+
python3 -m pytest tests
67

78
build:
89
python3 -m build
@@ -11,17 +12,15 @@ pypi:
1112
python3 -m twine upload --repository testpypi dist/*
1213
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps keyctl
1314

14-
pypi-real: clean init build
15+
pypi-real: clean init test build
1516
@read -r -p "Are you sure? " INPUT; \
1617
if [ "$$INPUT" != "y" ] ; then exit 1 ; fi
1718
twine upload dist/*
1819

1920
clean:
2021
pip freeze | xargs pip uninstall keyctl -y
21-
#pip uninstall keyctl
2222
find . -type f -name '*~' -delete
2323
find . -type f -name '*.o' -delete
2424
find . -type f -name '*.pyc' -delete
2525
find . -type d -name '__pycache__' -delete
26-
rm -rf build dist .cache *.egg-info .pytest_cache
27-
26+
rm -rf build dist .cache *.egg-info .pytest_cache tests/.pytest_cache

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ keyctl = ["gui/*.ui"]
77

88
[project]
99
name = "keyctl"
10-
version = "0.5rc1"
10+
version = "0.5-rc3"
1111
authors = [
1212
{name="Martin", email="[email protected]"},
1313
]
1414
description = "Wrapper to use keyctl command in Python"
1515
readme = "README.md"
16-
requires-python = ">=3.6"
16+
requires-python = ">=3.9"
1717
classifiers = [
1818
"Development Status :: 4 - Beta",
1919
"Intended Audience :: Developers",
2020
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2121
"Programming Language :: Python",
22-
"Programming Language :: Python :: 3.6",
22+
"Programming Language :: Python :: 3.9",
2323
"Environment :: X11 Applications :: Qt",
2424
"Topic :: Utilities",
2525
]

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest==7.4.4
2+
build==1.0.3
3+
twine==4.0.2

0 commit comments

Comments
 (0)