a demo package for NAD !
Project description
This is a demo to push a package on PyPi
Python project
Présentation des différents fichiers présents
Choose your distribution
on peut choisir entre distribute, setuptools, distutils ou Distutils2. Seule solution passe partout pour le moment c’est setuptools !
setup.py
Make your Package "user friendly"
- init.py
The init.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path. In the simplest case, init.py can just be an empty file, but it can also execute initialization code for the package or set the all variable, described later.
-
version
-
all
-
easy import functions
Test on local environment
- pipdeptree
$ python setup.py install
Push on PyPi
-
Make sure you have the latest versions of setuptools and wheel installed:
$ python3 -m pip install --user --upgrade setuptools wheel
-
Generating distribution archives
$ python3 setup.py sdist bdist_wheel
-
Twine is a utility for interacting with PyPI, that offers a secure replacement for setup.py upload.
$ python3 -m pip install --user --upgrade twine
-
upload all of the archives under dist:
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Installing new uploaded package
python3 -m pip install --index-url https://test.pypi.org/simple/ welovenad
Ressources
Getting started / simple project
Building and Distributing Packages with Setuptools
Packaging Python Projects
https://packaging.python.org/guides/distributing-packages-using-setuptools/
Repository BJC
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
File details
Details for the file welovenad-1.0.0.tar.gz
.
File metadata
- Download URL: welovenad-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f554d4fb711dc37b485319063ffa6725250dc8370a8c8cbe56b29ce2b6dcd7d5 |
|
MD5 | 954574435789436c7038f470e5ed2a09 |
|
BLAKE2b-256 | 70338f87fb10fbb29a49b3f280ff23a6f95645d8fb7edcedc8ab617ccff9eba8 |
File details
Details for the file welovenad-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: welovenad-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92641dc2e8b60005fbe530b38e2018e8a4b5d7e1408db0a1138f2e4e7655074e |
|
MD5 | 9548ad7482ba2ed22d0571a210fde4c4 |
|
BLAKE2b-256 | 4a878727c04a75169ea4c5f39bb9e8055dffde1a0a0afa1a2008c8ecb84bedf3 |