This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·53 lines (48 loc) · 1.54 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
def read(fname):
"""
Returns the contents of the file in the top level directory with the name
``fname``.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_files(path):
relative_to = os.path.dirname(path)
result = []
for dirpath, dirnames, filenames in os.walk(path):
result += [os.path.relpath(os.path.join(dirpath, i), relative_to)
for i in filenames]
return result
setup(
name = "superzippy",
version = read("VERSION").strip(),
author = "John Sullivan and other contributers",
author_email = "[email protected]",
description = (
"A Python utility for packaging up multi-file Python scripts into a "
"single file, dependencies and all."
),
license = "Apache v2.0",
keywords = "python packaging",
url = "https://www.github.com/itsjohncs/superzippy",
long_description = read("README.rst"),
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License"
],
packages = find_packages(),
entry_points = {
"console_scripts": [
"superzippy = superzippy.packaging:run"
]
},
# This ensures that the MANIFEST.IN file is used for both binary and source
# distributions.
include_package_data = True,
zip_safe = True,
data_files = [
(".", ["LICENSE", "README.rst", "VERSION"])
]
)