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
|
import os
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
cwd = os.path.dirname(__file__)
|
def to_rst (path):
|
||||||
with open(os.path.join(cwd, 'README.md')) as readme:
|
try:
|
||||||
README = readme.read()
|
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:
|
def to_array (path):
|
||||||
REQUIREMENTS = requirements.read()
|
with open(path, 'r') as file:
|
||||||
REQUIREMENTS = [r for r in REQUIREMENTS.split('\n') if r]
|
return [r for r in file.read().split('\n') if r]
|
||||||
|
|
||||||
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='aircox',
|
name='aircox',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
author='bkfox',
|
author='bkfox',
|
||||||
description='Aircox is a radio programs manager that includes tools and cms'
|
description='Aircox is a radio programs manager that includes tools and cms',
|
||||||
long_description=README,
|
long_description=to_rst('README.md'),
|
||||||
url='http://bkfox.net/',
|
url='http://bkfox.net/',
|
||||||
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
packages = ['aircox']
|
install_requires=to_array('requirements.txt'),
|
||||||
install_requires=REQUIREMENTS,
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Framework :: Django',
|
'Framework :: Django',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user