Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
17 changes: 0 additions & 17 deletions .bumpversion.cfg

This file was deleted.

31 changes: 7 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,17 @@ on:
- main

jobs:
build-packages:
build:
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
python: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: compas-dev/compas-actions.build@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install cython --install-option="--no-cython-compile"
- name: Install
run: |
pip install --no-cache-dir -r requirements-dev.txt
- name: Lint with flake8
run: |
invoke lint
- name: Test import
run: |
python -c "import compas_nurbs;print(compas_nurbs.__version__)"
- name: Test with pytest
run: |
invoke test
python: ${{ matrix.python }}
invoke_lint: true
invoke_test: true
45 changes: 0 additions & 45 deletions .github/workflows/cleanup.yml

This file was deleted.

109 changes: 0 additions & 109 deletions .github/workflows/deploy-n-publish.yml

This file was deleted.

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

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.docs@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
- master

jobs:
build:
Expand All @@ -12,8 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Changelog check
uses: Zomzog/changelog-checker@v1.1.0
uses: Zomzog/changelog-checker@v1.2.0
with:
fileName: CHANGELOG.rst
checkNotification: Simple
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.9', '3.10', '3.11']

steps:
- uses: compas-dev/compas-actions.build@v4
with:
python: ${{ matrix.python }}
invoke_lint: true
invoke_test: true

Publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.publish@v3
with:
pypi_token: ${{ secrets.PYPI }}
github_token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,24 @@ Unreleased

**Changed**

* Migrated from ``setup.py``/``setup.cfg`` to ``pyproject.toml`` (PEP 517/518)
* Updated CI workflows to use ``compas-dev/compas-actions@v4``
* Updated tooling to use ``ruff`` for linting (replaced flake8, autopep8, isort, pydocstyle, pylint)
* Updated to ``compas_invocations2`` for invoke tasks
* Updated to ``sphinx_compas2_theme`` for documentation
* Updated repository URLs from gramaziokohler to compas-dev organization

**Fixed**

* Fixed ambiguous variable name in test_surface.py (E741)

**Deprecated**

**Removed**

* Removed deprecated files: ``setup.py``, ``setup.cfg``, ``.bumpversion.cfg``, ``pytest.ini``, ``MANIFEST.in``
* Removed ``__version__.py`` (version now defined in ``__init__.py``)

0.2.1
----------
**Changed**
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Code contributions

We love pull requests from everyone! Here's a quick guide to improve the code:

1. Fork `the repository <https://github.com/gramaziokohler/compas_nurbs>`_ and clone the fork.
1. Fork `the repository <https://github.com/compas-dev/compas_nurbs>`_ and clone the fork.
2. Create a virtual environment using your tool of choice (e.g. ``virtualenv``, ``conda``, etc).
3. Install development dependencies:

Expand Down Expand Up @@ -61,7 +61,7 @@ Once you made the documentation changes locally, run the documentation generatio
Bug reports
-----------

When `reporting a bug <https://github.com/gramaziokohler/compas_nurbs/issues>`_
When `reporting a bug <https://github.com/compas-dev/compas_nurbs/issues>`_
please include:

* Operating system name and version.
Expand All @@ -73,7 +73,7 @@ Feature requests and feedback
-----------------------------

The best way to send feedback is to file an issue on
`Github <https://github.com/gramaziokohler/compas_nurbs/issues>`_. If you are proposing a feature:
`Github <https://github.com/compas-dev/compas_nurbs/issues>`_. If you are proposing a feature:

* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
18 changes: 0 additions & 18 deletions MANIFEST.in

This file was deleted.

10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ NURBS for COMPAS
.. start-badges

.. image:: https://img.shields.io/badge/License-MIT-blue.svg
:target: https://github.com/gramaziokohler/compas_nurbs/blob/main/LICENSE
:target: https://github.com/compas-dev/compas_nurbs/blob/main/LICENSE
:alt: License MIT

.. image:: https://github.com/gramaziokohler/compas_nurbs/workflows/build/badge.svg
:target: https://github.com/gramaziokohler/compas_nurbs/actions
.. image:: https://github.com/compas-dev/compas_nurbs/workflows/build/badge.svg
:target: https://github.com/compas-dev/compas_nurbs/actions
:alt: Github Actions

.. end-badges
Expand All @@ -24,7 +24,7 @@ Please refer to the Documentation_ for details.

.. _NURBS-Python: https://github.com/orbingol/NURBS-Python
.. _NumPy: https://numpy.org/
.. _Documentation: https://gramaziokohler.github.io/compas_nurbs/latest/
.. _Documentation: https://compas.dev/compas_nurbs/latest/

**COMPAS NURBS** runs on Python x.x and x.x.

Expand Down Expand Up @@ -56,7 +56,7 @@ Contributing

Make sure you setup your local development environment correctly:

* Clone the `compas_nurbs <https://github.com/gramaziokohler/compas_nurbs>`_ repository.
* Clone the `compas_nurbs <https://github.com/compas-dev/compas_nurbs>`_ repository.
* Install development dependencies and make the project accessible from Rhino:

::
Expand Down
Loading