Skip to main content

My sample module

Project description

Pyar Meetup 2022

This package was created as a demo following this guide https://packaging.python.org/en/latest/tutorials/packaging-projects/ on 8 Feb 2022

Instructions

  1. Create an activate a virtualenv
python3 -m pip install --upgrade pip   # Install project dependencies
python3 -m pip install --upgrade build # Build wheels and sdist from source files
python3 -m pip install --upgrade twine # Upload wheels and sdists to pypi
python3 -m pip install --upgrade wheel # To be able to install from wheels instead of sdists
#or just
python3 -m pip install --upgrade pip build twine wheel
  1. Build wheel and sdist (zip of source tree) from source
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools>=42, wheel)
* Getting dependencies for sdist...
* Building sdist...
* Building wheel from sdist
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools>=42, wheel)
* Getting dependencies for wheel...
* Installing packages in isolated environment... (wheel)
* Building wheel...
Successfully built pyarmeetup2020-0.0.1.tar.gz and pyarmeetup2020_ambro17-0.0.1-py3-none-any.whl

And then check with

$ ls dist/
pyarmeetup2020-0.0.1.tar.gz           pyarmeetup2020-0.0.1-py3-none-any.whl
  1. Upload wheel and sdist to pypi
twine upload --repository testpypi dist/*
  1. Test it Run python and then
>>> from pyarmeetup2020 import example
>>> example.should_i_pin_pip()
'Probably not'

Expected Error While Installing Bad Lib

ERROR: Cannot install pyarmeetup2020 and pyarmeetup2020==0.0.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    pyarmeetup2020 0.0.2 depends on Flask>=2.0.2
    elpasado 0.0.4 depends on Flask==1.0.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

With pip 20.2.0

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

elpasado 0.0.7 requires Flask==1.0.1, but you'll have flask 2.0.2 which is incompatible.

DO NOT PIN PIP!! Solve the root problem!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyarmeetup2020-0.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyarmeetup2020-0.3-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyarmeetup2020-0.3.tar.gz.

File metadata

  • Download URL: pyarmeetup2020-0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for pyarmeetup2020-0.3.tar.gz
Algorithm Hash digest
SHA256 1f7e06bc1c4989234853dd4e7fbf71e576bc16ab85e6fcacf1a0840cfc694656
MD5 1b2b9068310b7b2ed8bacb7aff1e984a
BLAKE2b-256 df360dee070a7c18a6133afcbeb0a6d248d354ec5b434d572931572f6582cd98

See more details on using hashes here.

File details

Details for the file pyarmeetup2020-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyarmeetup2020-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 959757f7316d53557e4d1e56b354589bd4aea7c60c7f2e7e0ea5217a5d179c81
MD5 a6aca605ddeab2b542d493bdcf832241
BLAKE2b-256 b96d14aa6bdf2a44fae3dc45353fd2521c6b296265307c702340bd6a64578e5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page