carbon-footprint-calculator
Conda distribution
~/anaconda3/bin/conda install anaconda-client conda-build
~/anaconda3/bin/conda config --set anaconda_upload no
~/anaconda3/bin/conda build . --output
~/anaconda3/bin/anaconda login
~/anaconda3/bin/anaconda upload dist/carbonfootprint-1.1.5.tar.gz
Referneces
- https://docs.anaconda.com/anacondaorg/user-guide/tasks/work-with-packages/
- published package https://anaconda.org/altanai/carbonfootprint
PYppi ditribution
1. Generating distribution archives
First install latest version of PyPA’s build then build . This should generate dist directory:
python3 -m pip install --upgrade build
python3 -m build
2. Uploading the distribution archives
python3 -m pip install --upgrade twine
twine check dist/*
Checking dist/carbon_footprint_calculator-1.1.1-py3-none-any.whl: PASSED
Checking dist/carbon_footprint_calculator-1.1.1.tar.gz: PASSED
Install twine and upload all of the archives under dist to pypi’s test server
python3 -m twine upload --repository testpypi dist/*
or to pyapi
python3 -m twine upload dist/*
3.Installing the package
From pytest
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps carbonfootprint
From pyapi
pip3 install carbonfootprint
References :
- List of classifiers - https://pypi.org/classifiers/
- published carbonfootprint package on pyapii https://pypi.org/project/carbonfootprint/
Test Enviornment
Install and Setup Conda
export PATH=$PATH:/home/altanai/anaconda3/bin
Activate virtual env
source energycarbon_env/bin/activate
Run unit tests
python tests/unittests.py
Debugging and Help
Issue1 Adding csv for the datasets
solution refer to https://python-packaging.readthedocs.io/en/latest/non-code-files.html Add the following to dynamic setup.py
include_package_data=True
package_data={'': ['dataset/*']},
Metadata
Release files for carbonfootprint 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| carbonfootprint-1.2.4.tar.gz | 499.7 kB | Without provenance | Details for carbonfootprint-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| carbonfootprint-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for carbonfootprint-1.2.4-py3-none-any.whl |
Total release size: 1.0 MB
Release files / carbonfootprint-1.2.4.tar.gz
| Download URL | carbonfootprint-1.2.4.tar.gz |
|---|---|
| Size | 499.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42de582493f00c9211181f63d31f5a3d5dccd1c2df87ce0091ad4f1597ab2937
|
|
BLAKE2b-256 checksum How to use checksums |
e3c97f5296035ecb775274b2e8b77960022757073be546a8643a25a626dc8f45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.6.9
|
Release files / carbonfootprint-1.2.4-py3-none-any.whl
| Download URL | carbonfootprint-1.2.4-py3-none-any.whl |
|---|---|
| Size | 510.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e4fd31d5dc961fbdca102cb0bd7f0271e3fb32dc89888847cee4877e26e890e
|
|
BLAKE2b-256 checksum How to use checksums |
9e1ea79d8489a37a8ab17f9d86cabe2fecbd2cd66edd03038bc45b6c3f1736bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.6.9
|
Security for carbonfootprint 1.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.