conda create -n purrsong python=3.6
conda activate purrsong
2. Install libraries for development
pip install tensorflow
pip install opencv-python
3. Install libraries for PyPI upload
[Instructions(Korean)](https://medium.com/onlytojay/%ED%8C%8C%EC%9D%B4%EC%8D%AC-%EB%B0%B0%ED%8F%AC-%ED%8C%A8%ED%82%A4%EC%A7%80-%EB%A7%8C%EB%93%A4%EA%B8%B0-%EC%A4%91%EA%B0%84%EA%B2%80%ED%86%A0-a2dade70c247)
pip install setuptools Requirement already satisfied (--> conda env default provided)
pip install wheel Requirement already satisfied (--> conda env default provided)
pip install twine
4. Clone this repo, add setup.py, setup.cfg
4.1. cloned this repo
git clone https://github.com/jeakwon/purrsong.git
4.2. added `setup.py`
python
from setuptools import setup, find_packages
setup(
name = 'purrsong',
version = '0.0.1',
description = 'purrsong',
author = 'jeakwon',
author_email = 'onlytojaygmail.com',
url = 'https://github.com/jeakwon/ccpy',
packages = find_packages(exclude = []),
keywords = ['purrsong'],
python_requires = '>=3.6',
license = 'LICENSE.txt',
install_requires = [],
)
4.3. added `setup.cfg`
[metadata]
description-file = README.md
4.4. current folder structure
purrsong
├── .gitignore
├── LICENSE
├── README.md
├── setup.cfg
└── setup.py
4.5. git commit, push
5. Create empty PyPI package
5.1. created `.whl` file
In the prompt, with `(purrsong)` env activated in `purrsong` directory,
python setup.py bdist_wheel
5.2. uploaded `.whl` file
Uploaded wheel with `twine` module
twine upload dist\purrsong-0.0.1-py3-none-any.whl
For your information, twine requires PyPI id/pw. register PyPI first.
5.3. check upload
pip install purrsong
6. Add purrsong module
6.1. added `purrsong` folder with `__init__.py`
purrsong
├── purrsong add folder
└── __init__.py add __init__.py
├── .gitignore
├── LICENSE
├── README.md
├── setup.cfg
└── setup.py
6.2. updated package
General procedure, when update
1. change `purrsong` module