Commit 1f6fc770 authored by Carl Schaffer's avatar Carl Schaffer
Browse files

adding basic frames

parent b59f8e01
def add(a,b):
"""
Add two numbers
:param a: first number
:param b: second number
:return:
"""
result = a+b
return result
\ No newline at end of file
from rename_me_to_your_awesome_name.sample_module import add
from unittest import TestCase
class TestSampleModule(TestCase):
def test_add(self):
self.assertEqual(add(1,1),2)
if __name__ == "__main__":
with open(os.devnull, "w") as log:
unittest.main()
import setuptools
from glob import glob
# Pull project description from README
with open("README.md") as f:
README = f.read()
# Increment according to semantic versioning, google if necessary
version = "0.0.0"
#
with open('requirements.txt', 'r') as req_file:
requirements = [line.strip() for line in req_file]
setuptools.setup(
author="YurNameHere",
author_email="your.mail@leibniz-kis.de",
name="rename_me_to_your_awesome_name",
license="MIT",
description="One line description of your project",
version=version,
long_description=README,
url="Url of the homepage, if none exists put in the gitlab repo link e.g. 'https://gitlab.leibniz-kis.de/schaffer/python-template",
packages=setuptools.find_packages(),
include_package_data=True,
python_requires=">=3.6",
# Adds executable scripts to the installer, they can be executed directly from shell in any environment where the package is installed.
scripts=glob("bin/*"),
# Dependencies are listed in 'requirements.txt'
install_requires=requirements,
#Update Classifiers as you see fit. If in doubt, leave as is and only update the license
classifiers=[
# Trove classifiers
# (https://pypi.python.org/pypi?%3Aaction=list_classifiers)
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
],
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment