Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Leonard
kisfido
Commits
1f6fc770
Commit
1f6fc770
authored
Jan 14, 2021
by
Carl Schaffer
Browse files
adding basic frames
parent
b59f8e01
Changes
4
Hide whitespace changes
Inline
Side-by-side
rename_me_to_your_awesome_name/__init__.py
0 → 100644
View file @
1f6fc770
rename_me_to_your_awesome_name/sample_module.py
0 → 100644
View file @
1f6fc770
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
rename_me_to_your_awesome_name/tests/test_sample_module.py
0 → 100644
View file @
1f6fc770
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
()
setup.py
0 → 100644
View file @
1f6fc770
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"
,
],
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment