2022-07-24 11:58:11 +02:00
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import pathlib
|
|
|
|
|
|
|
|
here = pathlib.Path(__file__).parent.resolve()
|
|
|
|
|
|
|
|
|
|
|
|
def get_version(rel_path):
|
|
|
|
for line in (here / rel_path).read_text(encoding="utf-8").splitlines():
|
|
|
|
if line.startswith('__version__'):
|
|
|
|
delim = '"' if '"' in line else "'"
|
|
|
|
return line.split(delim)[1]
|
|
|
|
else:
|
|
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get the long description from the README file
|
|
|
|
long_description = (here / "README.md").read_text(encoding="utf-8")
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
|
|
|
name="pyscript-bootstrap-templates",
|
2022-07-24 12:21:56 +02:00
|
|
|
version=get_version("pyscript_bootstrap_templates/__init__.py"),
|
2022-07-24 11:58:11 +02:00
|
|
|
description="templates and basic python/pyscript wrappers for bootstrap 5",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
|
|
|
url="https://github.com/pypa/sampleproject",
|
|
|
|
|
|
|
|
author="Jonas Weinz",
|
|
|
|
|
|
|
|
author_email="author@example.com",
|
|
|
|
|
|
|
|
keywords="sample, setuptools, development",
|
|
|
|
|
2022-07-24 12:21:56 +02:00
|
|
|
packages=["pyscript_bootstrap_templates"],
|
2022-10-16 17:04:00 +02:00
|
|
|
include_package_data=True,
|
|
|
|
package_data={'pyscript_bootstrap_templates': ['data', 'data/icon.png']},
|
2022-07-24 11:58:11 +02:00
|
|
|
python_requires=">=3.7, <4",
|
|
|
|
|
|
|
|
install_requires=[
|
|
|
|
"pillow",
|
|
|
|
"parse",
|
|
|
|
],
|
|
|
|
|
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
2022-09-11 16:33:43 +02:00
|
|
|
"pyscript_bootstrap_app=pyscript_bootstrap_templates.cli_interface:main",
|
2022-07-24 11:58:11 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
)
|
|
|
|
|