Skip to content

Commit

Permalink
Completing the setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lphuberdeau committed Apr 20, 2018
1 parent b87ea71 commit 067624b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ data/
bin/
include/
lib/
lib64
man/
share/
pip-selfcheck.json
dist/

openwebvulndb_tools.egg-info/
pyvenv.cfg

# cookies
cookies*
18 changes: 18 additions & 0 deletions openwebvulndb/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# openwebvulndb-tools: A collection of tools to maintain vulnerability databases
# Copyright (C) 2016- Delve Labs inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

__version__ = "1.0.0"
25 changes: 18 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
#!/usr/bin/env python

try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup


version_file = "openwebvulndb/__version__.py"
version_data = {}
with open(version_file) as f:
code = compile(f.read(), version_file, 'exec')
exec(code, globals(), version_data)

reqs = [str(x.req) for x in parse_requirements('./requirements.txt', session=False)]


setup(name='openwebvulndb-tools',
version=version_data['__version__'],
description='A collection of tools to maintain vulnerability databases.',
author='Delve Labs inc.',
author_email='info@delvelabs.ca',
url='https://github.com/delvelabs/openwebvulndb-tools',
packages=['openwebvulndb.common', 'openwebvulndb.wordpress'],
install_requires=[
'aiohttp',
'marshmallow',
'easyinject',
'packaging',
'lxml'
])
license="GPLv2",
install_requires=reqs)

0 comments on commit 067624b

Please sign in to comment.