Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Switch packaging from setuptools to poetry #6

Merged
merged 5 commits into from
Feb 11, 2022
Merged
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: "lockfile-only"
16 changes: 7 additions & 9 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Install style requirements
run: |
pip install -r requirements_style.txt --disable-pip-version-check
pip install .[style] --disable-pip-version-check
akaszynski marked this conversation as resolved.
Show resolved Hide resolved

- name: Codespell
run: |
Expand All @@ -47,20 +47,19 @@ jobs:

- name: Create wheel
run: |
pip install wheel
python setup.py bdist_wheel
pip install build
python -m build --wheel

- name: Validate wheel
run: |
pip install twine
twine check dist/*

- name: Install library
run: pip install dist/*
- name: Install library, with test extra
run: pip install $(echo dist/*)[test]

- name: Unit testing
run: |
pip install -r requirements_test.txt
cd tests # so we're testing the install, not local
pytest -vx

Expand All @@ -82,12 +81,11 @@ jobs:
with:
python-version: 3.8

- name: Install library
run: pip install .
- name: Install library, with docs extra
run: pip install .[docs]

- name: Build HTML
run: |
pip install -r requirements_docs.txt
make -C doc html SPHINXOPTS="-W"

- name: Build PDF Documentation
Expand Down
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ Alternatively, clone and install in development mode with:

git clone https://github.com/pyansys/
cd <PyAnsys-Library>
pip install -e .
pip install poetry
poetry install

This creates a new virtual environment, which can be activated with

.. code::

poetry shell

Documentation
-------------
Expand Down
22 changes: 0 additions & 22 deletions ansys/product/library/_version.py

This file was deleted.

Loading