-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (33 loc) · 1.04 KB
/
setup.py
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 setuptools
from setuptools import find_packages
import re
with open("./src/__init__.py", "r") as f:
content = f.read()
project_version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content
).group(1)
with open("README.md", "r") as f_readme:
long_description = f_readme.read()
setuptools.setup(
name="NAME_YOUR_PROJECT#1",
version=project_version,
author_email="[email protected]",
description="YOUR_DESCRIPTION",
long_description=long_description,
long_description_contet_type="text/markdown",
url="YOUR_URL_PROJECT",
install_requires=[
# LIST LIBRARY REQUIRE FOR PROJECT
],
packages=find_packages(exclude=("tests",)),
extra_require={
"dev": ["flake8", "black", "isort", "twine", "pytest", "wheel"],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
# python version require recommended 3.8 or 3.7
python_requires=">=3.8"
)