-
Notifications
You must be signed in to change notification settings - Fork 3
Updating the Published Package
geoapis
is distributed on PyPI and conda-forge. This page details how to update the published packages.
conda create -n pypi python=3.9 pip
conda activate pypi
python -m pip install build twine
python -m build
twine check dist/*
- It can be a good idea to unzip and check the contents are as expected
twine upload -r testpypi dist/*
- Username and password from Chrome settings passwords
- View at the listed URL
python -m pip install -i https://test.pypi.org/geoapis
twine upload dist/*
- Username and password from Chrome settings passwords
- View at the listed URL
These instructions are based off the tutorial
There is already a conda-forge feedstock for geoapis at conda-forge/geoapis-feedstock. See the readme for detailed instructions - some of which are copied below:
-
Update PyPI geoapis package
-
Fork feedstock
-
Update recipe (meta.yml):
a. Package version
b. Reset build number to 0
c. Update SHA256 with latest has from PyPI - go to history
- click on latest version - click on options for the tar.gz
-
Push changes to GitHub and open PR
-
Merge PR when all tests pass
Or read this detailed Conda-Forge maintainers page.
conda create -n conda python=3.10
conda install -c conda-forge grayskull
conda activate conda
git clone [email protected]:conda-forge/staged-recipes.git
cd ..\staged-recipes\recipes
grayskull pypi your_package_name
a. Or b. Release on Github - https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
grayskull pypi https://github.com/path/to/repository
c. Edit the generated meta.ymal file in the package_name folder based on the example d. Commit and push the meta.ymal file to the fork