-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
45 lines (39 loc) · 1.28 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
"""deterministic_zip setup.py."""
import re
from codecs import open
from os import path
from setuptools import setup
PACKAGE_NAME = "deterministic_zip"
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, "README.md"), encoding="utf-8") as fp:
README = fp.read()
with open(
path.join(HERE, PACKAGE_NAME, "__init__.py"), encoding="utf-8"
) as fp:
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
extras_require = {
"dev": ["pre-commit"],
"lint": ["black", "flake8"],
"test": ["pytest"],
}
extras_require["dev"] = sorted(set(sum(extras_require.values(), [])))
setup(
name=PACKAGE_NAME,
author="Bryce Boe",
author_email="[email protected]",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
],
description="A program to create deterministic zip files.",
entry_points={"console_scripts": ["{0} = {0}:main".format(PACKAGE_NAME)]},
extras_require=extras_require,
keywords="aws lambda zip",
license="Simplified BSD License",
long_description=README,
long_description_content_type="text/markdown",
packages=[PACKAGE_NAME],
url="https://github.com/bboe/deterministic_zip",
version=VERSION,
)