Skip to content

Commit

Permalink
Uses setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXten committed Jun 30, 2019
1 parent e1e6191 commit f1f3b1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions setup.cfg
@@ -1,4 +1,4 @@
[metadata]
description-file = README.md
[aliases]
test=pytest
test=pytest
[options]
setup_requires=setuptools_scm
16 changes: 7 additions & 9 deletions setup.py
@@ -1,22 +1,18 @@
from setuptools import setup, find_packages

# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
#from os import path
#this_directory = path.abspath(path.dirname(__file__))
#with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()

setup(
name='threatspec',
description='threat modeling as code',
long_description=long_description,
long_description_content_type='text/markdown',
version='0.2.11',
license='MIT',
author='Fraser Scott',
author_email='fraser.scott@gmail.com',
url='https://github.com/threatspec/threatspec',
download_url='https://github.com/threatspec/threatspec/archive/v0.2.11-alpha.tar.gz',
keywords=['threat modeling', 'cyber security', 'appsec'],
packages=find_packages(),
include_package_data=True,
Expand All @@ -27,8 +23,10 @@
'pyyaml',
'jsonschema'
],
use_scm_version=True,
setup_requires=[
"pytest-runner"
"pytest-runner",
"setuptools_scm"
],
tests_require=[
'pytest'
Expand Down

0 comments on commit f1f3b1e

Please sign in to comment.