-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8498aae
commit b822d33
Showing
3 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
|
||
|
@@ -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', | ||
], | ||
) |