From 99cb43fca2551078bc165c058d184d9b894da383 Mon Sep 17 00:00:00 2001 From: wangobango Date: Tue, 16 Nov 2021 16:35:01 +0100 Subject: [PATCH] build setup --- .gitignore | 3 +++ pyproject.toml | 6 ++++++ readme.md | 10 ++++++++++ setup.cfg | 24 ++++++++++++++++++++++++ src/__init__.py | 0 src/main.py | 9 +++++++++ 6 files changed, 52 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.cfg create mode 100644 src/__init__.py create mode 100644 src/main.py diff --git a/.gitignore b/.gitignore index e69de29..85355ac 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +venv/* +dist/* +*.egg-info \ No newline at end of file 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/readme.md b/readme.md index e69de29..0d3a824 100644 --- a/readme.md +++ b/readme.md @@ -0,0 +1,10 @@ +To build project type: + +``` +pip3 install virtualenv +virtuvalenv venv +source venv/bin/activate +pip3 install setuptools +python3 -m pip install --upgrade build +python3 -m build +``` \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b52cdb4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = pbr-ayct-core +version = 0.0.1 +author = Ramon Dyzman +author_email = ramon.dyzman@gmail.com +description = A small example package +long_description = file: README.md +long_description_content_type = text/markdown +url = https://git.wmi.amu.edu.pl/s415366/pbr-ayct-core +project_urls = + Bug Tracker = https://github.com/pypa/sampleproject/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[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/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..de64e02 --- /dev/null +++ b/src/main.py @@ -0,0 +1,9 @@ + + +class Main: + + def __init__(self) -> None: + pass + + def getTestString(var1: str) -> str: + return "All You Can Tweet" \ No newline at end of file