Skip to content

Commit

Permalink
fix: python: ModuleNotFoundError: No module named 'version'
Browse files Browse the repository at this point in the history
  • Loading branch information
sabuhish committed Jan 5, 2021
1 parent 85b408b commit 48427eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
7 changes: 7 additions & 0 deletions fastapi_mail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
from fastapi_mail.schemas import MessageSchema,MultipartSubtypeEnum
from . import email_utils

import sys



__version__ = "0.3.3.1"



__author__ = "[email protected]"

Expand Down
6 changes: 2 additions & 4 deletions fastapi_mail/msg.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import time

import sys
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart

from email.utils import formatdate, make_msgid

from version import PY3
from email.encoders import encode_base64

PY3 = sys.version_info[0] == 3

class MailMsg:
"""
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import setuptools

import fastapi_mail
with open("README.md", "r") as fh:
long_description = fh.read()

test_dependencies = ["pytest", "pytest-asyncio", "pytest-mock", "pytest-cov"]

setuptools.setup(
name="fastapi-mail",
version=__import__("version").VERSION,
version=fastapi_mail.__version__,
author="Sabuhi Shukurov",
author_email="[email protected]",
description="Simple lightwigh mail sending for FastApi",
Expand Down
6 changes: 0 additions & 6 deletions version.py

This file was deleted.

0 comments on commit 48427eb

Please sign in to comment.