From 383c949dc9a5296cf538b85cd4148d5f46a48eae Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 17 Aug 2021 19:57:42 +0200 Subject: [PATCH] Setup files Signed-off-by: Yohann D'ANELLO --- .gitignore | 1 + MANIFEST.in | 2 ++ main.py | 8 +------- pscheck/__main__.py | 7 +++++++ setup.cfg | 32 ++++++++++++++++++++++++++++++++ setup.py | 5 +++++ 6 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 MANIFEST.in mode change 100755 => 120000 main.py create mode 100755 pscheck/__main__.py create mode 100644 setup.cfg create mode 100755 setup.py diff --git a/.gitignore b/.gitignore index 9b247de..652f405 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ +*.egg-info *.pyc *.txt diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..98e58f4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +# Include source code and certificates +recursive-include pscheck *.py *.crt diff --git a/main.py b/main.py deleted file mode 100755 index 1ccd861..0000000 --- a/main.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env python - -from pscheck import pscheck - - -if __name__ == '__main__': - pscheck.main() diff --git a/main.py b/main.py new file mode 120000 index 0000000..61b7f55 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +pscheck/__main__.py \ No newline at end of file diff --git a/pscheck/__main__.py b/pscheck/__main__.py new file mode 100755 index 0000000..1ccd861 --- /dev/null +++ b/pscheck/__main__.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +from pscheck import pscheck + + +if __name__ == '__main__': + pscheck.main() diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..4116a2f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,32 @@ +[metadata] +name = pscheck +long_description = file: README.rst +long_description_content_type = text/markdown +description = Vérificateur de pass sanitaire +maintainer = Ÿnérant +maintainer_email = ynerant@crans.org +url = https://git.ynerant.fr/ynerant/pass-sanitaire-check +keywords = green, certificate, france, europe, covid, coronavirus +classifiers = + Development Status :: 4 - Beta + Operating System :: OS Independent + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + +[options] +packages = find: +include_package_data = True +install_requires = + cbor2>=5.2.0 + cryptography>=3.3.2 +python_requires = >=3.6 + +[options.entry_points] +console_scripts = + pscheck = pscheck.pscheck:main + +[bdist_wheel] +; pure python +universal = 1 diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..229b2eb --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +from setuptools import setup + +setup()