Migrate to PEP 621

This commit is contained in:
Erik Kalkoken 2023-07-25 09:32:28 +00:00 committed by Ariel Rin
parent 2002f24178
commit c4193c15fc
6 changed files with 93 additions and 102 deletions

View File

@ -1,6 +0,0 @@
[settings]
profile=django
sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,ESI,FIRSTPARTY,LOCALFOLDER
known_esi=esi
known_django=django
skip_gitignore=true

View File

@ -53,9 +53,3 @@ repos:
hooks:
- id: pyupgrade
args: [ --py38-plus ]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
args: [ --include-version-classifiers ]

View File

@ -1,7 +0,0 @@
include LICENSE
include README.md
include MANIFEST.in
graft allianceauth
global-exclude __pycache__
global-exclude *.py[co]

View File

@ -1,3 +1,7 @@
"""An auth system for EVE Online to help in-game organizations
manage online service access.
"""
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.

View File

@ -1,6 +1,91 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "allianceauth"
dynamic = ["version", "description"]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Alliance Auth", email = "adarnof@gmail.com" },
]
build-backend = "setuptools.build_meta"
keywords = [
"allianceauth",
"eveonline",
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"bcrypt",
"beautifulsoup4",
"celery-once>=3.0.1",
"celery>=5.2.0,<6",
"django-bootstrap-form",
"django-celery-beat>=2.3.0",
"django-esi>=4.0.1",
"django-redis>=5.2.0",
"django-registration>=3.3,<3.4",
"django-sortedm2m",
"django>=4.0.9,<4.1.0",
"dnspython",
"mysqlclient>=2.1.0",
"openfire-restapi",
"packaging>=21.0",
"passlib",
"pydiscourse",
"python-slugify>=1.2",
"redis>=4.0.0",
"requests-oauthlib",
"requests>=2.9.1",
"semantic-version",
"slixmpp",
]
[project.optional-dependencies]
test = [
"coverage>=4.3.1",
"django-webtest",
"requests-mock>=1.2.0",
]
[project.scripts]
allianceauth = "allianceauth.bin.allianceauth:main"
[project.urls]
Homepage = "https://gitlab.com/allianceauth/allianceauth"
Documentation = "https://allianceauth.readthedocs.io/"
Source = "https://gitlab.com/allianceauth/allianceauth"
Tracker = "https://gitlab.com/allianceauth/allianceauth/-/issues"
[tool.flit.module]
name = "allianceauth"
[tool.isort]
profile = "django"
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"DJANGO",
"ESI",
"FIRSTPARTY",
"LOCALFOLDER"
]
known_esi = ["esi"]
known_django = ["django"]
skip_gitignore = true

View File

@ -1,79 +0,0 @@
[metadata]
name = allianceauth
version = attr: allianceauth.__version__
description = An auth system for EVE Online to help in-game organizations manage online service access.
long_description = file: README.md
long_description_content_type = text/markdown
author = Alliance Auth
author_email = adarnof@gmail.com
license = GPL-2.0
license_files = LICENSE
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 4
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
home_page = https://gitlab.com/allianceauth/allianceauth
keywords =
allianceauth
eveonline
project_urls =
Issue / Bug Reports = https://gitlab.com/allianceauth/allianceauth/-/issues
Documentation = https://allianceauth.readthedocs.io/
[options]
packages = find_namespace:
install_requires =
bcrypt
beautifulsoup4
celery>=5.2.0,<6
celery-once>=3.0.1
django>=4.0.9,<4.1.0
django-bootstrap-form
django-celery-beat>=2.3.0
django-esi>=4.0.1
django-redis>=5.2.0
django-registration>=3.3,<3.4
django-sortedm2m
dnspython
mysqlclient>=2.1.0
openfire-restapi
packaging>=21.0
passlib
pydiscourse
python-slugify>=1.2
redis>=4.0.0
requests>=2.9.1
requests-oauthlib
semantic-version
slixmpp
python_requires = >=3.8
include_package_data = True
zip_safe = False
[options.packages.find]
include = allianceauth*
[options.entry_points]
console_scripts =
allianceauth = allianceauth.bin.allianceauth:main
[options.extras_require]
test =
coverage>=4.3.1
django-webtest
requests-mock>=1.2.0
[options.package_data]
* = *