Giter Club home page Giter Club logo

packaging_tutorial's Introduction

Example Package

This is a simple example package. You can use GitHub-flavored Markdown to write your content.

Setup

$ mkdir packaging_tutorial
$ cd packaging_tutorial/
$ python3 -m venv proj_env 
$ source proj_env/bin/activate
$ python3 -m pip install --upgrade pip
$ mkdir src
$ cd src/
$ mkdir example_package_jasonwee
$ cd example_package_jasonwee
$ touch __init__.py example.py

build

python3 -m pip install --upgrade build
python3 -m build
$ ls dist/
total 8.0K
-rw-r--r-- 1 jason jason 2.0K Jan 19 13:31 example_package_jasonwee-0.0.1.tar.gz
-rw-r--r-- 1 jason jason 2.6K Jan 19 13:31 example_package_jasonwee-0.0.1-py3-none-any.whl

upload to pypi

python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*

install

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-package-jasonwee

usage

>>> from example_package_jasonwee import example
>>> example.add_one(2)
3

packaging_tutorial's People

Contributors

jasonwee avatar

Watchers

 avatar  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.