-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
59 lines (56 loc) · 1.94 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
from importlib.machinery import SourceFileLoader
from pathlib import Path
from setuptools import setup
description = 'Utility for defining then downloading and preprocessing external static files.'
THIS_DIR = Path(__file__).resolve().parent
try:
long_description = (THIS_DIR / 'README.rst').read_text()
except FileNotFoundError:
long_description = description + '.\n\nSee https://github.com/samuelcolvin/grablib for documentation.'
# importing just this file avoids importing the full package with external dependencies which might not be installed
version = SourceFileLoader('version', 'grablib/version.py').load_module()
setup(
name='grablib',
version=version.VERSION,
description=description,
long_description=long_description,
long_description_content_type='text/x-rst',
classifiers=[
'Environment :: Console',
'Environment :: Web Environment',
'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',
'Programming Language :: Python :: Implementation :: CPython',
],
keywords='css,sass,scss,build,static,download',
author='Samuel Colvin',
license='MIT',
author_email='S@muelColvin.com',
url='https://github.com/samuelcolvin/grablib',
packages=['grablib'],
include_package_data=True,
zip_safe=True,
platforms='any',
python_requires='>=3.6',
entry_points="""
[console_scripts]
grablib=grablib.cli:cli
""",
install_requires=[
'click>=6.6',
'ruamel.yaml>=0.15.37',
'requests>=2.20',
],
extras_require={
'build': [
'jsmin>=2.2.1',
'libsass>=0.14.4',
],
}
)