diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a710d10 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.tox/ +/build/ +/dist/ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..ab30e9a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include *.txt diff --git a/sandbox/__init__.py b/sandbox/__init__.py new file mode 100644 index 0000000..2bd700f --- /dev/null +++ b/sandbox/__init__.py @@ -0,0 +1,2 @@ +def useful_function(): + return 42 diff --git a/sandbox/tests/__init__.py b/sandbox/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sandbox/tests/test_useful.py b/sandbox/tests/test_useful.py new file mode 100644 index 0000000..66eee61 --- /dev/null +++ b/sandbox/tests/test_useful.py @@ -0,0 +1,5 @@ +from sandbox import useful_function + + +def test_useful_ok(): + assert useful_function() == 42, 'you forgot your towel!' diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e42750c --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + +setup( + name='swh-sandbox', + description='Sandbox project', + version='0.0.1', + author='Software Heritage developers', + author_email='swh-devel@inria.fr', + url='https://forge.softwareheritage.org/source/sandbox', + packages=find_packages(), + include_package_data=True, + classifiers=[ + "Programming Language :: Python :: 3", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # noqa + "Operating System :: OS Independent", + "Development Status :: 5 - Production/Stable", + ], + project_urls={ + 'Bug Reports': 'https://forge.softwareheritage.org/maniphest', + 'Funding': 'https://www.softwareheritage.org/donate', + 'Source': 'https://forge.softwareheritage.org/source/sandbox', + }, +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..f59a702 --- /dev/null +++ b/tox.ini @@ -0,0 +1,15 @@ +[tox] +envlist=flake8,py3 + +[testenv:py3] +deps = + pytest-cov +commands = + pytest --cov=sandbox --cov-branch {posargs} + +[testenv:flake8] +skip_install = true +deps = + flake8 +commands = + {envpython} -m flake8