From 301296ec7ece762a027775756e28663d97896aba Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Fri, 23 Feb 2024 16:44:57 +0100 Subject: [PATCH] Release version 0.1.0 on pypi --- .github/workflows/on-PR.yml | 4 ++-- HISTORY.rst | 4 ++-- docs/environment.yaml | 10 +++++++++- docs/requirements.txt | 6 ------ pyproject.toml | 17 ++++++++--------- 5 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 docs/requirements.txt diff --git a/.github/workflows/on-PR.yml b/.github/workflows/on-PR.yml index 09e0141..8929e1b 100644 --- a/.github/workflows/on-PR.yml +++ b/.github/workflows/on-PR.yml @@ -171,9 +171,9 @@ jobs: - name: Check wheels run: | cd dist || exit - $CONDA/bin/python -m pip install plantconvert*.whl || exit + $CONDA/bin/python -m pip install openalea.plantconvert*.whl || exit $CONDA/bin/python -m twine check * || exit - $CONDA/bin/python -c "import plantconvert" + $CONDA/bin/python -c "import openalea.plantconvert" - name: Publish a Python distribution to PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/HISTORY.rst b/HISTORY.rst index 8034d0c..2e5ffb5 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,7 +2,7 @@ History ======= -0.1.0 (2023-05-22) ------------------- +0.1.0 (2024-02-23) +------------------- * First release on PyPI. diff --git a/docs/environment.yaml b/docs/environment.yaml index 6df9362..701c55c 100644 --- a/docs/environment.yaml +++ b/docs/environment.yaml @@ -6,4 +6,12 @@ dependencies: - openalea.plantgl - openalea.mtg - numpy -- pip \ No newline at end of file +- pip +pip: + - openalea.plantconvert + - vtk + - pygltflib + - sphinx + - sphinx_rtd_theme + - nbsphinx + - nbsphinx_link \ No newline at end of file diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 409c699..0000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -vtk -pygltflib -sphinx -sphinx_rtd_theme -nbsphinx -nbsphinx_link \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a0f84d1..9d84f3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,8 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", - "Topic :: Scientific/Engineering", - "Framework :: OpenAlea" + "Topic :: Scientific/Engineering" ] dependencies = [ "numpy >= 1.22", @@ -30,7 +29,7 @@ dependencies = [ "pygltflib >= 1.15" ] description = "Convert a plant to / from a `mtg` format to a wide range of other formats" -dynamic = ["version"] +version = "0.1.0" keywords = ["MTG", "openalea", ".opf", "format", "plantconvert"] license = {file = "LICENSE"} name = "openalea.plantconvert" @@ -92,9 +91,9 @@ zip-safe = false #[tool.setuptools.packages.find] #where = ["src"] -[tool.setuptools_scm] -write_to = "src/openalea/plantconvert/version.py" -write_to_template = ''' -# Do not change! Do not track in version control! -__version__ = "{version}" -''' +#[tool.setuptools_scm] +#write_to = "src/openalea/plantconvert/version.py" +#write_to_template = ''' +## Do not change! Do not track in version control! +#__version__ = "{version}" +#'''