forked from felddy/foundryvtt-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (76 loc) · 2.71 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
85
86
"""
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="[email protected]",
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=[
"docker-compose == 1.29.2",
"semver == 2.13.0",
"setuptools == 67.1.0",
"wheel == 0.38.4",
],
extras_require={
"test": [
"coverage == 6.5.0",
"coveralls == 3.3.1",
"docker == 6.0.1",
"pre-commit == 3.0.3",
"pytest == 7.2.1",
"pytest-cov == 4.0.0",
"pytest-lazy-fixture == 0.6.3",
]
},
)