1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00

[WIP] make a test release on TestPyPi

currently does not link to existing setup.py
This commit is contained in:
q-posev 2021-07-28 10:30:23 +02:00
parent 5a3fbc2317
commit 5b7030fca1
3 changed files with 37 additions and 1 deletions

View File

@ -190,6 +190,12 @@ python-test: src/test.py src/_pytrexio*.so
cd src/ && python3 test.py cd src/ && python3 test.py
$(RM) -r -- src/__pycache__ $(RM) -r -- src/__pycache__
python-build: pyproject.toml setup.cfg
python3 -m build
python-release: pyproject.toml setup.cfg
python3 -m twine upload --repository testpypi dist/*
# Advanced compilation using Python-native distutils # Advanced compilation using Python-native distutils
# #
# swig -python -threads pytrexio.i ----> Add thread support for all the interface # swig -python -threads pytrexio.i ----> Add thread support for all the interface
@ -216,7 +222,7 @@ src/_pytrexio*.so: $(ORG_FILES) $(trexio_h) src/pytrexio.i
CLEANFILES += src/pytrexio_wrap.c src/pytrexio.py src/_pytrexio*.so CLEANFILES += src/pytrexio_wrap.c src/pytrexio.py src/_pytrexio*.so
.PHONY: cppcheck python python-test .PHONY: cppcheck python python-build python-test
endif endif

7
pyproject.toml Normal file
View File

@ -0,0 +1,7 @@
[build-system]
requires = [
"setuptools>=42",
"h5py",
"wheel"
]
build-backend = "setuptools.build_meta"

23
setup.cfg Normal file
View File

@ -0,0 +1,23 @@
[metadata]
name = pytrexio666
version = 0.1
author = TREX-CoE
description = Python API of the TREXIO library
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/TREX-CoE/trexio
project_urls =
Bug Tracker = https://github.com/TREX-CoE/trexio/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: BSD License
[options]
package_dir =
= src
packages = find:
python_requires = >=3.6
[options.packages.find]
where = src