Description:
Create project under directory
mkdir my-project
cd my-project
create virtual environment
create structure
# create directory for source code
mkdir src
touch setup.py
touch README.md
touch LICENSE.txt
touch src/helloworld.py
install dependencies
pip install wheel
fill in code helloworld.py
def hello_world():
print('hello world')
fill in README.txt
# Chia Log Processor
A library provide functionality process chia plot log.
# Installation
pip install {project name}
# Demo
```python
import {module}
fill in license.txt
fill in information of setup.py
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
projectName = "projectName"
projectDescritpion = "Description"
version = "0.0.1"
modules = ['hello']
url = "{git repo url}"
author = "author"
email = "[email protected]"
setup(
name=projectName,
version=version,
description=projectDescritpion,
py_modules=modules,
package_dir={'': 'src'},
long_description=long_description,
long_description_content_type="text/markdown",
url=url,
author=author,
author_email=email,
extras_require={
"dev": [
"pytest>=3.7",
]
}
)