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

Commit 7ea9cc0

Browse files
authored
Merge pull request #6 from greschd/maint/switch_to_flit_packaging
Switch packaging from setuptools to poetry
2 parents 23c0409 + b6d9c38 commit 7ea9cc0

File tree

13 files changed

+933
-106
lines changed

13 files changed

+933
-106
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
versioning-strategy: "lockfile-only"

.github/workflows/ci_cd.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install style requirements
2626
run: |
27-
pip install -r requirements_style.txt --disable-pip-version-check
27+
pip install .[style] --disable-pip-version-check
2828
2929
- name: Codespell
3030
run: |
@@ -47,20 +47,19 @@ jobs:
4747

4848
- name: Create wheel
4949
run: |
50-
pip install wheel
51-
python setup.py bdist_wheel
50+
pip install build
51+
python -m build --wheel
5252
5353
- name: Validate wheel
5454
run: |
5555
pip install twine
5656
twine check dist/*
5757
58-
- name: Install library
59-
run: pip install dist/*
58+
- name: Install library, with test extra
59+
run: pip install $(echo dist/*)[test]
6060

6161
- name: Unit testing
6262
run: |
63-
pip install -r requirements_test.txt
6463
cd tests # so we're testing the install, not local
6564
pytest -vx
6665
@@ -82,12 +81,11 @@ jobs:
8281
with:
8382
python-version: 3.8
8483

85-
- name: Install library
86-
run: pip install .
84+
- name: Install library, with docs extra
85+
run: pip install .[docs]
8786

8887
- name: Build HTML
8988
run: |
90-
pip install -r requirements_docs.txt
9189
make -C doc html SPHINXOPTS="-W"
9290
9391
- name: Build PDF Documentation

README.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ Alternatively, clone and install in development mode with:
3434
3535
git clone https://github.com/pyansys/
3636
cd <PyAnsys-Library>
37-
pip install -e .
37+
pip install poetry
38+
poetry install
3839
40+
This creates a new virtual environment, which can be activated with
41+
42+
.. code::
43+
44+
poetry shell
3945
4046
Documentation
4147
-------------

ansys/product/library/_version.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)