comparison setup.py @ 1518:eb00d593801d

refactoring: rename `libervia` to `libervia.web` + update imports following backend changes
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 16:49:28 +0200
parents ff23865fbdbb
children 01b8d68edd70
comparison
equal deleted inserted replaced
1517:b8ed9726525b 1518:eb00d593801d
19 19
20 from setuptools import setup 20 from setuptools import setup
21 import os 21 import os
22 22
23 NAME = "libervia-web" 23 NAME = "libervia-web"
24 # NOTE: directory is still "libervia" for compatibility reason, should be changed for 0.9 24 DIR_NAME = "libervia/web"
25 DIR_NAME = "libervia"
26 25
27 install_requires = [ 26 install_requires = [
28 "libervia-backend == 0.9.*", 27 "libervia-backend == 0.9.*",
29 "libervia-templates >0.8.0b1", 28 "libervia-templates >0.8.0b1",
30 'twisted[tls] >=20.3.0', 29 'twisted[tls] >=20.3.0',
61 setup( 60 setup(
62 name=NAME, 61 name=NAME,
63 version=VERSION, 62 version=VERSION,
64 description="Web frontend for Libervia", 63 description="Web frontend for Libervia",
65 long_description=long_description, 64 long_description=long_description,
66 author="Association « Salut à Toi »", 65 author="Libervia Dev Team",
67 author_email="contact@goffi.org", 66 author_email="contact@goffi.org",
68 url="https://www.salut-a-toi.org", 67 url="https://www.libervia.org",
69 classifiers=[ 68 classifiers=[
70 "Programming Language :: Python :: 3 :: Only", 69 "Programming Language :: Python :: 3 :: Only",
71 "Programming Language :: Python :: 3.7", 70 "Programming Language :: Python :: 3.7",
72 "Programming Language :: Python :: 3.8", 71 "Programming Language :: Python :: 3.8",
73 "Programming Language :: Python :: 3.9", 72 "Programming Language :: Python :: 3.9",
77 "License :: OSI Approved :: GNU Affero General Public License v3 " 76 "License :: OSI Approved :: GNU Affero General Public License v3 "
78 "or later (AGPLv3+)", 77 "or later (AGPLv3+)",
79 "Operating System :: POSIX :: Linux", 78 "Operating System :: POSIX :: Linux",
80 "Topic :: Communications :: Chat", 79 "Topic :: Communications :: Chat",
81 ], 80 ],
82 packages=["libervia", "libervia.common", "libervia.server", "twisted.plugins"], 81 packages=["libervia.web", "libervia.web.common", "libervia.web.server", "twisted.plugins"],
83 include_package_data=True, 82 include_package_data=True,
84 data_files=[(os.path.join("share", "doc", NAME), ["COPYING", "README", "INSTALL"])] 83 data_files=[(os.path.join("share", "doc", NAME), ["COPYING", "README", "INSTALL"])]
85 + [ 84 + [
86 (os.path.join("share", NAME, root), [os.path.join(root, f) for f in files]) 85 (os.path.join("share", NAME, root), [os.path.join(root, f) for f in files])
87 for root, dirs, files in os.walk("themes") 86 for root, dirs, files in os.walk("themes")
88 ], 87 ],
89 entry_points={ 88 entry_points={
90 "console_scripts": [ 89 "console_scripts": [
91 "libervia-web = libervia.server.launcher:Launcher.run", 90 "libervia-web = libervia.web.server.launcher:Launcher.run",
92 ], 91 ],
93 }, 92 },
94 zip_safe=False, 93 zip_safe=False,
95 setup_requires=["setuptools_scm"] if is_dev_version else [], 94 setup_requires=["setuptools_scm"] if is_dev_version else [],
96 use_scm_version=libervia_dev_version if is_dev_version else False, 95 use_scm_version=libervia_dev_version if is_dev_version else False,
97 install_requires=install_requires, 96 install_requires=install_requires,
98 package_data={"libervia": ["VERSION"]}, 97 package_data={"libervia.web": ["VERSION"]},
99 python_requires=">=3.7", 98 python_requires=">=3.7",
100 ) 99 )