Feat: packaging #127

Merged
thomas merged 2 commits from dev-1.0-packaging into develop-1.0 2023-10-11 08:58:35 +00:00
2 changed files with 0 additions and 41 deletions
Showing only changes of commit 140607c4ba - Show all commits

View File

@ -1,4 +0,0 @@
[pytest]
DJANGO_SETTINGS_MODULE = instance.settings
# -- recommended but optional:
python_files = tests.py test_*.py *_tests.py

View File

@ -1,37 +0,0 @@
from setuptools import find_packages, setup
def to_rst(path):
try:
from pypandoc import convert
return convert(path, "rst")
except ImportError:
print("pypandoc module not found, can not convert Markdown to RST")
return open(path, "r").read()
def to_array(path):
with open(path, "r") as file:
return [r for r in file.read().split("\n") if r]
setup(
name="aircox",
version="0.9",
license="GPLv3",
author="bkfox",
description="Aircox is a radio programs manager including tools and cms",
long_description=to_rst("README.md"),
url="https://github.com/bkfox/aircox",
packages=find_packages(),
include_package_data=True,
install_requires=to_array("requirements.txt"),
classifiers=[
"Framework :: Django",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
],
)