-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
setup.py
84 lines (74 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
"""
This is the setup module for the foundry-vtt docker project.
Based on:
- https://packaging.python.org/distributing/
- https://github.com/pypa/sampleproject/blob/master/setup.py
- https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure
"""
# Standard Python Libraries
from glob import glob
from os.path import basename, splitext
# Third-Party Libraries
from setuptools import find_packages, setup
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
setup(
name="foundryvtt_docker",
# Versions should comply with PEP440
version=package_vars("src/_version.py")["__version__"],
description="foundryvtt_docker python library",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/felddy",
# The project's main homepage
download_url="https://github.com/felddy/foundryvtt-docker",
# Author details
author="Mark Feldhousen",
author_email="markf@geekpad.com",
license="License :: OSI Approved :: MIT License",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"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 :: 3.10",
"Topic :: Games/Entertainment :: Role-Playing",
],
python_requires=">=3.6",
# What does your project relate to?
keywords="foundryvtt",
packages=find_packages(where="src"),
package_dir={"": "src"},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
install_requires=[
"semver == 3.0.2",
"setuptools == 75.3.0",
"wheel == 0.44.0",
],
extras_require={
"test": [
"coverage == 7.6.4",
"coveralls == 4.0.1",
"docker == 7.1.0",
"pre-commit == 4.0.1",
"pytest == 8.3.3",
"pytest-cov == 6.0.0",
]
},
)