Skip to content

Commit

Permalink
refactor(setup): Move to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jul 4, 2023
1 parent 12ff50e commit ca50b5e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 77 deletions.
11 changes: 0 additions & 11 deletions .isort.cfg

This file was deleted.

70 changes: 70 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
[metadata]
name = django-allauth
version = attr: allauth.__version__
url = https://www.intenct.nl/projects/django-allauth/
author = Raymond Penners
author_email = [email protected]
description = Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
long_description = file: README.rst
license = MIT
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Topic :: Software Development :: Libraries :: Python Modules
Environment :: Web Environment
Topic :: Internet
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Framework :: Django
Framework :: Django :: 3.1
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Framework :: Django :: 4.1
Framework :: Django :: 4.2
project_urls =
Documentation = https://django-allauth.readthedocs.io/en/latest/
Changelog = https://github.com/pennersr/django-allauth/blob/main/ChangeLog.rst
Source = https://github.com/pennersr/django-allauth
Tracker = https://github.com/pennersr/django-allauth/issues
Donate = https://github.com/sponsors/pennersr

[options]
python_requires = >=3.7
packages = find:
include_package_data = true
zip_safe = false
tests_require =
Pillow >= 9.0
install_requires =
Django >= 3.1
python3-openid >= 3.0.8
requests-oauthlib >= 0.3.0
requests >= 2.0.0
pyjwt[crypto] >= 1.7


[options.packages.find]
exclude =
example


[isort]
indent=4
combine_star=1
combine_as_imports=1
include_trailing_comma=1
multi_line_output=3
lines_after_imports=2
known_django=django
extra_standard_library=types,requests
known_first_party=allauth
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER


[flake8]
max-line-length = 88
# Black
Expand Down
68 changes: 2 additions & 66 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function
from setuptools import setup

import io

from setuptools import find_packages, setup

long_description = io.open("README.rst", encoding="utf-8").read()

# Dynamically calculate the version based on allauth.VERSION.
version = __import__("allauth").__version__

METADATA = dict(
name="django-allauth",
version=version,
author="Raymond Penners",
author_email="[email protected]",
description="Integrated set of Django applications addressing"
" authentication, registration, account management as well as"
" 3rd party (social) account authentication.",
long_description=long_description,
url="http://www.intenct.nl/projects/django-allauth/",
keywords="django auth account social openid twitter facebook oauth registration",
project_urls={
"Documentation": "https://django-allauth.readthedocs.io/en/latest/",
"Changelog": "https://github.com/pennersr/django-allauth/blob/main/ChangeLog.rst",
"Source": "https://github.com/pennersr/django-allauth",
"Tracker": "https://github.com/pennersr/django-allauth/issues",
"Donate": "https://github.com/sponsors/pennersr",
},
tests_require=[
"Pillow >= 9.0",
],
install_requires=[
"Django >= 3.0",
"python3-openid >= 3.0.8",
"requests-oauthlib >= 0.3.0",
"requests",
"pyjwt[crypto] >= 1.7",
],
python_requires=">=3.7",
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Environment :: Web Environment",
"Topic :: Internet",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Django",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
],
packages=find_packages(exclude=["example"]),
)

if __name__ == "__main__":
setup(**METADATA)
setup()

0 comments on commit ca50b5e

Please sign in to comment.