-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.13 KB
/
setup.py
File metadata and controls
36 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import pathlib
from setuptools import setup
# The directory containing this file
BASE_PATH = pathlib.Path(__file__).resolve().parent
# The text of the README file
README = (BASE_PATH / "README.md").read_text()
# This call to setup() does all the work
setup(
name="drf-2fa",
version="1.0.4",
description="Integrate 2 Factor Authentication in Your Django REST API project easily.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/farhad0085/drf-2fa",
author="Farhad Hossain",
author_email="farhadhossain0085@gmail.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
],
packages=["drf_2fa", "drf_2fa/migrations", "drf_2fa/backends"],
package_data={'drf_2fa': ['templates/**/**/*.*']},
include_package_data=True,
install_requires=["qrcode==7.4.2", "django>=2.2", "djangorestframework>=3.14"],
)
# build
# update version name before building
# python setup.py sdist bdist_wheel
# upload to pypi
# twine upload dist/*