Skip to content

Commit

Permalink
Getting ready for PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiibrahim8 committed Aug 10, 2020
1 parent 8498aae commit b822d33
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This program can be used for hiding text or a file inside an audio file. The pro
# INSTALLATION
From a command line enter the command to install asteg
```
python3 -m pip install git+https://github.com/rafiibrahim8/asteg.git
pip install asteg
```
You need to have python 3 installed. asteg won't run on python 2.
# USES
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
37 changes: 22 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
# this file was taken as template from https://github.com/coursera-dl/coursera-dl/blob/master/setup.py

from setuptools import setup
from asteg import __version__

def read_file(filename, alt=None):
"""
Read the contents of filename or give an alternative result instead.
"""
lines = None

def read_file(filename):
try:
with open(filename, encoding='utf-8') as f:
lines = f.read()
except IOError:
lines = [] if alt is None else alt
return lines

return f.read()
except:
return []

requirements = read_file('requirements.txt')

setup(
name='asteg',
version=__version__,
maintainer='Ibrahim Rafi',
maintainer_email='[email protected]',

author='Ibrahim Rafi',
author_email='[email protected]',

license='MIT',

url='https://github.com/rafiibrahim8/asteg',
download_url = 'https://github.com/rafiibrahim8/asteg/archive/v{}.tar.gz'.format(__version__),

install_requires=requirements,

Expand All @@ -41,4 +35,17 @@ def read_file(filename, alt=None):
),

platforms=['any'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Security :: Cryptography',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)

0 comments on commit b822d33

Please sign in to comment.