-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
49 lines (40 loc) · 1.84 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
import setuptools
from swtloc import __version__ as current_version
""""
versioning : x[Major Update].x[Minor Update].x[Fixes]
"""
# Command to upload to pypi : cls & rmdir /s /q build dist swtloc.egg-info & python setup.py sdist & python setup.py bdist_wheel & twine upload dist/*
# Installation :- pip install --no-cache-dir -I swtloc
def parse_requirements(filename):
""" load requirements from a pip requirements file """
try:
line_iter = (line.strip() for line in open(filename))
temp = [line.replace('==', '>=') for line in line_iter if line and not line.startswith("#")]
return [k for k in temp if 'scikit-learn' not in k]
except:
return []
# Constants
REQS = parse_requirements('requirements.txt')
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
CLASSIFIERS = ["Programming Language :: Python :: 3",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries"]
# Package Setup
setuptools.setup(name="swtloc",
version=current_version,
author="Achintya Gupta",
author_email="ag.ds.bubble@gmail.com",
description="Python Library for Stroke Width Transform",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ag-ds-bubble/swtloc",
packages=['swtloc'],
install_requires=REQS,
classifiers=CLASSIFIERS,
python_requires='>=3.6')