My first python package
Project description
MyML Project:
Project name: MyML
This project actually defines the ML project structure.
Description
- create virtual environment:
conda create --name venv python=3.9
- activate the venv
conda activate venv
- create a project folder
mkdir MyML
- do some following installation
- edit conf.py file: >import os >import sys >sys.path.insert(0, os.path.abspath("../my_py_pkg/src")) >project = 'MyML' >copyright = '2023, Khandoker Nosiba Arifin' >author = 'Khandoker Nosiba Arifin' >release = '0.0.0.1' >extensions = [ "sphinx.ext.viewcode", "sphinx.ext.todo", "sphinx.ext.autodoc" ] >templates_path = ['_templates']
- Add modules into the insert.rst
- do some following installation 3 & 4
- using cmd >cd docs >sphinx-quickstart >cd my-py-pkg >sphinx_apidoc -o ../docs src/ >cd docs >make html 9. If you want to show the html file then go to the --> docs>build>html>index.html the right click an copy the file and open it using the browser. 10. then create setup.py and install the following 11. then for build and upload package to the pypi.org and we must have an account to the pypi.org. note: package name must be unique otherwise we will get error.
python setup.py sdist bdist_wheel twine upload dist/* > username: token > password: "your-api-token"
Installation
- install conda(miniconda3)
- install make (for running make file) After installing make
make --version make install (for running the Makefile and installing the packages which are include into the requirements.txt) (we have to create docs folder where all the documentations of our project are being saved now we have to install these 3 & 4 no)
- pip install sphinx
- pip install sphinx-rtd-theme
(for setup.py) 5. pip install setuptools (for locally publish the package) 6. pip install -e . 7. pip install twine
Contributors
License
Go to the https://opensource.org/ > Licenses > popular/ strong Community> MIT License(copy & paste to the LICENSE file & edit the author name and copyright year)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nsb_ml_py_pkg-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f8aa2157bddb3b93c2667974dd192bb7f1a8250125d7888097c671344516b9e |
|
MD5 | adbe4f2cc3d9b5ad837615ac3947469c |
|
BLAKE2b-256 | 04b2e70866fab92dc12a298219dbca33946c51ff69854b91c72cd0fe68e5e2fd |