pyproject.toml: Move project meta data from setup.py

- setuptools and other tools can pickup the information from here.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-11-01 11:19:18 -07:00 committed by James Valleroy
parent 54f447785d
commit e9adf0d78f
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 97 additions and 70 deletions

View File

@ -1,3 +1,100 @@
[project]
name = "FreedomBox"
description = "A web front end for administering FreedomBox"
author = "FreedomBox Authors"
author_email = "freedombox-discuss@lists.alioth.debian.org"
license = {file = "COPYING.md"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: No Input/Output (Daemon)",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: End Users/Desktop",
"License :: DFSG approved",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: JavaScript",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Communications",
"Topic :: Communications :: Chat",
"Topic :: Communications :: Chat :: Internet Relay Chat",
"Topic :: Communications :: Conferencing",
"Topic :: Communications :: Email",
"Topic :: Communications :: Email :: Filters",
"Topic :: Communications :: Email :: Mail Transport Agents",
"Topic :: Communications :: Email :: Post-Office",
"Topic :: Communications :: Email :: Post-Office :: IMAP",
"Topic :: Communications :: Email :: Post-Office :: POP3",
"Topic :: Communications :: File Sharing",
"Topic :: Internet",
"Topic :: Internet :: Name Service (DNS)",
"Topic :: Internet :: Proxy Servers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Wiki",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: XMPP",
"Topic :: Office/Business",
"Topic :: Office/Business :: Scheduling",
"Topic :: Security",
"Topic :: Software Development :: Version Control",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: System",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Filesystems",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Firewalls",
"Topic :: System :: Networking :: Time Synchronization",
"Topic :: System :: Operating System",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
"Topic :: System :: Systems Administration :: Authentication/Directory",
"Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP",
"Topic :: System :: System Shells",
]
dependencies = [
"cherrypy >= 3.0",
"configobj",
"django >= 1.11.0",
"django-bootstrap-form",
"django-simple-captcha",
"django-stronghold >= 0.3.0",
"psutil",
"python-apt",
"python-augeas",
"requests",
"ruamel.yaml",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-django",
"flake8",
"requests",
"tomli",
]
[project.urls]
homepage = "https://freedombox.org"
projectpage = "https://salsa.debian.org/freedombox-team/freedombox"
manual = "https://wiki.debian.org/FreedomBox/Manual/"
documentation = "https://docs.freedombox.org/"
changelog = "https://salsa.debian.org/freedombox-team/freedombox/-/blob/master/debian/changelog"
readme = "https://salsa.debian.org/freedombox-team/freedombox/-/blob/master/README.md"
support = "https://freedombox.org/#community"
[tool.isort]
known_first_party = ["plinth"]

View File

@ -244,80 +244,10 @@ def _gather_data_files():
find_packages = setuptools.PEP420PackageFinder.find
setuptools.setup(
name='Plinth',
version=__version__,
description='A web front end for administering FreedomBox',
author='FreedomBox Authors',
author_email='freedombox-discuss@lists.alioth.debian.org',
url='https://freedombox.org',
packages=find_packages(include=['plinth', 'plinth.*'],
exclude=['*.templates']),
scripts=['bin/plinth'],
license='COPYING.md',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: End Users/Desktop',
'License :: DFSG approved',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Unix Shell',
'Topic :: Communications',
'Topic :: Communications :: Chat',
'Topic :: Communications :: Chat :: Internet Relay Chat',
'Topic :: Communications :: File Sharing',
'Topic :: Internet',
'Topic :: Internet :: Name Service (DNS)'
'Topic :: Internet :: Proxy Servers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Wiki',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Office/Business',
'Topic :: Office/Business :: Scheduling',
'Topic :: Security',
'Topic :: System'
'Topic :: System :: Archiving',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Distributed Computing'
'Topic :: System :: Filesystems',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Firewalls',
'Topic :: System :: Operating System',
'Topic :: System :: Software Distribution'
'Topic :: System :: Systems Administration',
'Topic :: System :: Systems Administration :: Authentication/Directory',
'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP ',
'Topic :: System :: System Shells',
],
setup_requires=['pytest-runner', 'setuptools-git'],
install_requires=[
'cherrypy >= 3.0',
'configobj',
'django >= 1.11.0',
'django-bootstrap-form',
'django-simple-captcha',
'django-stronghold >= 0.3.0',
'psutil',
'python-apt',
'python-augeas',
'requests',
'ruamel.yaml',
],
tests_require=[
'pytest',
'pytest-cov',
'pytest-django',
'flake8',
'requests',
'tomli',
],
package_data={
'': ['templates/*', 'static/**', 'locale/*/LC_MESSAGES/*.mo']
},