-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·59 lines (49 loc) · 1.84 KB
/
setup.py
File metadata and controls
executable file
·59 lines (49 loc) · 1.84 KB
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
#!/usr/bin/env python3
import unittest
from setuptools import setup, find_packages
def readme():
"""Read in and return the contents of the project's README.md file."""
with open("README.md", encoding="utf-8") as f:
return f.read()
def package_vars(version_file):
"""Read in and return the variables defined by the version_file."""
pkg_vars = {}
with open(version_file) as f:
exec(f.read(), pkg_vars) # nosec
return pkg_vars
def test_suite():
loader = unittest.TestLoader()
suite = loader.discover('inline_importer/tests', pattern='test_*.py')
return suite
setup(
name="inline-importer",
# Versions should comply with PEP440
version=package_vars("inline_importer/_version.py")["__version__"],
description="Python module inlining library",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/MagnaXSoftware/python-inlineimporter",
# Author details
author="MagnaX Software",
author_email="info@magnax.ca",
license="License :: OSI Approved :: MIT License",
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
python_requires="~=3.4",
packages=find_packages(exclude=()),
test_suite='setup.test_suite',
entry_points={"console_scripts": ["inline-python = inline_importer.__main__:main"]},
)