- commit
- a22c373d9e4c55118e846376527791bf4684b0b9
- parent
- 8926c837be05b42e2a73dc5d2ae704f5ae17907d
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-04 11:04
replace setup.py by pyproject.toml
Diffstat
| M | .github/workflows/main.yml | 3 | ++- |
| M | pyproject.toml | 36 | +++++++++++++++++++++++++++++++++++- |
| D | setup.py | 33 | --------------------------------- |
3 files changed, 37 insertions, 35 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
@@ -37,8 +37,9 @@ jobs: 37 37 steps: 38 38 - uses: actions/checkout@v4 39 39 - uses: actions/setup-python@v4 -1 40 - run: pip install build 40 41 - name: build41 -1 run: python3 setup.py bdist_wheel sdist-1 42 run: python3 -m build 42 43 - name: publish 43 44 uses: pypa/gh-action-pypi-publish@release/v1 44 45 with:
diff --git a/pyproject.toml b/pyproject.toml
@@ -1,7 +1,41 @@ 1 1 [build-system]2 -1 requires = ["setuptools", "wheel"]-1 2 requires = ["setuptools"] 3 3 build-backend = "setuptools.build_meta" 4 4 -1 5 [project] -1 6 name = "django-mfa3" -1 7 version = "0.11.0" -1 8 description = "multi factor authentication for django" -1 9 readme = "README.md" -1 10 license = {text = "MIT"} -1 11 keywords = ["django", "mfa", "two-factor-authentication", "webauthn", "fido2"] -1 12 authors = [ -1 13 {name = "Tobias Bengfort", email = "tobias.bengfort@posteo.de"}, -1 14 ] -1 15 classifiers = [ -1 16 "Development Status :: 4 - Beta", -1 17 "Environment :: Web Environment", -1 18 "Framework :: Django", -1 19 "Intended Audience :: Developers", -1 20 "License :: OSI Approved :: MIT License", -1 21 "Operating System :: OS Independent", -1 22 "Programming Language :: Python", -1 23 "Programming Language :: Python :: 3", -1 24 ] -1 25 dependencies = [ -1 26 "pyotp", -1 27 "fido2>=1.0.0", -1 28 # https://github.com/lincolnloop/python-qrcode/issues/317 -1 29 "qrcode>=7.1,<7.4", -1 30 "django>=3.2", -1 31 ] -1 32 -1 33 [project.urls] -1 34 Homepage = "https://github.com/xi/django-mfa3" -1 35 -1 36 [tool.setuptools.packages.find] -1 37 include = ["mfa*"] -1 38 5 39 [tool.ruff] 6 40 target-version = "py37" 7 41 exclude = ["migrations"]
diff --git a/setup.py b/setup.py
@@ -1,33 +0,0 @@1 -1 from setuptools import find_packages, setup2 -13 -14 -1 setup(5 -1 name='django-mfa3',6 -1 description='multi factor authentication for django',7 -1 long_description=open('README.md').read(),8 -1 long_description_content_type='text/markdown',9 -1 url='https://github.com/xi/django-mfa3',10 -1 author='Tobias Bengfort',11 -1 author_email='tobias.bengfort@posteo.de',12 -1 version='0.11.0',13 -1 license='MIT',14 -1 packages=['mfa'],15 -1 include_package_data=True,16 -1 install_requires=[17 -1 'pyotp',18 -1 'fido2>=1.0.0',19 -1 # https://github.com/lincolnloop/python-qrcode/issues/31720 -1 'qrcode>=7.1,<7.4',21 -1 'django>=3.2',22 -1 ],23 -1 classifiers=[24 -1 'Development Status :: 4 - Beta',25 -1 'Environment :: Web Environment',26 -1 'Framework :: Django',27 -1 'Intended Audience :: Developers',28 -1 'License :: OSI Approved :: MIT License',29 -1 'Operating System :: OS Independent',30 -1 'Programming Language :: Python',31 -1 'Programming Language :: Python :: 3',32 -1 ],33 -1 )