This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Printr/setup.py

24 lines
581 B
Python
Raw Normal View History

2015-09-26 14:04:41 +01:00
from distutils.core import setup
from json import loads as json_loads
2015-09-26 14:04:41 +01:00
LONG_DESCRIPTION = None
try:
LONG_DESCRIPTION = open('README.md').read()
except:
pass
DETAILS = None
with open('details.json') as file:
DETAILS = json_loads(file)
2015-09-26 14:04:41 +01:00
setup(
name = DETAILS.name,
packages = DETAILS.packages,
version = DETAILS.version,
description = DETAILS.description,
2015-09-26 14:25:48 +01:00
long_description = LONG_DESCRIPTION,
author = DETAILS.author,
author_email = DETAILS.author_email,
url = DETAILS.url,
license = DETAILS.license,
platforms = DETAILS.platform
2015-09-26 14:04:41 +01:00
)