-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (55 loc) · 1.77 KB
/
Copy pathsetup.py
File metadata and controls
65 lines (55 loc) · 1.77 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""The setup script."""
from setuptools import setup, find_packages
from pathlib import Path
# Package meta-data.
NAME = 'DeepStorm'
DESCRIPTION = "Deep Learning framework from scratch"
URL = 'https://github.com/HassanRady/' + NAME
EMAIL = 'hassan.khaled.rady@gmail.com'
AUTHOR = "Hassan Rady"
REQUIRES_PYTHON = "==3.9.16"
# Load the package's VERSION file as a dictionary.
about = {}
ROOT_DIR = Path(__file__).resolve().parent
REQUIREMENTS = ROOT_DIR/ 'requirements.txt'
PACKAGE_DIR = ROOT_DIR / NAME
with open(PACKAGE_DIR / "VERSION") as f:
_version = f.read().strip()
about["__version__"] = _version
# Long description
with open('README.md') as readme_file:
readme = readme_file.read()
# What packages are required for this module to be executed?
def list_reqs():
with open(REQUIREMENTS) as fd:
return fd.read().splitlines()
test_requirements = ['pytest>=3', ]
setup(
author=AUTHOR,
author_email=EMAIL,
name=NAME,
version=about["__version__"],
description=DESCRIPTION,
long_description_content_type='text/markdown',
long_description=readme,
url=URL,
python_requires=REQUIRES_PYTHON,
install_requires=list_reqs(),
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
license="MIT license",
include_package_data=True,
keywords='Tweets',
packages=find_packages(include=[NAME, NAME + '.*']),
test_suite='tests',
tests_require=test_requirements,
zip_safe=False,
)