From 66061d582394938160739f03c56245d5bfe97b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 24 Jun 2021 20:58:39 +0200 Subject: [PATCH] Add Python-related files --- Pipfile | 12 ++++++++++++ pyproject.toml | 6 ++++++ setup.cfg | 26 ++++++++++++++++++++++++++ src/manga-up/__init__.py | 0 src/manga-up/manga-up.py | 4 ++++ 5 files changed, 48 insertions(+) create mode 100644 Pipfile create mode 100644 pyproject.toml create mode 100644 setup.cfg create mode 100644 src/manga-up/__init__.py create mode 100644 src/manga-up/manga-up.py diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..37c73bb --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +requests = "*" + +[dev-packages] + +[requires] +python_version = "3.9" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b5a3c46 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..f91f000 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,26 @@ +[metadata] +name = manga-up +version = 0.0.1 +author = Lukáš Kucharczyk +author_email = lukas@kucharczyk.xyz +description = A simple manga update checker and downloader +long_description = file: README.md +long_description_content_type = text/markdown +license = GPLv3+ +url = https://git.kucharczyk.xyz/lukas/manga-up +project_urls = + Bug Tracker = https://git.kucharczyk.xyz/lukas/manga-up/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) + Operating System :: OS Independent + Topic :: Utilities + +[options] +package_dir = + = src +packages = find: +python_requires = >=3.6 + +[options.packages.find] +where = src \ No newline at end of file diff --git a/src/manga-up/__init__.py b/src/manga-up/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/manga-up/manga-up.py b/src/manga-up/manga-up.py new file mode 100644 index 0000000..46be359 --- /dev/null +++ b/src/manga-up/manga-up.py @@ -0,0 +1,4 @@ +import requests + +response = requests.get('https://httpbin.org/ip') +print('Code is {0}.'.format(response.status_code)) \ No newline at end of file