diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index 631650d6..00000000 --- a/.isort.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[settings] -profile=django -sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,ESI,FIRSTPARTY,LOCALFOLDER -known_esi=esi -known_django=django -skip_gitignore=true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b37ec7c7..2692002c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 ] diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index d46a6471..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,7 +0,0 @@ -include LICENSE -include README.md -include MANIFEST.in -graft allianceauth - -global-exclude __pycache__ -global-exclude *.py[co] diff --git a/allianceauth/__init__.py b/allianceauth/__init__.py index 417f9297..8e27b404 100644 --- a/allianceauth/__init__.py +++ b/allianceauth/__init__.py @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 374b58cb..db5b176f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index fd51251d..00000000 --- a/setup.cfg +++ /dev/null @@ -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] -* = *