Instructions
-
Create project under directory
1 2mkdir my-project cd my-project -
create virtual environment
-
create structure
1 2 3 4 5 6# create directory for source code mkdir src touch setup.py touch README.md touch LICENSE.txt touch src/helloworld.py -
install dependencies
1pip install wheel -
fill in code helloworld.py
1 2def hello_world(): print('hello world') -
fill in README.txt
1 2 3 4 5# Chia Log Processor A library provide functionality process chia plot log. # Installationpip install {project name}
# Demo ```python import {module} -
fill in license.txt
-
fill in information of setup.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30from 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", ] } )