make_post_sell/setup.py
russell@unturf.com 3f1a092d2e
release: 1.2.0 — wallet_dist transport (erldistpy) + mps_wallet_dist_health CLI
Bumps version to force the CI artifact to rebuild with the new
source_hash so salt-managed MPS deployments re-fetch env.tar.gz.

Includes (since 1.1.6):
  - eae627e crypto_watcher: dist clients for XMR/BTC/LTC/DOGE via erldistpy
  - b6268a9 deps: erldistpy >=0.1.6 (PyPI) — drop-in for new dist clients
  - 02f55a9 crypto_watcher: wallet_dist config + mps_wallet_dist_health CLI

mps_wallet_dist_health is the standalone CLI used to smoke-test the
TLS-dist transport against wallet@cammy.foxhop.net independent of
the crypto_watcher daemon.
2026-06-17 07:19:07 -04:00

94 lines
3.3 KiB
Python

import os
import subprocess
from setuptools import setup, find_packages
def parse_requirements(filename):
"""
Read and parse a requirements file, ignoring comments and blank lines.
"""
req_path = os.path.join(os.path.dirname(__file__), filename)
with open(req_path, "r", encoding="utf-8") as f:
lines = f.read().splitlines()
return [line.strip() for line in lines if line.strip() and not line.startswith("#")]
# Determine the runtime requirements.
install_requires = parse_requirements("requirements.py3.txt")
# Optional extras for development, production, and testing.
extras_require = {
"dev": parse_requirements("requirements-dev.txt"),
"prod": parse_requirements("requirements-prod.txt"),
"test": parse_requirements("requirements-test.txt"),
}
# Read the long description from README.rst.
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f:
long_description = f.read()
# Bake git hash into package so /version works without .git directory.
git_hash_file = os.path.join(here, "make_post_sell", "GIT_HASH")
try:
git_hash = (
subprocess.check_output(
["git", "rev-parse", "--short", "HEAD"],
cwd=here,
stderr=subprocess.DEVNULL,
)
.decode()
.strip()
)
with open(git_hash_file, "w") as f:
f.write(git_hash)
except Exception:
pass
setup(
name="make_post_sell",
version="1.2.0",
description="Make Post Sell",
long_description=long_description,
classifiers=[
"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",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author="Russell Ballestrini",
author_email="russell@ballestrini.net",
url="https://www.makepostsell.com",
keywords="make post sell web pyramid pylons ecommerce digital downloads physical goods content marketing youtube alternative",
packages=find_packages(exclude=["tests"]),
package_data={
"make_post_sell": ["scripts/alembic/*.py", "scripts/alembic/versions/*.py", "GIT_HASH", "lib/voxsplit.c"]
},
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require=extras_require,
entry_points={
"paste.app_factory": ["main = make_post_sell:main"],
"console_scripts": [
"initialize_make_post_sell_db = make_post_sell.scripts.initialize_db:main",
"crypto_watcher = make_post_sell.lib.crypto_watcher:main",
"digest_sender = make_post_sell.lib.digest_sender:main",
"mps_wallet_dist_health = make_post_sell.lib.crypto_watcher.wallet_dist_health:main",
],
},
)
# python setup.py sdist bdist_wheel
# twine upload dist/*