| 1 |
"""Rachiopy setup script.""" |
| 2 |
from setuptools import find_packages, setup |
| 3 |
from datetime import datetime |
| 4 |
from pathlib import Path |
| 5 |
|
| 6 |
NOW = datetime.now().strftime("%m%d%Y%H%M%S") |
| 7 |
|
| 8 |
VERSION = "1.1.0" |
| 9 |
|
| 10 |
GITHUB_USERNAME = "rfverbruggen" |
| 11 |
GITHUB_REPOSITORY = "rachiopy" |
| 12 |
|
| 13 |
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}" |
| 14 |
GITHUB_URL = f"https://github.com/{GITHUB_PATH}" |
| 15 |
|
| 16 |
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VERSION}.tar.gz" |
| 17 |
PROJECT_URLS = {"Bug Reports": f"{GITHUB_URL}/issues"} |
| 18 |
|
| 19 |
PACKAGES = find_packages(exclude=["tests", "tests.*"]) |
| 20 |
|
| 21 |
|
| 22 |
this_directory = Path(__file__).parent |
| 23 |
long_description = (this_directory / "README.md").read_text() |
| 24 |
|
| 25 |
setup( |
| 26 |
name="RachioPy", |
| 27 |
version=VERSION, |
| 28 |
author="Robbert Verbruggen", |
| 29 |
author_email="[email protected]", |
| 30 |
packages=PACKAGES, |
| 31 |
install_requires=["requests"], |
| 32 |
url=GITHUB_URL, |
| 33 |
download_url=DOWNLOAD_URL, |
| 34 |
project_urls=PROJECT_URLS, |
| 35 |
license="MIT", |
| 36 |
description="A Python module for the Rachio API.", |
| 37 |
long_description=long_description, |
| 38 |
long_description_content_type='text/markdown', |
| 39 |
platforms="Cross Platform", |
| 40 |
classifiers=[ |
| 41 |
"Development Status :: 5 - Production/Stable", |
| 42 |
"Intended Audience :: Developers", |
| 43 |
"License :: OSI Approved :: MIT License", |
| 44 |
"Operating System :: OS Independent", |
| 45 |
"Programming Language :: Python :: 3", |
| 46 |
"Topic :: Software Development", |
| 47 |
], |
| 48 |
) |