Coder Social home page Coder Social logo

dummypy's Introduction

A dummy package template for Python

Install and setup virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 

Create virtualenv using Python3

virtualenv -p python3 myenv

Instead of using virtualenv you can use this command in Python3

python3 -m venv myenv

you can use any name insted of myenv

Activate virtual environment

python3 -m venv myenv

the environment can be deactivated with the deactivate command

Install Package

git clone https://github.com/brett-hosking/dummypy.git

Install requirements from file

pip install -r requirements.txt

Run pip to install package (locally)

pip install .

Upgrade Package (local)

git pull
pip install . --upgrade

Notes for building packages

Create a requirements.txt file in the format:

feedparser==5.1.3
wsgiref==0.1.2
django==1.4.2

Useful commands

List Python packages

pip list

Creating Documentation

install sphinx

pip install sphinx 
pip install sphinx_rtd_theme

setup docs

mkdir docs 
cd docs
sphinx-quickstart

Edit and Make

edit source/conf.py -> html_theme = "sphinx_rtd_theme"; html_theme_path = ["_themes", ]
make html

Upload docs

Go to https://readthedocs.org Login using github and create service hook Go to import and add repository details

cd docs 
make clean 
cd ../
git add docs 
git commit -am 'added docs'
push

dummypy's People

Contributors

brett-hosking avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.