work on setup
This commit is contained in:
parent
f03acb4c1b
commit
697522b98c
3
Manifest.in
Normal file
3
Manifest.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
include LICENSE
|
||||
include README.md
|
||||
|
0
aircox/__init__.py
Normal file
0
aircox/__init__.py
Normal file
|
@ -1,6 +0,0 @@
|
|||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
||||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
||||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
||||
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
||||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
||||
!_TAG_PROGRAM_VERSION 5.8 //
|
28
setup.py
28
setup.py
|
@ -1,27 +1,29 @@
|
|||
import os
|
||||
from setuptools import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
cwd = os.path.dirname(__file__)
|
||||
with open(os.path.join(cwd, 'README.md')) as readme:
|
||||
README = readme.read()
|
||||
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()
|
||||
|
||||
with open(os.path.join(cwd, 'requirements.txt')) as requirements:
|
||||
REQUIREMENTS = requirements.read()
|
||||
REQUIREMENTS = [r for r in REQUIREMENTS.split('\n') if r]
|
||||
|
||||
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
||||
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.1',
|
||||
license='GPLv3',
|
||||
author='bkfox',
|
||||
description='Aircox is a radio programs manager that includes tools and cms'
|
||||
long_description=README,
|
||||
description='Aircox is a radio programs manager that includes tools and cms',
|
||||
long_description=to_rst('README.md'),
|
||||
url='http://bkfox.net/',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
packages = ['aircox']
|
||||
install_requires=REQUIREMENTS,
|
||||
install_requires=to_array('requirements.txt'),
|
||||
classifiers=[
|
||||
'Framework :: Django',
|
||||
'Programming Language :: Python',
|
||||
|
|
Loading…
Reference in New Issue
Block a user