From 79f9dfa95355cc05ef994c8c7f1942181401d9cd Mon Sep 17 00:00:00 2001 From: Sudipto Baral Date: Mon, 15 Aug 2022 19:57:03 +0600 Subject: [PATCH] [#2] feature: setuptools files added --- pyproject.toml | 5 +++ setup.cfg | 59 ++++++++++++++++++++++++++++++ tests/test_utils/test_cf_parser.py | 12 ------ 3 files changed, 64 insertions(+), 12 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg delete mode 100644 tests/test_utils/test_cf_parser.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..80e7c8c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = [ + "setuptools>=45", +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3c7b05a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,59 @@ +[metadata] +name = cf-stats +version = 0.0.1 +author = Sudipto Baral +author_email = sudiptobaral.me@gmail.com +description = Simple codeforces stat card for GitHub readme. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/sudiptob2/cf-stats + +classifiers = + Development Status :: 0 - Alpha + Environment :: Console + Intended Audience :: Information Technology + License :: GNU General Public License v3.0 + Operating System :: MacOS + Operating System :: Microsoft + Operating System :: POSIX :: Linux + Programming Language :: Python :: 3.10 + Topic :: GitHub :: Codeforces + Topic :: GitHub Readme + Topic :: Stat Card + +[options] +package_dir = + app=app +packages = find_namespace: +python_requires = >=3.10 + +install_requires = + attrs==22.1.0 + certifi==2022.6.15 + charset-normalizer==2.1.0 + idna==3.3 + iniconfig==1.1.1 + packaging==21.3 + pluggy==1.0.0 + py==1.11.0 + pydantic==1.9.2 + pyparsing==3.0.9 + python-dotenv==0.20.0 + requests==2.28.1 + tomli==2.0.1 + typing_extensions==4.3.0 + urllib3==1.26.11 + + +[options.packages.find] +where = + +exclude = + tests + tests.* + docs + docs.* + +[options.entry_points] +console_scripts = + app=app.main \ No newline at end of file diff --git a/tests/test_utils/test_cf_parser.py b/tests/test_utils/test_cf_parser.py deleted file mode 100644 index 501fe6c..0000000 --- a/tests/test_utils/test_cf_parser.py +++ /dev/null @@ -1,12 +0,0 @@ -from app.models.user import User -from app.utils.cf_response_parser import CFResponseParser - - -class TestCFParser: - """Class for testing codeforces request parser methods.""" - - def test_parse_user_info(self, user_info): - """Tests CFResponseParser.make_request.""" - CFResponseParser.__parse_user_info(user_info) - user = User() - assert user.name == 'Dmitriy Khodyrev'