Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Comment thread
coderabbitai[bot] marked this conversation as resolved.

- uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install -e .

- name: Run tests
run: python complex_colormap/cplot.py
Comment thread
coderabbitai[bot] marked this conversation as resolved.
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,21 @@ VERSION=$(shell python3 -c "import complex_colormap; print(complex_colormap.__ve
default:
@echo "\"make publish\"?"

README.rst: README.md
cat README.md | sed -e 's_<img src="\([^"]*\)" width="\([^"]*\)">_![](\1){width="\2"}_g' -e 's_<p[^>]*>__g' -e 's_</p>__g' > /tmp/README.md
pandoc /tmp/README.md -o README.rst
python3 setup.py check -r -s || exit 1

tag:
# Make sure we're on the master branch
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
@echo "Tagging v$(VERSION)..."
git tag v$(VERSION)
git push --tags

upload: setup.py README.rst
upload: tag
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
rm -f dist/*
python3 setup.py bdist_wheel --universal
rm -rf dist
python3 -m build
Comment thread
coderabbitai[bot] marked this conversation as resolved.
gpg --detach-sign -a dist/*
twine upload dist/*

publish: tag upload

clean:
rm -f README.rst
rm -rf dist build *.egg-info
Comment thread
coderabbitai[bot] marked this conversation as resolved.
3 changes: 0 additions & 3 deletions complex_colormap/__about__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: utf-8 -*-
#
__version__ = '0.0.1'
__author_email__ = 'endolith@gmail.com'
__website__ = 'https://github.com/endolith/complex_colormap'
__license__ = 'License :: OSI Approved :: MIT License'
__status__ = 'Development Status :: 2 - Pre-Alpha'
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "complex_colormap"
dynamic = ["version"]
description = "Color maps for complex-valued functions"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
authors = [
{ name = "endolith", email = "endolith@gmail.com" },
]
keywords = ["colormap", "matplotlib", "complex", "plotting"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"colorspacious",
"matplotlib",
"numpy",
"scipy",
]

[project.urls]
Homepage = "https://github.com/endolith/complex_colormap"
Download = "https://github.com/endolith/complex_colormap/releases"

[tool.hatch.version]
path = "complex_colormap/__about__.py"

[tool.hatch.build.targets.wheel]
packages = ["complex_colormap"]
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

57 changes: 0 additions & 57 deletions setup.py

This file was deleted.

Loading