[deps] Updated dependencies and added files for standard packaging.
The halfapi-cli tool needs to be installed using [cli] option : pip3 install -e .[cli]
This commit is contained in:
parent
4d02cf4acd
commit
7ef6e78010
|
@ -0,0 +1,10 @@
|
||||||
|
include pyproject.toml
|
||||||
|
|
||||||
|
# Include the README
|
||||||
|
include *.md
|
||||||
|
|
||||||
|
# Include the license file
|
||||||
|
include LICENSE.txt
|
||||||
|
|
||||||
|
# Include the data files
|
||||||
|
recursive-include data *
|
|
@ -0,0 +1,5 @@
|
||||||
|
[build-system]
|
||||||
|
# These are the assumed default build requirements from pip:
|
||||||
|
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
|
||||||
|
requires = ["setuptools>=40.8.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
|
@ -3,3 +3,4 @@ starlette
|
||||||
uvicorn
|
uvicorn
|
||||||
jwt
|
jwt
|
||||||
half_orm @ git+ssh://git@gite.lirmm.fr/newsi/halfORM.git
|
half_orm @ git+ssh://git@gite.lirmm.fr/newsi/halfORM.git
|
||||||
|
pygit2==0.28.2
|
||||||
|
|
26
setup.py
26
setup.py
|
@ -6,6 +6,7 @@ import re
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
import pathlib
|
||||||
|
|
||||||
def get_version(package):
|
def get_version(package):
|
||||||
"""
|
"""
|
||||||
|
@ -19,9 +20,8 @@ def get_long_description():
|
||||||
"""
|
"""
|
||||||
Return the README.
|
Return the README.
|
||||||
"""
|
"""
|
||||||
with open("README.md", encoding="utf8") as f:
|
here = pathlib.Path(__file__).parent.resolve()
|
||||||
return f.read()
|
long_description = (here / 'README.md').read_text(encoding='utf-8')
|
||||||
|
|
||||||
|
|
||||||
def get_packages(package):
|
def get_packages(package):
|
||||||
"""
|
"""
|
||||||
|
@ -36,23 +36,27 @@ def get_packages(package):
|
||||||
module_name="halfapi"
|
module_name="halfapi"
|
||||||
setup(
|
setup(
|
||||||
name=module_name,
|
name=module_name,
|
||||||
python_requires=">=3.7",
|
|
||||||
version=get_version(module_name),
|
version=get_version(module_name),
|
||||||
url="https://gite.lirmm.fr/newsi/api/halfapi",
|
url="https://gite.lirmm.fr/malves/halfapi",
|
||||||
long_description=get_long_description(),
|
long_description=get_long_description(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
packages=get_packages(module_name),
|
packages=get_packages(module_name),
|
||||||
package_data={
|
python_requires=">=3.7",
|
||||||
'halfapi': ['lib/*', 'models/*']
|
|
||||||
},
|
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"click",
|
|
||||||
"half_orm",
|
"half_orm",
|
||||||
"jwt",
|
"jwt",
|
||||||
"starlette",
|
"starlette",
|
||||||
"uvicorn"],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
"tests":["pytest", "requests"],
|
"tests":[
|
||||||
|
"pytest",
|
||||||
|
"requests"
|
||||||
|
],
|
||||||
|
"cli":[
|
||||||
|
"click",
|
||||||
|
"pygit2",
|
||||||
|
"uvicorn"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
entry_points={
|
entry_points={
|
||||||
"console_scripts":[
|
"console_scripts":[
|
||||||
|
|
Loading…
Reference in New Issue