Skip to content

Commit

Permalink
Merge pull request #94 from mapbox/bill/appveyor
Browse files Browse the repository at this point in the history
Fix publishing process
  • Loading branch information
wboykinm authored Dec 19, 2024
2 parents 3ecc315 + e047359 commit bd5e587
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 33 deletions.
7 changes: 6 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
Changes
=======

2.0.1 (2024-12-17)
------------------

- Fix for release process

2.0.0 (2024-12-16)
------------------

- Drop support for Python <3.8.
- Drop support for Python <3.9.
- Bump rasterio to 1.4.
- Bump colormath to 3.0.
- Bump click to 8.1.
Expand Down
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Publish to pypi

Following the [general guidelines for publishing](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/), and using Mapbox pypi account credentials, we can make new versions of `rio-color` available on pypi. This approach replaces our previous use of TravisCI and Appveyor, both now deprecated with our organization.

### Build packages

```
python3 -m pip install build twine
python3 -m build --sdist
python3 -m build --wheel
```

### Upload packages
Once you've configured `.pypirc` [with the project token](https://pypi.org/help/#apitoken), you can upload the packages to pypi.

```
twine upload dist/* --repository rio-color
```

And confirm the upload at [the project page](https://pypi.org/project/rio-color/#history).
28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion rio_color/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""rio-color"""

__version__ = "2.0.0"
__version__ = "2.0.1"
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[metadata]
# This includes the license file(s) in the wheel.
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
license_files = LICENSE
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def read(fname):
"rio_color.colorspace",
["rio_color/colorspace.pyx"],
include_dirs=[np.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_2_0_API_VERSION")],
)
]

Expand All @@ -57,8 +57,9 @@ def read(fname):
"License :: OSI Approved :: MIT License",
"Programming Language :: Cython",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Scientific/Engineering :: GIS",
],
Expand Down

0 comments on commit bd5e587

Please sign in to comment.