-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
72 lines (63 loc) · 2.31 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
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
66
67
68
69
70
71
72
# pylint: skip-file
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
# The directory containing this file
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def read_requirements():
"""Read requirements from requirements.txt."""
with open(path.join(HERE, 'requirements.txt'), encoding='utf-8') as f:
requirements = f.read().splitlines()
return requirements
# This call to setup() does all the work
setup(
name="mlpath",
version="1.1.10",
description="A lightweight api for machine and deep learning experiment logging in the form of a python library. ",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://mlpath.readthedocs.io/",
author="Essam W., Abdullah A.",
author_email="[email protected]",
license="GPLv3",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent"
],
packages=["mlpath",
"mlpath.mlquest",
"mlpath.mldir_cli",
],
include_package_data=True,
package_data={"mlpath.mldir_cli.*" :['*.zip', '*.png', '*pdf', '*jpeg','*ipynb', '*html', '*css', '*pkl', '*js']},
install_requires=['varname', 'click', 'flask', 'ipython'],
entry_points='''
[console_scripts]
mldir=mlpath.mldir_cli.cli:main
mlweb=mlpath.mldir_cli.cli:web
'''
)
# find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
# find . -name __MACOSX -exec rm -rf {} \;
# find . -name ".DS_Store" -type f -delete
# Steps to upload to PyPI
# 0 - Increment the version number in setup.py
# 1 - Remove the dist folder
# 2- python3 setup.py sdist bdist_wheel
# 3 - twine upload dist/*
# Steps to build docs
# 1 - cd docs
# 2 - make html
# 3 - cd _build/html