mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-13 01:18:31 +02:00
Added MANIFEST for pypi.
This commit is contained in:
parent
fd058ded26
commit
74b25de03c
3 changed files with 44 additions and 18 deletions
12
MANIFEST.in
Normal file
12
MANIFEST.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#documentation
|
||||||
|
recursive-include docs/ *
|
||||||
|
|
||||||
|
#example files
|
||||||
|
recursive-include examples/ *
|
||||||
|
|
||||||
|
# binary files
|
||||||
|
recursive-include bin/*
|
||||||
|
|
||||||
|
#Misc
|
||||||
|
include COPYING
|
||||||
|
include requirements.txt
|
2
setup.cfg
Normal file
2
setup.cfg
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[metadata]
|
||||||
|
description-file = README.md
|
34
setup.py
34
setup.py
|
@ -1,41 +1,53 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import setuptools
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from distutils.core import setup, Extension
|
try:
|
||||||
|
from setuptools import setup
|
||||||
|
except ImportError:
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
packages = [
|
||||||
|
'stegano',
|
||||||
|
'stegano.exif',
|
||||||
|
'bin'
|
||||||
|
]
|
||||||
|
|
||||||
requires = ['pillow']
|
requires = ['pillow']
|
||||||
|
|
||||||
kw = {'install_requires': requires}
|
with open('README.md', 'r') as f:
|
||||||
|
readme = f.read()
|
||||||
def read(fname):
|
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Stegano',
|
name='Stegano',
|
||||||
version='0.4',
|
version='0.4',
|
||||||
author='Cédric Bonhomme',
|
author='Cédric Bonhomme',
|
||||||
author_email='cedric@cedricbonhomme.org',
|
author_email='cedric@cedricbonhomme.org',
|
||||||
packages=['stegano'],
|
packages=packages,
|
||||||
|
include_package_data=True,
|
||||||
#scripts=[''],
|
#scripts=[''],
|
||||||
url='https://bitbucket.org/cedricbonhomme/stegano',
|
url='https://bitbucket.org/cedricbonhomme/stegano',
|
||||||
long_description=read('README.md'),
|
description='A Python Steganography module.',
|
||||||
|
long_description=readme,
|
||||||
platforms = ['Linux'],
|
platforms = ['Linux'],
|
||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
description='A Python Steganography module.',
|
install_requires=requires,
|
||||||
|
zip_safe=False,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
"Environment :: Console",
|
"Environment :: Console",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python :: 2.7",
|
||||||
|
"Programming Language :: Python :: 3.4",
|
||||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
|
||||||
],
|
]
|
||||||
**kw
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if sys.argv[-1] == "install":
|
||||||
print("Installing binaries")
|
print("Installing binaries")
|
||||||
shutil.copy2("./bin/slsb-set", "/bin/slsb-set")
|
shutil.copy2("./bin/slsb-set", "/bin/slsb-set")
|
||||||
shutil.copymode("./bin/slsb-set", "/bin/slsb-set")
|
shutil.copymode("./bin/slsb-set", "/bin/slsb-set")
|
||||||
|
|
Loading…
Add table
Reference in a new issue