Feat: packaging #127
@ -1,4 +0,0 @@
 | 
				
			|||||||
[pytest]
 | 
					 | 
				
			||||||
DJANGO_SETTINGS_MODULE = instance.settings
 | 
					 | 
				
			||||||
# -- recommended but optional:
 | 
					 | 
				
			||||||
python_files = tests.py test_*.py *_tests.py
 | 
					 | 
				
			||||||
							
								
								
									
										37
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								setup.py
									
									
									
									
									
								
							@ -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",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user