Skip to main content

<REPOSITORY_NAME>

The function of this test package template is to make it easier to build and deploy new packages on https://pypi.org/ It does not pretend to fit the demadnd of all type of packages but make some steps easier to fullfit using this package as template. And afther importing the repository. Adapt is for each usecase.

Instalation protocol

  1. Use the content of this repository in your own git/github environment. With your own repository name and self builded package content

  2. Clone the github repository.

$ git clone https://github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git
  1. Enter the project folder.
$ cd <REPOSITORY_NAME>

how deploy package on pipy

  1. Before execute the deploy command. There must be prerequisites:

    • It the __init__.py Ther must be defined:
      • __doc__ description of the module information insite """ .... """ on the header of the docuemnt
      • An defined release version of the package __version__
      • An defined author of the package __author__
      • An defined author email of the package __email__
    • If there are pip dependencies that the package need to have installed to work. They must be listed on the 'requirement.txt' file.
    • The Project need to be part of an "git" environment connected to an github repository. If it is part of it. Some information is used as metadata of the pip project. Such as:
      • The package name will be the repository name of the project
      • The webside will be directly the github repository.
      • The bugtracker web will be the issues part of the repoitory on github.
    • There must be an defined README.md on the root of the project.

    If this information is not correct. The build process wil be interupted and the deploy will not happen

  2. You must be registered on https://pypi.org/ with a defined "username" and "password"

  3. Execute the command:

$ deploy.bat 
  • This command will create and temporary virtual environment. Install the requirement packages on it. Build the new release. And deploy it on https://pypi.org/ (will ask username and password) and as last will destroy the builded virtual environment asking if you will delete it or not.

Now you have deployed your package on PIPY so you can use it with PIP installations

How to test it (on VSCode):

  1. Change <YOUR_PACKAGE_NAME> your your deployed package name inside build.bat (on the last line)
...
python -m venv env
call .\env\Scripts\activate
pip install <YOUR_PACKAGE_NAME>
  1. Build the virtual environment on the repository with the package content by running:
$ build.bat
  1. After that you can use method located in the tests directory .\tests\init.py
$ cd tests
$ python __init__.py

Metadata

Release files for test-example-package 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for test-example-package 0.0.2
File Size Uploaded
test_example_package-0.0.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for test-example-package 0.0.2
File Interpreter ABI Platform
test_example_package-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / test_example_package-0.0.2.tar.gz

Download URL test_example_package-0.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3776963ca04ce82f9f529b26cee47906693de9ca94c3524b194cfc44139f298c
BLAKE2b-256 checksum
How to use checksums
15caab11b69a78b22135db3e353e267810351b9766464cef15bc84ea0d8fe75b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release files / test_example_package-0.0.2-py3-none-any.whl

Download URL test_example_package-0.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28c5979f8f127f33435035bb7ccd8c369bcd19e3a3482e583c5daca6bfe4be27
BLAKE2b-256 checksum
How to use checksums
ddb1e967c0f7537d722d16a24d3f769355437b54b431ef92e5f92cbf8ab68145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page