Building from sourceΒΆ
To build the ytools3
package from source using setuptools
, run the following command:
$ python3 setup.py sdist bdist_wheel
setuptools
is configured using the file setup.py
.
Different formats are available for built distributions
Format |
Description |
Notes |
---|---|---|
|
gzipped tar file ( |
default on Unix |
|
bzipped tar file ( |
|
|
bzipped tar file ( |
|
|
tar file ( |
|
|
zip file ( |
default on Windows |
|
self-extracting ZIP file for Windows |
|
|
Microsoft Installer |
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 | #!/usr/bin/env python
# This file is managed by `repo_helper`. Don't edit it directly
"""Setup script"""
# stdlib
import sys
# 3rd party
from setuptools import setup
sys.path.append(".")
# this package
from __pkginfo__ import * # pylint: disable=wildcard-import
setup(
extras_require=extras_require,
install_requires=install_requires,
py_modules=[],
version=__version__,
)
|
__pkginfo__.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 | # This file is managed by `repo_helper`. Don't edit it directly
# Copyright (C) 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# This file is distributed under the same license terms as the program it came with.
# There will probably be a file called LICEN[S/C]E in the same directory as this file.
#
# In any case, this program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# This script based on https://github.com/rocky/python-uncompyle6/blob/master/__pkginfo__.py
#
# stdlib
import pathlib
__all__ = [
"__copyright__",
"__version__",
"modname",
"pypi_name",
"__license__",
"__author__",
"short_desc",
"author",
"author_email",
"github_username",
"web",
"github_url",
"repo_root",
"install_requires",
"extras_require",
"project_urls",
"import_name",
]
__copyright__ = """
2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
"""
__version__ = "3.0.1"
modname = "ytools3"
pypi_name = "ytools3"
import_name = "ytools"
__license__ = "Apache2.0"
short_desc = "Library for validating `yaml` files against schema and selectively dumping nodes from `yaml` (or `json`) documents in `yaml` or `json` format."
__author__ = author = "Dominic Davis-Foster"
author_email = "dominic@davis-foster.co.uk"
github_username = "domdfcoding"
web = github_url = "https://github.com/domdfcoding/ytools3"
repo_root = pathlib.Path(__file__).parent
install_requires = (repo_root / "requirements.txt").read_text(encoding="utf-8").split('\n')
extras_require = {'all': []}
project_urls = {
"Documentation": "https://ytools3.readthedocs.io",
"Issue Tracker": f"{github_url}/issues",
"Source Code": github_url,
}
|